#Expose energy dashboard values as sensors.
1 messages · Page 1 of 1 (latest)
For example the total consumed energy is a calculation of daily energy import + daily solar production - daily energy export.
The problem is if i create a utility meter that resets daily on energy export but it didnt export anything yet the value becomes 'unknown'.
it would be way easier if home assistant just exposes sensors that already do these calculations and use those in the energy dashboard also.
The trouble is in your "etc". Where to stop? Hour? Day? Week? Month? Last hour? Last year? Last 3 months? Running quarter? Running year?
And you can all do it yourself. You can grab values with the recorder.get_statistics action. And make the sensors you like.
The problem is if i create a utility meter that resets daily on energy export but it didnt export anything yet the value becomes 'unknown'.
That surprises me, doesn't sound like the right behavior.
I wouldn't expect energy to want to add these extra sensors automatically, it would just duplicate a lot of what already exists.
Like what would it duplicate? these values don't exist at all. These sensors can be hidden by default also.