Today I had another free energy session I and thought I should be able to automated this with home assistant, now after some effort I got this automation “ALMOST” working - which is where I need your help…
I created the below automation and it is supposed to monitor an “EVENT” - but I think there is an issue within home assistant and the EVENT name is too long, I can’t even manually send an event - but if I create a fake one using a shorter name it works !!! - can someone have a look and see if it works for you.
Am guessing that they trigger every time the integration polls Octopus because other events such as import rates trigger more frequently.
I use predbat which handles decoding the Octopus free electricity events, but before Predbat did this I used a REST service to get these details into HA, and its easy to trigger on when the times change:
PS: Don’t use device id’s in your automations, it makes them unreadable and not portable. Just select the entity id instead, you’ll get a readable name and not a string of numbers
You just configure a line in apps.yaml to point to your Octopus free electricity sensor and Predbat will automatically plan battery charging/discharging for the free electricity event. You can adjust the predicted load for the free sessions as well so if you plan to put the washing on etc
I followed the instructions for the link you provided, and its a bit more complex to setup - but its all working now - so just wait for the next session now.
My automation just turns on my iBoost for now - and then i’m going to add in all my other things like Tumble dryer and Air conditioners etc..
I just want to use as much free power as I can handle ( I don’t have an EV yet - but that will 100% be the big hitter for free power )
I would be cool if you could get this integrated into predbat to make is simpler to use in further automations, but I am happy and predbat is am awesome bit of software,
I started off with the whizzy.org REST API to create the free electricity sensor, and I then had my own scripts to push that into predbat.
Predbat will now auto detect the free electricity session if you set it up in apps.yaml, but at the moment doesn’t have a ‘free electricity session ongoing’ flag or similar. Could mimic the effect with an automation triggered with current import rate being zero, or use the whizzy API.
For me the free electricity sessions are generally of limited use when they occur during the day as I’m often generating so much solar that I am exporting not importing.
Predbat has picked the free session up automatically for me tomorrow, and although its planning to charge, in reality I expect I will be exporting not importing as I can only charge 2.4kW into the batteries each half hour and the solar forecast is for more than that.
it’s great that there are so many ways to do the same thing - I have an iBoost+ that has a “Feature” that even though when you select “Manual Boost” if is detects over 1kw return of solar it switches back to automatic, I just changed my automation to look at the costs per kWH and use that to control the iBoost ( and send some notifications ).
I also took to heart your suggestion to use the Entity_id
Here is my really simple automation now that has a delay and loop so that my iboost+ works as I want, and now if does work I am also going to add additional tasks when Power-ups happen so that my AirCon comes on and will either heat or cool my house for free ( as why not just use the power when it’s free )