Hi community,
I need your help regarding a energy sensor showing up correctly in the dashboard.
I have two Fronius inverters from which I extract the Watts with NodeRed and forward them to HA. Both MQTT sensors show up with the correct watts in HA.
Then I created a template to sum up both inverter values to one.
template:
- sensor:
- name: "Fronius Together" # WIRD FÜR ENERGY DASHBOARD VERWENDET
state: "{{ (states('sensor.fronius_symo_gen24')|float + states('sensor.fronius_symo_8')|float)|round(0) }}"
unit_of_measurement: Wh
device_class: energy
state_class: measurement
attributes:
last_reset: '1970-01-01T00:00:00+00:00'
Then I created a utility meter to show up in energy dashboard. But this sensor does not show correct values.
What am I doing wrong? Or do you have a better way to get the energy dashboard working from 2 mqtt values sumed up?
Appreciate your help…