Skip to content

Script compatible with Domoticz #5

Description

@piacco

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:)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions