Using CustomImages with the Python framework
Posted: Friday 24 February 2017 13:19
The next beta will have functionality to allow developers to add custom images to plugins.
Have a look at the documentation here: http://www.domoticz.com/wiki/Developing ... gin#Images if you are interested
Basically, standard Domoticz custom images zips can be loaded from the plugin's home folder and the framework makes the actual image number available to the plugin so that it can be set using the existing Device.Update() function.
The example on the wiki shows how to give users the choice of three images via the hardware page but the image can be set for any reason: linked to device state or device value (like the standard weather devices)
Have a look at the documentation here: http://www.domoticz.com/wiki/Developing ... gin#Images if you are interested
Basically, standard Domoticz custom images zips can be loaded from the plugin's home folder and the framework makes the actual image number available to the plugin so that it can be set using the existing Device.Update() function.
The example on the wiki shows how to give users the choice of three images via the hardware page but the image can be set for any reason: linked to device state or device value (like the standard weather devices)