Currently there is only one time delay. You may be asking that when you open and close the door you would like it ON for 10 min or 5 min depending on time. If this is the case then have a look at my sensor light blueprint and you can use night lights with a different time delay.
Just a quick note. If you donāt use the timer then delay will be used and in the top post it gives you examples on how it handles a HA restart.
Day/time is not to be confused with delay or timer. It is not the same. Day/time is exactly thatā¦ set day/time. Delay or timer is not exact day/time. This blueprint can be triggered at any point and when it turns OFF is not a exact day/time.
FYI: Below are 2 examples for day/time v timer. There are many ways to handle this in your automation code it just depends on what option you choose. No way is wright or wrong.
Day/time = If you have X running for 3 hours and 20 sec before it is about to turn OFF you restart HA. At that point you are using a day/time trigger to turn it OFF. HA takes 30 sec to restart and your time/day trigger has been missed. It will not turn X OFF.
Timer = If you have X running for 3 hours and 20 sec before it is about to turn OFF you restart HA. HA takes 30 sec to restart and your timer resumes after the 30 sec and start the 20 sec left on the timer and turns X OFF. Yes it ran for an extra 30 sec but it is OFF.
Again you can make anything work it just depends on your code and what you would like to do. You could make day/time work in the above scenario but you will need the code to handle that. This blueprint needs delay or timer as it is not a fixed day/time. It triggered from the time you turn the light or switch ON.
I have three separate bathroom fans that Iād like to turn off after 35 minutes. Does each fan need itās own BP and Timer helper? At least from my initial testing, it seems the timer restarts when another device gets turned on.
I might still need this one. Basically, in my bathroom, I have a power switch for the bidet. If the switch is turned on, I want the fan turned on. Ideally, the bidet would turn off after 25 minutes, and the fan would turn off after 35 minutes.
I have a basic automation working right now (without a blueprint), it just doesnāt survive a reboot.
You can do this with the toilet exhaust BP. You would use the power switch for the trigger, use normal mode, enter in your fan and the time delay. The bidet turning off after 25 min I am keen to know more about this as it makes total sense to have it work with a bidet. If you would like to PM me and give me what happens and how it all works we can go through it together.
Hi @Blacky Thank you for your work and reply on this.
Itās actually very simple. My bidet is a power bidet with heated seat and heated water. While it as a āsleepā mode - itās not perfect.
So basically - someone comes into the bathroom to handle their toilet business, and pushes the button that turns on the bidetās outlet. But oops, forgot to turn on the fan.
Right now, my very basic automation sees that, and says, here comes smelly stuff, so fan ON. Then the bidet outlet turns off in 25 minutes, and the fan turns off in 35 minutes.
Of course this doesnāt survive a reboot so, the fan or bidet stays on.
Thanks for the infoā¦ I am going to look into this more but what I would do is use the Toilet Exhaust Fan with time delay BP. Use the push button as the trigger (may need to do something here but you need an ON state), use normal mode, donāt use the wait time, enter in your fan and set the delay time to 5 min.
What I do it have a Shelly on my light in the toilet so I can see if it is ON or OFF (that is all the Shelly does, we still use manual control) and then I use the light as the trigger, normal mode, use the wait time and set it to 2 min, enter in the fan and time delay of 4 min, Use time from 8am till 10 pm every day. Everyone loves it.
Hi Blacky,i like your work. Are you interested in taking up part-time job of setting up my smart home using HAOS. Please reply to me on email [email protected].
Thank you.
Vikram
Thanks for your consideration but sorry I will have to pass. It is quite easy to do and there is a lot of help on this forum with many people will to help.
Hi Blacky,
Thanks for the great blueprint !
I am using it to automatically turn off my garage light after 5minutes when I park the car but sometimes I work in the garage and I would like to keep the light on forever. I was wondering what would be the best way to use a bypass entity similar to sensor light?
-David
You could try the motion sensor option and create a toggle helper and use that instead of a motion sensor. It just needs to have a ON / OFF state. It would work best with a motion sensor as then when you leave and you forget to turn a toggle helper OFF manually and the light stays ON forever a motion sensor will always do this for you.
So if you had a motion sensor then you would need to turn the light ON manually and the motion sensor would keep it ON with a timer to then turn it OFF once no motion is clear.
For instance when I come home, my outdoor lights come on. By default they would be switched off by this blueprint in 15 minutes.
However sometimes I expect company and I would like to leave them on for, say 2 hours.
Currently, I cannot extend the existing timer due to HA timer limitations: Error: Not possible to change timer timer.outdoorlights beyond duration
Could this blueprint have MAX as well as DEFAULT for the timer? Basically, it could start the timer with MAX value and then set it to DEFAULT. That way I could modify the running timer to exceed the initial time.
If you use the same timer with a button helper, you can add buttons to your dashboard that set the timer to predefined durationās. For example, you could create four buttons for different time intervals: 30 minutes, 2 hours, 3 hours, and 4 hours. Simply press the desired button, and the timer will be set to the corresponding duration.
Yeah. Great suggestion. Not what iām looking for though.
I sometimes would like to āpushā the timer. Not to really predefine them. Say have a +1h button that will add as many hours to a running timer as it is pushed. I could stop the timer and start it with a new time, but as the lights are tied to the timer, they would blink.