Can someone help me get the following into yaml correctly ?
In `the development template it looks good, but I can’t get it into yaml without errors.
- sensor:
- name: "Total power use"
{% if states('sensor.omvormer_active_power') in ("unavailable", "unknown") %}
state: "{{states('sensor.power_consumption')|float}}"
{% else %}
state: "{{states('sensor.omvormer_active_power')|float/1000 + states('sensor.power_consumption')|float - states('sensor.power_production')|float}}"
{% endif %}
1 post - 1 participant