Page 1 of 1

Notification from device handled by Python plugin

Posted: Saturday 03 March 2018 15:49
by Barberousse
Hello,

Is is possible to trigger a notification from a change in a device handled by python plugin? My plugin handles for instance boiler water pressure, but if I configure notification for too high or too low pressure on this device from web interface, I don't receive any notification. Same for temperatures device for my boiler.

If I look into the code, in CDevice_update() in PythonObjects.cpp, it seems that the Python Device.Update() function updates the sql value, but I don't see call to notification helper, or is it another problem? Any ideas?

Re: Notification from device handled by Python plugin

Posted: Saturday 10 March 2018 10:16
by Barberousse
I answer to myself, this is something missing in the code handling plugins, I'm pushing a PR: https://github.com/domoticz/domoticz/pull/2193