Page 1 of 1

Creating a Custom Sensor from python plugin

Posted: Thursday 16 July 2020 16:28
by pipiche
I have an issue for creating a Custom Sensor from the python plugin.
I feel that the Python Plugin is always expected a dictionary Options parameter, while in the case of the Custom Sensor it is a simple String !

Code: Select all

myDev = Domoticz.Device( DeviceID = '12345', Name = 'My Custom Sensor', Unit = 5, 
                                   Type = 0xF3, Subtype = 31 , Switchtype = 0, 
                                   Options = '1;ppm' )