Power History

Hello,
I have smart plug and i can see the current, voltage, power and historical daily power. But in home assistant i can’t see sensor to showing the daily power, anyone know how to query the daily used history? I need this to calculate the cost power daily.

I guess you look for your daily consumption (energy)?
Then you need to use the Riemann integration to get energy from power.
See numerous posts about that subject

Hello,
Thanks for your suggestion. I’m is newbie in this home assistant and i already try to use Reimann integration but not showing the data. Here my details:
I want capture daily power for my smart plug

here my reimann setting

and no any result

Any suggestion?

Choose “hour” for the time unit.
Keep in mind it will take some time before the first value is created

it’s possible to get only for yesterday not per hour?

per day is not a valid unit.
But having it stored once, you can:

  • create an utility sensor which will handle data aggregated by a given period, then query the last (current) value, or
  • create a template sensor handling last day data (which is effectively the same as above), or
  • create a graph from continuous data, aggregating them in the graph. It might be apex-charts for example, or
  • store timeseries data to another db, and spin Grafana to show what you want

Not sure. If it’s not available, you can create an utility meter on the energy sensor to get the values per day/week/month