An Automation that pauses my connected washer-dryer till power is cheap but also offers a manual override. #206
AkshayRao27
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Credit & Disclaimer
I'm not a programmer by stretch of the imagination, and this post is a mix of documentation & instruction, so that when I inevitablity forget how any of this works about 2½ weeks from now, future me has something to fall back on. I had a lot of help from ChatGPT when writing this automation. If you need any kind of technical help with any of stuff below, I don't know how much I will be able to contribute ¯\_(ツ)_/¯
What this Automation does
Prerequisites & Assumptions
automation_debug.log
file.Step 0: Create a separate Debug Log (Optional)
I like having all my automation debugging to be logged in a separate file and so, I created a different log file. Doing this is extremely trivial if you have the Studio Code Server Addon. Start the addon and in "Explorer" click File → New Text File and call it
automation_debug.log
(if you decide on a different name, make sure you use the correct one in the automations later on).Step 1: Create an Input Boolean Helper
This entity will be our "override flag". When it's set, we'll be able to start the appliance immediately without waiting for it to be scheduled for the cheapest price window. This is helpful in case a cycle needs to be run urgently.
Go to Settings → Devices & Services → Helpers → Create Helper and create a "Toggle" helper. I named mine
input_boolean.aeg_washer_dryer_cheapest_window_override
. ("Toggle" helpers are coded asinput_boolean
in their entity names)Step 2: Create a way to specify an override.
This can be done in several ways:
I went with the third option. I have an old Z-Wave Aeotec Wallmote which I wanted to use for setting the override, so I wrote an automation:
Step 3: Create the main automation.
With the override & a way to set it in place, we can now make the automation to control the machine.
Assumptions
This code assumes that:
sensor.aeg_washer_dryer_timetoend
.sensor.aeg_washer_dryer_timetoend
reports the number of minutes.Beta Was this translation helpful? Give feedback.
All reactions