I cant figure out how to get the values from the SMA - integration into the ENERGY - dashboard.
For days now I have been googling my bun off and trying all I can think of. No luck. Not showing up in the list.
Basically, I can’t even figure out, what exactly needs to go into the three fields. I am assuming: the “live” data (now) is needed. I have sensors for current solar production, to grid and from grid. Those do not show up in the list the ENERGY-dashboard shows me.
My sensors are named:
sensor.sunny_boy_grid_power (solar production)
sensor.sunny_boy_metering_power_supplied (to grid)
sensor.sunny_boy_metering_power_absorbed (from grid)
The three sensors show ‘W’ and that seems to be the problem.
Tried this, but does not work. Was only thing I found that make sense to me.
When you look in developer tools > states.
Have a look at your SMA sensors and check if any have the highlighted attributes.
That is what you need.
If you have kWh sensors without the device_class and state_class, you can use customize.yaml to adjust them manually in yaml. eg. add the device and state class.
If you don’t have kWh sensors you may have to make them with something like Riemann sum
They need to end up with
device_class: energy
state_class: total increasing
UoM: kWh