⏲ Timer

New Update 1.2

:new: New Feature - Collapsible Sections

  • Collapsible Sections - Added collapsible sections to the blueprint. This enhancement improves the blueprint user interface by making it cleaner and more organized, allowing sections to be collapsed.

    :warning: This feature was introduced in Home Assistant 2024.6, so you must have this version or later for the blueprint to work.

:toolbox: Maintenance

  • Set blueprint to my new layout.
  • Update input descriptions for better understanding.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

1 Like

Hey Blacky,

I’m using this blueprint for a 16h on 8h off light setup. If home assistant is updated or restarted during the on duration it seems it looses track of the elapsed time and duration remaining. Is it feasible to fix this or might be unfixable?

@rs_007

Are you talking about the time it takes to restart HA is lost in the timer? If so that is a HA thing. So when HA restart it pauses the timer and then when it starts again it restarts the timer but you must tick restore. I hardly notice as my restart is about 1 second. I know my NUC running HA is a overkill but it fast.

Blacky :smiley:

Perhaps it might be on upgrades my home assistant core auto updates on Sunday (docker image) I’ve noticed once so far that the timer is going longer then the set duration

I could be… the reason we use a timer here is because if you have a long time like 4 hours and then you restart HA just before it ends it wont start from the start of 4 hours, it just completes the remain time… yes you have to add the restart time but that is normally not that much and it is the only way it can be done.

Blacky :smiley:

Aloha Blacky, I’m relatively new to HA and like your blueprint. I’m using this to turn on a ceiling fan at 8:30pm to run for a few hours, nightly. How can I add another condition (presence sensor) so that the timer doesn’t run when I’m away?

@Phily808

Aloha Phil, welcome to the community

This blueprint is just a basic timer.

I am developing a blueprint for ceiling fans though, :thermometer: Temperature Control Fan. It currently works of temperature but time, device tracker, maybe presence would be some condition I would consider adding to it. Looks like you live in Hawaii and it would be a good place to get some feedback from you and your thoughts on my other blueprint.

I am thinking rise in temp + time condition + HA knows your home = fan ON. Maybe have a look at the other blueprint and if you like post something in that thread.

Blacky :smiley:

Thank you for your blueprint. I’ve been using it for a long time. Since it’s almost Christmas and the houses are beautifully lit, I would like to use your timer for the Christmas lights.
Unfortunately I’m missing 3 options. 1. Turn on entities at sunset. 2. Turn off entities at a certain time. 3. Only turn on entities when I’m home.

Why do I need the options? The outside lighting should always come on at sunset or shortly before and turn off at 11 p.m.
The lighting inside should also come on at sunset, but only when I’m home. I would always turn it off myself.

Would that be possible?

@TheBermud

If you would like to achieve options 1 & 2 then try my :high_brightness: Smart Light.

If you would like to achieve options 1, 2 & 3 try my :bulb: Sensor Light. For this one you would set it up like this.

  1. Create a schedule helper for the trigger making your start time well before sunset and your finish time at 11 pm.
  2. Use the sun elevation condition.
  3. Use the Device Tracker Options so it will only work when your home.

Hope this helps you.

Blacky :smiley:

1 Like

Thank you for your answer. This helps a lot :slight_smile:

1 Like

Does this blueprint help, if I want to run send a TTS notification to the companion app based on time and motion trigger and run it only once per day, is there an option to set for it to run only once per day?

@marksev1

No it will not work for what your asking. Looks like this would be a custom automation.

Blacky :smiley:

Depending on what you want to achieve:

  • time trigger with motion as condition
  • motion as trigger with time as condition

Create a helper that you turn on/off with the automation and off/on at the end of the day as a condition as well.

Yeah the bullet points I’m aware and can do it in the graphical automation editor, but regarding the helper I’m a bit confused on how to do.

Your TTS notification automation/script turns the helper off and somewhere, after it has run (overnight?) you turn the helper back on.
In that TSS notification automation/script, you use that helper as a general condition to execute it.

I’m doing it this way and turn that helper on when the sleeptime routine is activated.

New Update 1.3

Effortless Control: Schedule :date:, Trigger :zap:, and Automate Your Home :house: with Precision :dart:!

:toolbox: Maintenance

  • From time to time, Home Assistant updates their YAML standards and coding practices. To align with their roadmap, we’ve updated the code accordingly. We will continue to apply these updates across all our blueprints as they are revised.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

1 Like

Hi
Thank you for your great blue prints Blacky much appreciated.
I came to the blueprint because i am looking for a timer for a smart plug to turn on for 48 hours and then off for 2 hours and then back on for 48 hours and so on.
So if i use 2 timers 1 set from 6am for 48 hours and then it turns off and then set the 2nd one to turn on at 8am for 48 hours will that just go in a loop or just stop at the 8am timer.
Thank you

@nutbox76

It is because you are wanting 48 hours and it should really be used for <24 hours.

Each time it starts will be different because your have run 48 hours off 2 hours then run 48 hours etc. You may best best to do a custom automation for this.

I don’t know what your doing but maybe turn ON and run for 23 hrs, then it will be OFF for 1 hour then back ON etc. That way it will be ON for 46 hrs and OFF for 2. But again I have no idea what your trying to do or achieve.

Blacky :smiley:

Thank you ,its basically for a xbox fridge to turn it off for a few hours to stop the ice build up because it doesnt have thermostat .
I mean 24 hours on and 2 hours off would be fine so it could be done with this blueprint.

@nutbox76

You would have to do 22 hours ON 2 hours OFF total = 24 hours.

Blacky :smiley: