Creating a Custom Sensor from python plugin

Python and python framework

Moderator: leecollings

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

Creating a Custom Sensor from python plugin

Post 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' )
Post Reply