Daily totals (Reset at Midnight) #259
Replies: 5 comments 10 replies
-
I added the layzspa in the energy page in HA and it shows the 'per day' usage: Not sufficient? |
Beta Was this translation helpful? Give feedback.
-
You can use history stats and/or utility meter to create those sensors. |
Beta Was this translation helpful? Give feedback.
-
I'd echo the same "issue" that the energy by default doesn't reset per day. As per the attached screenshot over several days. The whole energy sensors for HA confuse me a lot! Some of my devices just work, some count and reset, some "Total" energies reset at midnight in the stats - all the documentation within HA is quite complex to get your head around(!) This isn't an issue with the project or the Spa, it's tracking Total, and it's up to us/HA to correctly setup daily totals if we wish. There was a good setup for "Home Assistant Glow" sensor which also advertises the daily totals, and uses the clock to reset to 0 every day at 00:00 (that uses ESPHome though). Now that would be a useful sensor to publish over MQTT @visualapproach if we can implement that? 👍 Those sensors (History and Utility) interest me, I may take a look at those! |
Beta Was this translation helpful? Give feedback.
-
Hello guys, I hear you. And I will look at it. The "total_increasing" state-class is used and the sensor history will be kind of pointless, but HA will keep track of the daily consumption in the energy dashboard. They have changed the appearance lately though and it's a little confusing. The first day will be crazy, showing the total lifetime kWh, but the following days should work. The utility meter and stats that @Skeletorjus mentioned looks useful. |
Beta Was this translation helpful? Give feedback.
-
I added a "power" and "daily" sensor in dev branch. You need to schedule "reset daily meter" to repeat every day. |
Beta Was this translation helpful? Give feedback.
-
The timers for pump running, heater on, KWH are all good but I would like to have these two sets, one for between re-set counts and one that is re-set at midnight so that I can record the day usage.
as a work around I will add a re-set command to node red to reset at midnight but it would be good to have two set in the spa control.
Note I could do this re-set in the code but think its better to do it in home assistant.
Beta Was this translation helpful? Give feedback.
All reactions