On a separate note, I am testing your blueprint on a light. It works fine except when I disconnected the occupancy sensor from the network. When I manually turn the light on, it immediately shuts off. I will add that for testing I had set the timer to 1s.
Can this be time based so from 5pm to 10 pm lights stay on for 10 min and 10:01 pm until next day 4:59 PM lights stay on for 5 min.
Since I only have a door binary sensor that is Open or closed I changed these settings to accommodate resting the helper timer when the door is re-opened. I have Kasa motion sensors and they dont allow for HA to see motion status.
420 - alias: Ceck if the timer is idle
conditions:
- condition: state
entity_id: !input timer_helper
state: Closed
449 - alias: Ceck if the timer is idle
conditions:
- condition: state
entity_id: !input timer_helper
state: Closed
Thanks. Im a bit confused by the response to the second item since the point of your blueprint is to allow for manual control with auto off. What Iām seeing is that when the proximity sensor is offline, the blueprint shuts the light off. I would hope that it would do the opposite and not shut the light off and only return to normal operation when the sensor is back online.
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.