Git Product home page Git Product logo

test_domoticzex's Introduction

DomoticzEx implementation study in Domoticz-Zigate plugin

Overview

Domoticz has recently enhanced the Python Framework to remove the 255 units ( Domoticz Devices) limitations. In addition the new framework DomoticzEx provided much more functionnality than the legacy framework Domoticz

The objective is now to understand and study the best way to move the plugin from the legacy framework to the new extended one.

Objective

The main objective is a 100% upward compatibility. This mean a user who have created all of his Domoticz Devices under the legacy will continue to work with the new implementation. It is not our objective to achieve downward compatibility. In other words, a user whom have created Domoticz Devices with the new version of the plugin using the Extended Framework, won't be able to go down.

Principle

The principle is create an abstract layer above the Python framework. It will then act as a middleware to abstract the way to access to the Domoticz devices.

Domoticz Devices Acess

  • DeviceID
  • TimedOut
  • Units

Domoticz Devices > Unit

Domoticz.Log(Devices["123456"].Units[2].Name)

  • Name
  • nValue
  • sValue
  • SignalLevel
  • BatteryLevel
  • Image
  • Type
  • SubType
  • Switchtype
  • Used
  • Options
  • LastLevel
  • LastUpdate
  • Description
  • Color
  • Adjustment      new in the DomoticzEx   (temperature...)
  • Multiplier          new in the DomoticzEx
  • Parent               new in the DomoticzEx

Abstract methods

Those methods will be called independantly of the Framework.

Method Description
get_widget_Functions return the value of the Function given in argument
set_timedout_device set/unset the Device TimedOut
set_lastseen_device set the Device lastseen information
write_Function_device update the nValue:sValue and option of SignalLevel and BatteryLevel

Expected impact in today's plugin

Module impacts
Modules/domoTools.py all
Modules/domoMaj.py all
Modules/domoCreate.py all
Modules/command.py all
Modules/database.py checkDevices2LOD, checkListOfDevice2Devices
Classes/AdminWidgets.py to be assess
Modules/heartbeat.py to be assess
Modules/input.py to be assess
Modules/pairingProcess.py to be assess
Modules/tools.py to be assess

references

test_domoticzex's People

Contributors

pipiche38 avatar sylvainper avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.