Greetings - I’m using the Tesla Solar integration to track/calculate data about my solar installation and I’ve discovered that the number of kWh imported and exported is stored as always-increasing numbers from the time of install.
I’m trying to create a Helper that will look at those entity values and then extract out a summarized value for a given date range (i.e, how much has been exported since midnight today). I’ve tried a History Stats helper but wasn’t able to get any data for and I’m now wondering how to best go about this task.
The built-in Energy distribution card is able to do what I want to do - it either has access to this data or calculates it (or both) and shows the information (highlighted in red, below) for any given day, but I’m not sure how to get at those values behind the scenes, or if I even can.
How do I calculate these derived values given the source entity data is likely stored in the HA database (I’m guessing here, seems like the obvious place) and has to be timestamped as well.
Thank you!
2 posts - 2 participants