Hey!
I’ve recently moved to a new apartment, and my building has a contract with some electricity provider that allows us to see our apartment’s electricity usage by month/day/hour using a dedicated app. When viewing information by hour, for example, I can see the kWh per hour, until the last hour. So if the time is now 14:00, my latest data point would be 13:00.
I intercepted the app network traffic and wrote a python script that let’s me see the same data, and now when it’s all working, I want to turn it into a HA integration that I can later choose under “Energy” → “Add consumption”.
However I’m a little lost about how this should work. What kind of sensor(s) should my integration expose, and how is it supposed to work with the fact that I only have data until an hour ago, i.e. not real time?
Any tips on how I should be writing this, and perhaps example from other providers that work similarly would be really appreciated ![]()
Thank you very much!