Python Framework enhancement

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.
Post Reply
pipiche
Posts: 156
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Python Framework enhancement

Post by pipiche » Monday 03 December 2018 12:18

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.

febalci
Posts: 353
Joined: Monday 03 July 2017 19:58
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Python Framework enhancement

Post by febalci » Monday 03 December 2018 12:27

I should also add:
  • Directly create/read uservariables
  • Send a notification based on notification subsystem

pipiche
Posts: 156
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Python Framework enhancement

Post by pipiche » Monday 03 December 2018 12:35

In addition, as recommended by gizmocuz use the SendTempxxxSensor in order to benefit from the 'Domoticz adjustement capabilities'

pipiche
Posts: 156
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Python Framework enhancement

Post by pipiche » Wednesday 05 December 2018 19:42

Get access to all Domoticz environments ( Other settings) like


Random Timer:
Spread:
(Minutes +/-)

Sensor Timeout:
Timeout:
(Minutes)

Battery Low Level:

pipiche
Posts: 156
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi
Domoticz version: beta
Location: France
Contact:

Re: Python Framework enhancement

Post by pipiche » Monday 10 December 2018 12:31

It would be great to get a callBack when activating 'Accept New Hardware'

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests