I am trying to get an automation for our bathroom working. The scene ist the following:
I measure the humidity in the bathroom. When somebody turns on the light, the fan turns on.
The fan should turn off after 5 minutes when the light is turned off, but only when the humidity is under 65%. The automation should wait more than the 5 minutes if the humidity is still over 65%.
Ive tried some things in the automation GUI, but I wasn’t successful yet.
Here’s how my automation in yaml looks like right now., maybe someone can help me. I’m new to HA and don’t know the Syntax so good yet, sorry.
OK this is one way I thought to do. Looks like the easiest way to do it.
I just tried to wait for the humidity without a timeout, but waiting for a max amount of time is also OK for me.
Thanks.
One question: What happens if I set continue_on_timeout to true? My understanding is, if it’s set to false and the timeout triggers instead of the value, it stops executing the automation.
Edit: NVM, continue is always set to true by default in yaml, the GUI is not
Please consider marking my post above with the Solution tag. It will automatically place a check-mark next to the topic’s title which signals to other users that this topic has been resolved. This helps users find answers to similar questions. For more information refer to guideline 21 in the FAQ.