Page 1 of 1

Python Framework enhancement

Posted: Monday 03 December 2018 11:18
by pipiche
I really enjoy developing Domoticz plugin with in the Python plugin framework. I think this is the right way to increase the number of plugin and leave them outside of the Domoticz code.

However in order to develop more complex plugin there is a need to bring more functionalities to the Framework

(1) Create and give access to a Table in the Domoticz.db . As some of the native plugin can do , it would be great to have the capability to store all plugin related information in the domoticz.db. In such having access to Create/Update/Delete a Table and then Insert/Update/Delete/Query records in the table.

(2) Be able to Update nValue/sValue/BatteryLevel/SignalLevel without triggering a notification. Today, there is a 'SuppressTriggers' option when updating a device, but if you enable this option, you don't get any update to the database. Wondering what is the purpose/benefit of such option.

Re: Python Framework enhancement

Posted: Monday 03 December 2018 11:27
by febalci
I should also add:
  • Directly create/read uservariables
  • Send a notification based on notification subsystem

Re: Python Framework enhancement

Posted: Monday 03 December 2018 11:35
by pipiche
In addition, as recommended by gizmocuz use the SendTempxxxSensor in order to benefit from the 'Domoticz adjustement capabilities'

Re: Python Framework enhancement

Posted: Wednesday 05 December 2018 18:42
by pipiche
Get access to all Domoticz environments ( Other settings) like


Random Timer:
Spread:
(Minutes +/-)

Sensor Timeout:
Timeout:
(Minutes)

Battery Low Level:

Re: Python Framework enhancement

Posted: Monday 10 December 2018 11:31
by pipiche
It would be great to get a callBack when activating 'Accept New Hardware'