Python create water sensor
Posted: Thursday 11 October 2018 11:09
I have been working on updating the Homewizard plugin created by @Wobbles (I have an energylink which his code does not yet cover) and I am trying to add a water sensor. I have seen images of people who have a water meter in Domoticz with an indication of liter. I've managed to create a counter that has an m3 measure but I want to have is liters. How can I do that? And more importantly, how can I do that in Python.
What I have is this:
Domoticz.Device(Name="Water Day", Unit=self.water_today_id, TypeName="Counter Incremental", Image=11, Switchtype=2).Create()
It creates what I want except for the liter indication. Any way I can either change that after I create it or create it correctly right away?
@Wobbles, once I have a stable update, I will share it with you. Can you send me a PM with your email address so we can chat?
What I have is this:
Domoticz.Device(Name="Water Day", Unit=self.water_today_id, TypeName="Counter Incremental", Image=11, Switchtype=2).Create()
It creates what I want except for the liter indication. Any way I can either change that after I create it or create it correctly right away?
@Wobbles, once I have a stable update, I will share it with you. Can you send me a PM with your email address so we can chat?