Page 1 of 1
How to change a device value of sensortype"Usage (Electric)" in dZevents
Posted: Wednesday 03 April 2024 10:47
by jpmd
Can somebody tell me how I can update a value of a device of subtype "Usage (Electric)" in dzEvents?
I must be something like
domoticz.devices('Huisverbruik').updateActualWatt(myValue)
But this is not working.
Re: How to change a device value of sensortype"Usage (Electric)" in dZevents
Posted: Wednesday 03 April 2024 17:46
by habahabahaba
Re: How to change a device value of sensortype"Usage (Electric)" in dZevents
Posted: Wednesday 03 April 2024 18:27
by jpmd
Great, Tanks a lot!
Re: How to change a device value of sensortype"Usage (Electric)" in dZevents
Posted: Wednesday 03 April 2024 18:40
by waltervl
Be aware this is not a very useful device as it does not report history. Better use the "electric Instant+Counter" device if you have both counter (kWh) and instant usage (Watt) values available. Also it can calculate energy usage (kWh) from the instant usage if the energy is not available....
https://www.domoticz.com/wiki/Dummy_for ... counter.29
In dzvents
https://www.domoticz.com/wiki/DzVents:_ ... counter.29
Re: How to change a device value of sensortype"Usage (Electric)" in dZevents
Posted: Wednesday 03 April 2024 19:52
by jpmd
OK, thank again.
I now use the "electric Instant+Counter". Much better!