Hey there, new to discord, not that new to HA.
i wanna make a new Button under my Energy-Cards with "Reset", to reset the Statistics to complete zero. (like every year if i have to pay my Bill, reset to zero via Button)
tried with purge in .db and purge entities, but still having the old kwh data in my history.
does anyone have an idea how to make an easy reset button for that? (sorry for my bad english)
#Sensor-History Reset
1 messages · Page 1 of 1 (latest)
Clearing of statistics is not exposed as a service, so there's no easy way to do this. You are limited to manually clearing on the developer-tools/statistics panel.
But why would you want that? As energy is just a relative value and the meter is still tikking.
If you want to display it on you're own dashboard for a certain period, make a utility meter for it.
I would also be interested in this. My use case is : I have a meter measuring global energy consummed. I've added, some month later, another meter to measure consumption on a specific circuit. If I wanna make a relation between both sensor, I can't as "start date" are not the same and I cannot have a good matching between both value.
@brave osprey If you add them both to the enery dashboard you have perfect insight per hour. And if you always want a very specific periode or something, my answer from above also applies to you 🙂
ok sorry, I've forget to give my need. I'm collecting Power Grid consumption with a meter for daily, monthly and yearly. I'm also collection datacentre consumption with a meter for daily, monthly and yearly. After I'm calculating PUE (Power Usage Efficiency) which is a simple calculation Total Power / DC power. So I need both meter start at the same to to have a real value for my PUE
@brave osprey Answer is stil valid, make utility meters 😄
Sorry but i don't understand what you mean buy make utility meters. I already have 6 for my need. Which one should I create more ?
@brave osprey If you use utility meters, then what is still the issue?
The issue is that utility meter did not starting counting at the same date and time. This is why I'd like to reset them to 0
Documentation is pretty clear 😉
You can give it a meter reset cycle to periodically reset by itself. For example, every day or every month.
Or if you want to do it once, irregular or in a matter not supported by the build in reset cycles, you can use the utility_meter.reset action.