I want to use this script with Domoticz. Everything works fine except for the WH value, which I changed to
WH: float | None = pydantic.Field( None, title="Energy", json_schema_extra={ "enabled_by_default": True, "device_class": "energy", "unit_of_measurement": "Wh", "state_class": "total_increasing", "value_template": "{{ value_json.WH }}",
Domoticz shows only the energy value, but the device expects two values — instant (W) and counter (WH).
How can I modify the script so that it sends both values?
And thanks for making this script:)
I want to use this script with Domoticz. Everything works fine except for the WH value, which I changed to
WH: float | None = pydantic.Field( None, title="Energy", json_schema_extra={ "enabled_by_default": True, "device_class": "energy", "unit_of_measurement": "Wh", "state_class": "total_increasing", "value_template": "{{ value_json.WH }}",Domoticz shows only the energy value, but the device expects two values — instant (W) and counter (WH).
How can I modify the script so that it sends both values?
And thanks for making this script:)