As a follow up to my last post about automatically joining Octopus Energy Saving Sessions, and in answer to a question on Mastodon, now that the calendar month has ticked over and my wheel of fortune spins have reset, I can confirm that yes, you can automate the spinning of the Octopus Energy wheel of fortune.
Once again, I have to say that I’m not claiming to have invented any wheels here, and I’m very much standing on the shoulders of giants, in that the folks who make Home Assistant, and David Kendall who made the Octopus Energy custom HA integration have done the hard work, and I’ve just connected point C to point D.
The automation YAML looks like this, although I will fully admit to using the built in Home Assistant automation GUI editor, then clicking “switch to YAML mode” to copy and past here for you fine folks 😉
description: Spin the electricity wheel of fortune when the number of spins is above zero
- platform: sun
- condition: numeric_state
- service: octopus_energy.spin_wheel_of_fortune
The observant amongst you will notice that this is just for the electricity wheel of fortune. If you also have your gas from Octopus, simply use the Home Assistant built-in “duplicate” function on the automation, and change the appropriate entities from electricity to gas.
(and yes, I’ve once again remembered to redact my actual Octopus account number from the automation screenshot and yaml 😉 )
I could have probably just set the trigger to be “when the value of the entity changes”, but I was feeling whimsical and mischievous, and felt like running it every day at sunrise 🤷