Hey just wanting to know how to correctly set up my energy dashboard I am not sure if I have any ability to tell how much consumption by the house or sent back to the grid, or if I only can see what energy is being produced. Would appreciate any guidance/assistance
From what you have shown above, no you do not have the required sensors to know grid energy consumption or energy return to grid.
1 Like
Hi. I don’t know if that helps you. But I post it.
Here is a sensor I use to see my Consumption
power_consumption:
unique_id: power_consumption_sensor
friendly_name: "Consumption"
unit_of_measurement: 'W'
value_template: >-
{% set IMPORT= states('sensor.IMPORT')|float(0) %}
{% set SOLAR= states('sensor.SOLAR')|float(0) %}
{% set EXPORT= states('sensor.EXPORT')|float(0) %}
{% if EXPORT> 0 %}
{% set consumption = IMPORT+ SOLAR- EXPORT%}
{% else %}
{% set consumption = IMPORT+ SOLAR%}
{% endif %}
{{ [consumption, 0]|max }}
Does your grid power go positive for import and negative for export, or is it a consumption value only? If the former, make template sensors to split the value.
Also, the dashboard needs energy sensors — not power sensors. You need to integrate your power sensors with the Riemann integration to get energy. Use method left.
doesnt look like it ever goes negative might need a shelly module