I’m trying to count the data of one day, starting from 00:00 till 23:59 of the sensor “sensor.power_production”. This sensor is giving the exact data of producing power to the grid. Can someone help me with the config to get the data of one day?
I tried the following configs but it didn’t work out well.
That is a power sensor (kW) not energy (kWh). You cant sum it. Also the history stats sensor does not work like that.
If your device has an energy sensor (unit of Wh or kWh) then feed that to a utility meter with a daily cycle.
Job done.
If your device does not have an energy sensor then convert the power sensor to an energy sensor using the Riemann Sum integration (integrating power with respect to time gives energy):
Then feed this sensor to the utility meter on a daily cycle.
I think this is the solution. tommorow i know exactly. We now have the wasingmachine on and the dryer so all the sunpower is going to that machines. Thanks a lot @tom_l
Just remember that sensor will keep counting up. The Utility Meter linked above can give you quarter hourly, hourly, daily, monthly, bi-monthly, quarterly or yearly totals.