When a trigger is activated, it turns the selected entities ON and then OFF automatically after a pre-set time period.
Multiple Triggers:
You can set up to 4 different triggers, each with its own time period.
Reset on Re-activation:
If a trigger is activated again before the time delay expires, the entities will stay ON and the time delay will be reset based on the last trigger event.
Timer Helper Option:
You have the option to use a timer helper. This is useful for displaying the remaining time on a dashboard and ensures the timer survives a Home Assistant restart.
HA Restart Behaviour:
With Timer Helper: The timer will resume as if nothing happened, which is recommended for continuity.
Without Timer Helper: The automation will attempt to reset to the start of Trigger 1 upon restart.
CHANGELOG
Version: 1.7 - 29 July-24 - Added collapsible sections update descriptions for better understanding & new layout.
Version: 1.6 - 11 Nov-23 - Blueprint name change, added 3 extra triggers, change time input & can add any entity domain.
Version: 1.5 - 22 Oct-23 - Added HA safe guard when not using timer helper. Fixed a bug in entity selection.
Version: 1.4 - 22 Oct-23 - Added timer helper option, trigger to state option select any entity.
This blueprint attempts to use a delay to simulate the function of a timer entity. The main drawback is that, unlike a timer, a delay can’t survive a restart.
The longer the duration of the delay the more vulnerable it is to termination by a restart (or simply by reloading automations in versions prior to 2022.11.0). This blueprint supports delays of hours and days which means the user should be especially careful of when they restart Home Assistant. Automations based on this blueprint may fail to run to completion (i.e. entities that were turned on won’t be turned off).
For long delays, it’s best to avoid delay and use a timer (with restore: true).
On @123 advice we have removed days and limited the hours to 4 to reduce the risk of the blueprint fail to run to completion. Normally this time frame is all you will need anyway. If you need more hours just let us know.
We are going to look into timer for long delays when we get more time to spend on this blueprint.
If you have already created an automation with Version: 1.1 it will still function. If you update to Version: 1.2 we recommend you delete the automation created with Version: 1.1, update the blueprint to Version: 1.2 and add back your automation.
Is it possible to extend the trigger domains to input_boolean? So it is easier the create a helper for this automation?
Another feature request:
Could it be possible to disable the boolean after the countdown is finished?
Update:
hmm, I think that my wishes (e.g. an additional action) have to be implemented in my own individual automation. A blueprint would be too specific.
It wasn’t really well thought out on my part. With a normal automation it is easier with my special requests.
I want to start a timer via an input_boolean (“activate pool pump for 30min”). After the timer has expired, the input_boolean should be turned off and a pushover message should be sent.
The plan is to start a pool pump over it.
Just a heads up if your still on a old HA version before you update.
From time to time Home Assistant update their code structure and the old code will become “DEPRECATED” stopping / breaking automations from working. It effected this blueprint about 4 to 6 months ago. I wanted to wait some time so everyone had a chance to update their HA version before updating the code as older HA versions can not run the new code. This blueprint has now been updated so it will still operate once HA remove the “DEPRECATED” code from their system.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Hello,
Another nice blueprint here !
I would like to use it to start a bed heater for X minutes.
I use a slider helper as input time
I use a button helper to start the timer
It works but the button entity cannot trigger the automation
If I run manually, the script works as it should.
Any idea ?
Bonus: It would be very nice if just sliding the slider could also (re)start the automation !!!
Bonus 2: display the remaining time in lovelace … is there a way to access the timer entity of the automation ?
Here is the code.
ps: entity_input: - light.salon_salon_1948 … is for testing purpose
I have updated the blueprint and gave it a bit of a tickle, I think I got most of them except the “sliding the slider”, not sure what you were talking about.
Timer Helper Added a timer helper option. By adding a timer helper it will survive a Home Assistant restart and resume its time. It also allows you to display the time in a dashboard.
Note - When creating your timer helper, make sure you tick the box to restore so it will survive a HA restart and don’t set any time in the timer helper duration, use the time settings in the automation.
Entities You can add any entity you like now.
Trigger State You can select a trigger state “Any State Change - Example Button Helper”. This will now work with the new button helper HA released a few months ago.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
I can now just set the number with a script or trough api and my heating blanquet will start for XX minutes when I activate my go to bed mode
One more suggestion:
I think that it would simplify further the process to have a button called “heat for 20 minutes”, another one “heat for 35 minutes” etc
If the blue print could set a timer depending of the trigger it would spare the need to create an intermediate script for each button.
Here is the current result:
This is a full redesign and will break your existing automation. We have also changed the name so you can keep your exiting automation and just use the import blueprint button at the top and try it out.
New Feature
Name Change - To align with my other blueprint and hopefully for better understanding of the blueprint.
Triggers - You can now have 4 different triggers with 4 different run times for your entities in the one blueprint. No need to have multiple automations for different times.
Time Input - Removed time sliders to keep the blueprint clean now having 4 time selections.
Entities - You can now have any entity domain.
If you like this blueprint? Consider hitting the button in the top post
If you like my blueprints, and would like to show your support or just say thank you? Click Here
Thought you would like it. You noticed the update it quickly. I used it for a few weeks now with the timer helper and it has been working well. Finally had time to push it out.