I want to keep an eye on my eletrical consumption, but I don’t have any connected device for that (and I don’t want to buy one). So I wanted to create an input field and manually report the value.
This works well, but I have some old data stored in a google sheet that i’d like to add.
Do you know how to acces the history of the input_number ? Or is there another way to do so ?
Hi, I’m trying to find a solution to store historical data, like you.
But I don’t find a final solution in forum it self.
Normally all this requests came from meters, that the energy, water, gas… companies have in their websites for every customer, and if you download this data, all data are from “past” time, not real time.
I’m only have approximations, in order to summarize my findings:
One approximation is doing “insert’s” data in database…
Documented here: History - Home Assistant exists information about fields.
And we can use: sensor.integration (to help you convert Watt to KiloWatts) KWh = Power in W * time in minutes / (1000 * 60)
And I like the idea of number 1 and 2 (Database and POST solution) but for example of using “past date and time” inside a attribute when you POST state sensor, for the moment I can not get this.
If anyone have a “better” approximation or a final solution I will appreciate.
I have been trying to do this as well. Were you able to find a solution? I get hourly sensor day from utilityapi but the API end point is only updated once per day. I can get the last several months of hourly data, but not real-time.