I'm trying to implement my own plugin. To achieve my needs, I would like to have a managed counter.
It works fine but I'm currently not able to add a divider when I create my device.
Code: Select all
Domoticz.Device(Name= 'Device Name', Unit=DEVICE_ODOMETER, Type=243, Subtype=33, Switchtype=3,
Options={'AddjValue2': 1000, 'ValueQuantity': 'Kilometers', 'ValueUnits': 'Km', 'AddDBLogEntry' : 'true', 'DisableLogAutoUpdate' : 'true'},
Image=Images[IMAGE_DEVICE_ODO].ID, Description='Distance driven', Used=1).Create()
Is there a way to create a device with the correct divider value?
Thanks for your help.
Have a good day.