ha-emporia-vue
ha-emporia-vue copied to clipboard
sensor Cost - sensor.homebase_123_1d_cost
I really love this sensor in a card but it seems to reset whenever I do a reboot of HA. If I am not testing and leave it all day, it will reset at midnight fine and show correctly the next day but if i am adding new addons and need to restart HA, the cost resets but the kWh stays the same
So that sensor is actually part of the energy dashboard, not directly data pulled through the integration. As such I don't have any control over it and it would have to be updated/fixed in Home Assistant Core. I agree that it's nice to show and somewhat annoying that a restart resets it to 0 so I wouldn't be too surprised if someone fixes that in an upcoming Home Assistant release.
I have an issue that may be related here.
In Home Assistant, the values for the 1D sensor tick up through the day as expected, but they don't zero out after midnight - they zero between 15 and 70 minutes after midnight. That means that when I use these entities (I have 4 of them) in the Energy Dashboard, the first value of the day is effectively the total from yesterday, and I then get incremental additions to that. So all my calculations are wrong for the day.
Is there anything I can do to mitigate this?
Many thanks
@michaelrch try the pre-release version, it tries to handle that better. Specifically it's got some logic to set everything to zero at midnight, plus the measurement class change from total_increasing
to total
handles the random spikes that the API returns between midnight and 1AM (and occasionally during the day, but usually as random dips) much better meaning they won't totally mess up the energy dashboard. If it happens on the border of an hour then one will be high and the next will be low when it drops back down but the total for the day should work out.