Python Plugin - SupressTriggers = True doesn't update Database !

Python and python framework

Moderator: leecollings

pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by pipiche »

@Dnpwwo there is an issue open on domoticz github https://github.com/domoticz/domoticz/is ... -433302685
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by Dnpwwo »

@pipiche,

Reread the documentation here: https://www.domoticz.com/wiki/Developin ... in#Devices and it appears to function in line with the doucmentation.
False Boolean flag that allows device attributes to be updated without notifications, scene or MQTT, event triggers. nValue and sValue are not written to the database and will be overwritten with current database values.
It updates: Type, SubType, SwitchType, Image, Used, Color, Options & TimedOut only.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by pipiche »

@Dnpwwo, you're right, that is what is written, but I really do not understand the use case of it !

Even the comments is somehow absurd : that allows device attributes to be updated without notifications
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by pipiche »

@Dnpwwo despite the documentation - which I still feel is not understandable - in regards to the option 'SuppressTriggers', can we envision either to fix this one and the documentation, or implement a new Option which can disable the notification mechanism and still do the update in the DB ?
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by pipiche »

Any update ?

Can we create such new feature, which disable the Notification trigger, but still do the Database update ?
pipiche
Posts: 2035
Joined: Monday 02 April 2018 20:33
Target OS: Linux
Domoticz version:
Contact:

Re: Python Plugin - SupressTriggers = True doesn't update Database !

Post by pipiche »

Further investigate this issue, and I known understand why the SupressTriggers do not update the database, that is the only way to suppress the notification as the notification is done by the Domoticz UpdateValue() !
Post Reply