There are 5 sensors and I am assuming each sensor consumes 1 api call.
(7pm) 19 - 5 (5am) = 14 active hours.
14 * 5 calls per hour = 70 requests per day.
if I change the slider to 2 hours per request, then it halves to 7 requests per day * 5 sensors = 35 requests per day.
Given the free accounts are limited to 50 per day, I am going with 2 hours on the slider.
I don’t think so. If you look at the REST call in the stuff I posted above, I think one api call gets all the data in one go. The other thread goes into a lot of detail on the data formats. If you look at Issues on the repo, there is more discussion on the frequency too.
I’ve been playing with the solcast integration. In the Energy graphs you included above, you showed one which was presumably for tomorrow, with a nice sloping graph of the forecast. Any idea how this is produced from the integration’s sensors, which don’t seem to provide enough data to do that?
Yeh. Must be feeding the data directly to the Energy platform, and not creating sensors for it all (which is what the other method does). Oh well, moot point until the integration is behaving a little better. Hope it gets there.
This is a rainy day where I managed to still generate 12.6 kWh and every bit of it went to the hot water heater all day. I went out and checked the temp sensor late in the afternoon and the water was at 70 degrees celcius.
Thanks very much for taking the time to post that @del13r. I’m still thinking about this. It must be great to see as much production used as possible. Looking back, my bad, rainy day production tends to be soaked up pretty completely by the normal background use in my house, and, given I have a small water tank for the size of the household, it does still worry me a bit. It will all be down to whatever mitigating procedures are put in place by whatever system I’d use really. Although, granted, the number of days that are likely to be a problem are very small.
After I changed my electricity retailer, I am now on a rolling 28 day bill whereas previously I was on quarterly.
I have figured out how to add 28 days to the reset date once the current bill is finished and the reset is triggered.
I have also updated the same code in my Time of use seasons (seasons defined by the power company which effects what months have peak rates charged).
The reason why I am doing this automation is so I won’t have to remember to update the date/time helper manually myself.
In this case, I will be adding a year onto the existing helper.
Here is how I tested it and know ahead of time if it will work or not.
First I checked my logic
I went to developer tools / template /
{{ now().date() }}
result was 2021-12-09
Then I did this template
{{ now().date() + timedelta(days=365) }}
and result was 2022-12-09
Then I went to my 4 automations (1 for each season) and updated them to look like this one for example where peak tariffs are not charged for 2 months from April 1 onwards so that is why this automation disables 2 peak tariff related automations from running.
I have also ditched the 5 hour pool pump timer in favour of a history_stats sensor.
I found that if I rebooted Home Assistant, the timer status would be forgotten.
This new history_stats sensor records how long the pool pump has run for the last 24 hours from right now.
As I just set it up today, the sensor has not recorded enough data yet, but effectively this is what it looks like
And then I can use logic in my automations to decide to make up for poor solar generation in the last 24 hours that prevented the pool pump from running long enough in the day.
This logic for example will return a true condition if the pool pump has run for less than 5 hours in the last 24 hours.
Those are both very imaginative solutions. The use of the history_stats sensor is much neater than the timer. Didn’t know that sensor existed either, but then almost everything you come up with is news to me!