Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106456

Total energy counter

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 106456

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>