Hi there,
I hope this is a generic query although it could be specific, i’m not sure.
I have the Octopus Energy integration to HA, and have signed up for Octopus Energy Saving Sessions. For anyone who doesn’t know, these are sessions controlled by the UK’s national power grid network whereby signing-up energy providers and their customers who sign up for these sessions can make a lot of money if they change their energy usage habits during this period.
The Octopus Energy integration gives the following information
As you can see though, this is in the form of a binary sensor (off/on) and also a bunch of attributes.
I have PV and a battery at home, and have managed to create a basic automation that should work for this evening’s saving session which dumps my battery’s charge to the grid when the Octopus Energy integration signals a state change that the saving session period has started (on). However, as you can probably guess this is suboptimal for two reasons:
- I only get credited if I have manually signed up for tonight’s saving session
- The credit i’ll be given for the session depends on the amount of charge in the battery when the session starts
I’d therefore like to amend/add to my automations in two ways:
- to ensure that the action of dumping my charge to the grid ONLY occurs if the “Joined Events” attribute lists the current date and time (to avoid dumping my charge to the grid if i’ve not joined the event in question), and
- to be able to force a charge of my battery for a period prior to the next joined event where the period is dictated by the “Next joined event duration in minutes”. e.g. if the duration is 60 minutes I want to trigger a battery charge 60 minutes prior to the event to ensure i’m not charging the battery for longer than I need to at peak rate tariffs.
How would I go about this given the attributes (and their formats) listed in the graphic?