How To Use Timers To Build Reliable Automations in Home Assistant

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 143

  • @SmartHomeJunkie
    @SmartHomeJunkie  2 года назад +5

    Did you know about timers already? Let me know your use cases!

    • @neutralias
      @neutralias 2 года назад +1

      No, I didn’t know about it. I’ve learned it now. 😊 It was one more missing piece .
      HA is full of hidden gems. Thank you for your help to find them. 😊

    • @TravisWrightUtah
      @TravisWrightUtah 2 года назад +2

      Yes, I did know about timers already. I use them mostly with things like my garage door. I start a timer to remind me to close it if it remains open for more than 15 minutes. With an actionable notification of course!

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад

      @@TravisWrightUtah That sounds like a good solution!

  • @TheLawIX
    @TheLawIX 2 года назад +22

    There should be a toggle on every automation or timer, something like "Persist through restart". Hopefully that's added one day.

  • @bramnelissen9106
    @bramnelissen9106 4 месяца назад +2

    This is a very nice and compact way to program random vacation timers for lights and screens!
    It seemed complex in the beginning, but after writing the code it actually it is very clear and straightforward.
    Thanks!

    • @SmartHomeJunkie
      @SmartHomeJunkie  4 месяца назад

      Thank you Bram. You might want to check out this video as well to create easy presence simulation during your vacation:
      Automatic Presence Simulation in Home Assistant - Tutorial
      ruclips.net/video/OTQu3BMr3EU/видео.html

  • @Danielo515
    @Danielo515 Год назад +3

    My main problem with everything homeassistant is how disconnected entities and automations end being. This is the best workaround I saw so far

  • @cjordahl
    @cjordahl Месяц назад +1

    Your tutorials always make me think about Home Assistant in different ways. I have learned a lot from your videos, thank you.

    • @SmartHomeJunkie
      @SmartHomeJunkie  Месяц назад

      I'm glad they helped you. Please consider sponsoring me so that I can continue my work. 🙏🏻

  • @TheCablebill
    @TheCablebill Месяц назад

    Thanks for posting this. It's a fine example of why HA is still not for regular people. A simple delay ought to survive restarts implicitly. As someone who has dug a hole by getting HA running, I much appreciate the shovel you have provided in this example so that I can bury myself more completely..

    • @SmartHomeJunkie
      @SmartHomeJunkie  Месяц назад

      Well, creating timers is really just for critical automations. I wouldn't create a timer for light automations for example. I would use the wait time in the trigger for that.

  • @diedrichg
    @diedrichg Год назад +1

    I have successfully implemented your random timer script, it works flawlessly! THANK YOU! I use it to trigger three scripts which turn off various lights at different intervals. The randomness is comforting since this is used while on vacation [holiday].

  • @riesmoos
    @riesmoos 2 года назад +2

    Wow! Including that 'random' statement in the code should take some of my existing automations to the next level.
    Thanks Ed !!!

  • @emms-place
    @emms-place 2 года назад +4

    Great video. This was very informative and just what I need to try for my kitchen lights. I will keep my time interval as fixed but I am sure I will find a use case where I need the random time interval

  • @devinhedge
    @devinhedge 3 месяца назад

    Great video! I wish there were more examples out there. This was so useful!

  • @chedinsaat
    @chedinsaat Год назад +1

    Thank you for this awesome tutorial. Been trying to do this couple of time but fail. Now it works flawlessly. Thanks again!

  • @fotografierbahr
    @fotografierbahr Год назад +1

    thank you !!!
    The first Video from where i undersand how to start AND stop a Timer in the new automation

  • @redd5303
    @redd5303 2 года назад +1

    Thanks Ed! this is sick! i used a node red automation that reset a "timer" after a minute. This is a game changer :D

  • @davidcarhart5933
    @davidcarhart5933 10 месяцев назад +1

    Thanks!

    • @SmartHomeJunkie
      @SmartHomeJunkie  10 месяцев назад

      Thank you for watching and showing your appreciation!

  • @TravisWrightUtah
    @TravisWrightUtah 2 года назад +1

    I have used timers for motion with my lights, but you gave me a new way to look at it. My automation starts a timer on motion, then has a do while motion is detected and would restart my timer. I have had trouble with this. My automation will sometimes drop out of the Do While loop.... This is much more clean and I think will work better. Thanks!

  • @petercook4350
    @petercook4350 2 года назад +2

    Excellent tutorial as ever. Thank you

  • @sevagjb
    @sevagjb 2 года назад +1

    I was searching for this solution from a month, thanks man 🎩

  • @ChrisBoehmvideos
    @ChrisBoehmvideos 2 года назад +1

    Only just getting round to looking at timers this video was great, I am using a timer for a power socket so the heating is only on for an hour.

  • @paulstimpson830
    @paulstimpson830 2 года назад +1

    Thank you. I was struggling to craft an automation to restart the delay if the motion sensor retriggers and have the timer stop and the light remain on if I press the wall remote while the light was on from the motion sensor. This is the answer!

  • @CalMUK91
    @CalMUK91 10 месяцев назад +2

    Not sure what is going on with the new HA update but theres no 'event' tab and its now 'manual event'.
    But I cannot add a timer as an event for a trigger.
    This works still but I have to add it as a state change. For example, state change from active to idle.
    It works that way. But I tried the exact thing in this video adding 'timer.finished' and the entity_id as my timer and HA says its not valid 🤣

  • @euartista
    @euartista 7 месяцев назад

    Sincerely, this is too complicated for the regular people that wants some automation power out of Home Assistant but does not necessary want a million steps to create an automation of something that should be simple as a timer. Not your fault, your instructions were great.

  • @peterorzol420
    @peterorzol420 11 месяцев назад

    very inspiring tutorial. Easy to follow. As beginner not necessarily easy to understand. But this will come with time.

  • @arriewarrie
    @arriewarrie 2 года назад +2

    This was helpful! Thanks

  • @donondre7314
    @donondre7314 4 месяца назад

    Very nice explanation, thank you! How do you display the remaining time of the timer in your dashboard?

  • @zhorax
    @zhorax 2 года назад +1

    Love your energy!

  • @mareckorlicki6334
    @mareckorlicki6334 2 года назад +1

    Thank you a really great tutorial

  • @adifoto6362
    @adifoto6362 2 года назад +1

    Thanks for the video. That was helpful

  • @lykp
    @lykp Месяц назад

    Thank you for the vid! I guess the bug with the timer_finished event not firing if it happens during downtime is not fixed?

  • @catisfact
    @catisfact 11 месяцев назад

    Thanks for the video really helpful. I'm just getting into node red. Would you have a tutorial for something similar in node red?

  • @rhmgolz
    @rhmgolz Год назад +1

    Hi,
    I just used your automation and added a slider timer helper to set the lenght of the timer.
    So I can set the timer with easy from the UI.

    • @louisveldhuizen1802
      @louisveldhuizen1802 4 месяца назад

      Can you still show the state of the timer counting down with that? I have got the slider working, but than not the state of the countdown.

  • @atomic3399
    @atomic3399 Год назад +1

    Thanks for good tutorial. Is there any option to add manual switch to this automation to turn on light without turing off by automation?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад +1

      Maybe this helps?
      How to Combine BUTTONS and AUTOMATIONS in Home Assistant - Tutorial
      ruclips.net/video/sNmonuw4EHo/видео.html

  • @Auld_Moaner
    @Auld_Moaner 2 года назад +1

    Awesome as always Ed 👍

  • @trunglethanh4958
    @trunglethanh4958 2 месяца назад +1

    Thanks you very much for sharing this tutorial. is it ok to use more than 1 light using the same timer or we need to create individual timer for each light eg: timer1 for light 1, timer 2 for light 2 and so on..?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 месяца назад +1

      You will need seperate timers if the automations run concurrently. I generally only use timers when the automation is critical. For instance for shutting of my garden watering system.

  • @bgronas
    @bgronas 2 года назад +1

    So helpful. How would you solve it with multiple sensors (ie. in large room, with a sensor in each end)

  • @RabidWombatz
    @RabidWombatz 11 месяцев назад +1

    Thx for the web page version.

    • @SmartHomeJunkie
      @SmartHomeJunkie  11 месяцев назад

      You're welcome! Now you can enjoy my content without any interruptions from pesky ads. Happy watching!

  • @HunterGeophysicsAustralia
    @HunterGeophysicsAustralia Год назад +1

    @3:45, the "Event" trigger type is no longer listed. What should I be using instead please? (HA 2023.10.3, HAOS v11)
    Edit: it's now called "Manual event", but it's the same.

  • @gildaslefur2435
    @gildaslefur2435 2 года назад +1

    Excellent video/tutorial! 👍
    It's this kind of detail that makes such a difference in your automations and reduces frustration when things don't work as you would hope.
    Thanks for sharing this very precious tip!
    If I was not already a subscriber, I would subscribe now. 😆

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      Thank you for your support!

    • @gildaslefur2435
      @gildaslefur2435 2 года назад +1

      Follow-up question: when the timer resumes after HA restart, does it resume from where it was or does it take into account the duration of the restart and adjust accordingly?
      Usually, it takes less than 2 minutes for HA to restart, I think. Just wondering if those 2 minutes are deducted from the timer when it resumes.

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      @@gildaslefur2435 It will end at the initially calculated end time.

    • @gildaslefur2435
      @gildaslefur2435 2 года назад +1

      @@SmartHomeJunkie very cool! Dank u wel !

  • @hrkmrk7226
    @hrkmrk7226 11 месяцев назад

    great instructions, thank you
    Please how will "yaml" look like when i need automation to run at a specific time. In your video instructions there is a Trigger "timer.finished" and I would need more Trigger "time"

  • @HunterGeophysicsAustralia
    @HunterGeophysicsAustralia Год назад +1

    Hello. I have five Philips Hue motion sensors and a UniFi AI360 camera in my garage. Your motion sensor trigger is only for one device. I could, of course, use multiple triggers (one per motion sensor), but I wonder if it is possible to create a group for these?
    I have tried to add a group in the Helpers menu. I tried a binary sensor group, but that just showed whether or not the sensors themselves were online, not if motion was detected or not. I also tried a sensor group (the entities for the motion sensors aren't available if I try to use this), a switch group (which gives me an on-off switch for turning the motion sensors on/off, again not providing me info about whether or not motion was detected).
    I can't seem to get these grouped together... do you know if there is a trick to getting them to work in a group please?
    Edit:
    I figured out what the problem was.
    The AI360 camera has two entities for what I assumed were motion. That assumption was incorrect.
    The entity called "AI 360 Detections: Motion" indicates whether or not the camera has motion detection enabled. It is *not* the actual output of the motion sensor.
    The entity called "AI 360 Motion" is the entity that outputs whether or not motion is detected.
    I was trying to put both in the same group. That's where I was going wrong.
    Putting just the "AI 360 Motion" entity and the Philips Hue motion sensor entities into the one binary sensor group works perfectly. However, I had to use a "State" trigger rather than "Device" at @4:12.

  • @_Bogdan_
    @_Bogdan_ 6 месяцев назад

    Hi and thanks for a nice video. I'm trying to do something similar but with a door sensor but I can't get this to work. I'm very new to Home Assistant so I don't know that much about this timers and so on. In my bathroom I have a motions sensor to turn on the lights and turn off like you did in the video but I want to use a door senor in the automation to turn off the lights when the door opens but only if the door has been closed for more then 2 minutes
    Or an separate automations will work to.

  • @bat3332
    @bat3332 2 года назад +1

    Thank you

  • @Jens_raum-smart
    @Jens_raum-smart 9 месяцев назад

    Thank you very much for your video. I implemented everything. Everything works. Unfortunately the lamp does not turn off after the timer has finished. Do you have an idea? I used: "timer.finished" as the event type and also assigned the entidy_id: correctly. Thank you very much for everything

  • @TheRiehlThing42
    @TheRiehlThing42 Год назад

    Great video. This helped me setup my hallway lights, and it works for my two motion sensors since the hallway is long and has stairs with 6 lights. I tried same setup for my Aqara F2P sensor in my room, and the cancel timer does not work. I've tried for whole room occupied, and when presence identify is above 0. Each time, the timer still keeps going anyways. Aqara and Home Assistant both say it detects someone in those areas too.

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад +1

      There must be an error in your sensor or automation somewhere.

    • @TheRiehlThing42
      @TheRiehlThing42 Год назад

      @@SmartHomeJunkie I have another Philips motion sensor, same that have worked in my hallways, so I think I'll switch to that. I'll hang onto the Aqara F2P, in case they improve it later. Might as well go with the sensors I know I've been able to get to work.

  • @P.terPan
    @P.terPan Год назад

    Great video, Thanks a lot!

  • @rubenj3128
    @rubenj3128 9 месяцев назад

    How would you do the architecture with timers. One automation for timers, one for turning on/off the devices based on timers, or all in one? It's getting messy pretty quickly. 😅

  • @BeardedTinker
    @BeardedTinker 2 года назад +2

    Great video Ed as always. Did you open issue for Timer on GitHub for not triggering finished when in restart?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +2

      Yes I did: github.com/home-assistant/core/issues/79145

    • @skunkjamaican
      @skunkjamaican 2 года назад +1

      @@SmartHomeJunkie Dude you are amazing

    • @StevePrior
      @StevePrior Месяц назад

      @@SmartHomeJunkie Looks like it was closed without actually being fixed?

  • @BallsworthBallsbury
    @BallsworthBallsbury Год назад +1

    Great video! Thanks as always :)
    Question... for a different use case, I'd like to expose a timer's "duration" to a Lovelace dashboard, so any user can customize the duration directly from lovelace. How would you go about doing this?

    • @daytrader66
      @daytrader66 11 месяцев назад

      Me too. Did you find how to do this?

  • @rodentbash
    @rodentbash 8 месяцев назад

    Thanks. I am just learning about triggers and trying to automate a gate. I'll try this method, as having a gate close after a nominated time is great until you find yourself not being fast enough and the gate closing on the car without being able to stop the automation. Ahhh the joys of being a noob to HA. Would this method be suitable by taping the button again to stop or restart the gate?

  • @JoepW
    @JoepW 2 года назад +1

    Hoi Ed,
    Ik start de timer ook als de lampen aan gaan (tijdens de eerste beweging), want als in jouw voorbeeld een reset na de eerste beweging plaatsvind loopt de timer niet en blijven de lampen aan.

  • @christophjensch8976
    @christophjensch8976 Год назад

    hey, thanks for the video. works fine with a nightlight scene. it is possible to add a stopper, like If light x is already on, and a motion is detected, light x stays the same? when light x is off again, automation runs and sets x to nightlight at motion. you know ? :)

  • @xbmcnut
    @xbmcnut Год назад

    Thanks for this. I've just changed over a couple of lights to use timers but had to mod my Xiaomi motion sensors for the 5s reset as typically they are hard coded for 90s. My question today is...Where is the best place to put a condition for turning on the light based on lux? I had a condition in the old automation but if I include this in your example, the timers get screwed up as the lux level in that room goes up after the light turns on. Was not an issue without timers but now prevents the timers from functioning correctly.

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад

      I usually add a condition in the action to turn on the light. This way I am sure the light always turns off, even if the lux value is too high.

    • @xbmcnut
      @xbmcnut Год назад +1

      @@SmartHomeJunkie Thanks for the prompt reply. I'll give that a try

  • @daytrader66
    @daytrader66 11 месяцев назад

    Helpful video, thank you. I'm very new to HA and built a central heating controller over Christmas from smart switches and Sonoff Zigbee temperature sensors when my dumb controller failed. I've combined these into the generic thermostat entity. I turn the thermostats on (HVAC mode heat) and off (HVAC mode off) using a Google calendar (thank you for your video on calendars by the way) but I also want to be able to turn on a thermostat by a timer for x minutes. The user enters the duration somehow on the dashboard and clicks the timer to start. That sets the HVAC mode to heat and then back to off at the end of the timer. I can't find how to do that mainly because I can't see how to enter data into the dash and then pass that via a variable to the timer. Can you help or direct me to an example. Thank you

  • @PatrykPabo
    @PatrykPabo Год назад +1

    can you do a tutorial on how to build a presence simulation for lights when on vacation ? there are a few but they are not very clear. thx !

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад +1

      Sure I can! I'll put it on the list. Actually it's already on there 😜

  • @unnainconnu9098
    @unnainconnu9098 2 месяца назад +1

    The Automations interface has changed a bit since then, but it's still useful

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 месяца назад

      Thanks. Yes, that is the pain of Home Assistant. The interface changes constantly. That's why creating tutorials is not very motivating unfortunately.

  • @lluisbordas7688
    @lluisbordas7688 9 месяцев назад

    I’ve tried to follow you video but it doesn’t work on my case as my timer does not start triggered by a motion detector. In my bathroom I have a mirror which is heated by a resistance and controlled by a spring-loaded rocker light switch which I connected a smart switch. The idea is every time I push the rocker switch a timer starts for 15 minutes to heat the mirror. Following your instructions, I created a helper but I need some guidance on how to create a trigger and an action specifically for this case. Could you perhaps give me some instructions. Thanks, and great job with the channel.

  • @KeithHuffstutler
    @KeithHuffstutler Год назад +1

    I'd love to see how you created the dashboard, especially the part with the timer status.

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад +1

      Thanks! I will work on a dashboard video soon.

    • @diedrichg
      @diedrichg Год назад +2

      It's just an "entities" card with the motion detector and timer selected as the entities

    • @KeithHuffstutler
      @KeithHuffstutler Год назад

      @@diedrichg Yes, thank you. I had figured that out a while back.

  • @therealsprint
    @therealsprint Год назад +1

    and how can I use this for several motion sensors? using the same time for different sensors should'nt be possible, right? I'm using motion sensors for my hallways. Putting the sensor in groups isn't ideal in my case.

  • @kyawthuya1158
    @kyawthuya1158 Год назад +1

    Thanks

  • @parv8131
    @parv8131 2 года назад

    Can you create a video describing the high availability of Home Assistant? or any other fix if the home server breaks

  • @doylemcteller1335
    @doylemcteller1335 2 года назад

    Great video! Do I need to create a new timer-helper for each automation or can I utilize it for different automations at the same time? 🤔 thanks!

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      You can use it for multiple automations as long as it's not used simultaneously.

  • @estebangarcia6092
    @estebangarcia6092 7 месяцев назад

    Hola Albert, despues de mucho renegar pude prender y apagar un aromatizador hvac que funciona por wifi, desde luego solo logre enviar un on y un off mediante un servicio, para lo cual cree un script para que prenda y apague, Como luego de prender home assitant no tiene forma de monitorear que esta pasando con el dispositivo se me ocurrio que podria crear un contador para que muestre la cantidad de minutos que esta encendido, luego cuando le envie el off que pare el contador, podrias darme una idea de como hacerlo? gracias

  • @richard312
    @richard312 2 года назад +1

    Is there a specific reason to choose random time? or is it also fine with a fixed time. why random time?
    thanks!

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      No, you can use a fixed time. It's just an extra example to also show how a random function works.

    • @richard312
      @richard312 2 года назад +1

      ​@@SmartHomeJunkie Great! thanks a lot for the great knowledge you share!

  • @villa2bellavista318
    @villa2bellavista318 2 года назад +1

    Hi, been following your videos on HA. Do u help in setting up HA from scratch?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад

      I do consultancy and training. You can send me an email for the conditions and rates.

    • @villa2bellavista318
      @villa2bellavista318 2 года назад

      Please let me know ur email id and I'll drop u an email

  • @manfredzimmer1199
    @manfredzimmer1199 2 года назад +1

    👍verry helpfull 👍

  • @tomytomytomy3188
    @tomytomytomy3188 2 года назад

    Excelent tutorial, especialy part with "random". I would like to set up value of the timer by another helper input.datetime.potlac_automatikuvetra, but HA shows error. I have got default_config: in config.yaml ... and in timers.yaml I used this timer: pocitadlonotifvetra:
    duration: "{{ states ('input_datetime.potlac_automatikuvetra') }}" ... it works with specified duration: '00:00:40' .... error says: Invalid config for [timer]: offset {{ states ('input_datetime.potlac_automatikuvetra') }} should be format 'HH:MM', 'HH:MM:SS' or 'HH:MM:SS.F' for dictionary value @ ... it seems that timer and input date time helper have different format. Could you say a few words to this pls. Thank you.

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      You might be able to fix this by using the timestamp_custom function in your template.

  • @mogultekin
    @mogultekin 11 месяцев назад

    Can the timer survive even the Home Assistant server panics. I guess you mean the formal restart of home assistant in your video. If you think I have a delay time of 30 minutes and the home assistant server/vm panics or powers off unexpectedly, can the delay timer still survive?

  • @dt77h
    @dt77h 2 года назад +1

    Very handy :)

  • @sinanfcb1
    @sinanfcb1 Год назад

    Hello there, thanks for your great videos, can we make a timer that triggers every 30 days and send notification on mobile , for example like a reminder to renew monthly subscription
    Thanks in advance❤

  • @CaptainBalou
    @CaptainBalou 2 года назад +1

    Hey Ed.
    This is the way I also use the timers. This works fine also after restarts as you showed in your awesome video.
    But I'm facing an issue though. I pause timers during motion and un-pause them when no motion is there anymore. Then I switch off the light on the timer finished event. But when Home Assistant reboots during a timer is paused and the motion ends before Home Assistant is fully up again the light will remain on forever - at least from what I observed. The un-pause automation doesn't run because I've "missed" the no motion change.
    Do you or everyone of the audience have a smart solution for this situation?
    All the best
    Marco

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      I'm not sure why you pause the timer. Why don't you just start a timer as soon as there is no motion and stop the timer when there's motion again?

    • @CaptainBalou
      @CaptainBalou 2 года назад

      @@SmartHomeJunkie I had some trouble starting the timer on no motion when it wasn't paused before. Maybe that's also solvable differently but that wouldn't change the issue of missing the no motion trigger during HA is offline. 😊 I could use an automation which gets triggered by HA startup and check all the missed no motion scenarios but I feel this is not very smart nor clever. I was hoping to get a better idea while talking here. 😉 Most of the time the solution is super easy but I can't see it even it is right in front of me. 😀

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      @@CaptainBalou ah, now I get it. I think it will be hard to detect that there is no motion is HA is offline. The sensor has no way to send that trigger again after HA restarted. Never thought of this scenario tbh.

  • @pjjotrrrrrrr
    @pjjotrrrrrrr 2 года назад +1

    Is it possible to reuse this timer in multiple automations in parallel?

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      I don't think so. You can not use the same timer concurrently I believe.

  • @hanshvem
    @hanshvem 3 месяца назад

    Thanks, but it's too much trouble
    I just need a simple delay, do you have a video for it. I can't find anything on youtube???

  • @keith8676
    @keith8676 Год назад

    i am using below event state change instead of "timer.finished", i wonder if that will survive during reboot?
    platform: state
    entity_id:
    - timer.motion_kitchen_timer
    to: idle
    from: active

    • @keith8676
      @keith8676 Год назад +1

      I like this approach as I was using two automations and now got it down to one

  • @greg_takacs
    @greg_takacs Год назад

    So one question: what happens if the motion never stops? Ie: I walk into the room and constantly keep moving? The timer will turn off the lights after a set random period even though I'd like it to stay on while I'm constantly moving in the room. This edge case happens much more often than HA resetting/rebooting while the timer is running, at least in my house ;-)

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад +1

      The light will stay on as long as there’s motion.

  • @xbox360benji
    @xbox360benji 8 месяцев назад

    Matey could I use this for setting up a timer for media as I am struggling, I have an automation that when my bathroom door sensor activates it turns the lights on and plays music on my bathroom speaker..but I want the music to turn off after 10 mins but cannot figure it out !

    • @SmartHomeJunkie
      @SmartHomeJunkie  8 месяцев назад

      Well, you could add a delay of 10 minutes in the Then Do section and after that turn off the music. But I would use a motion sensor and after 10 minutes of no motion turn off the music.

    • @xbox360benji
      @xbox360benji 8 месяцев назад

      Thank you .. I thought delay was for delaying the start of the event but I think I get you..I could also move one of my motion sensors into bathroom also I will toy with them options thanks matey appreciate it !

  • @JamieVids76
    @JamieVids76 2 года назад

    How would I make a trigger with 5 minutes to go using the duration function?

  • @larryjohnson897
    @larryjohnson897 2 года назад

    When you added the first trigger, for timer finished. Nothing ever looks or calls it when the timer goes to zero. I have it all working fine the timer gets canceled and the timer gets set and started. but there is nothing that actually calls it to turn off the light if it gets to 0:0:0. When event is fired... but nothing calls that event "timer.finished". Like an automation that states if timer gets to 0 then fire timer.finished. Or did I miss something. Again I can see the start and the timers counting down. but at 0 it does nothing.

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад

      I guess you missed something. When the timer is finished, the lights turn off as you can see in the video. You can download the code to see that it works.

    • @worm-haandled4615
      @worm-haandled4615 2 года назад +1

      @@SmartHomeJunkie I think the timer.finished was not the words I used. I used the entity_id.finished So that is my fault. I just set it and will test it here in a minute. Thanks for the feedback!! Keep up the great work! I don't like coffee so can I send a beer instead? HAHAHA

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад +1

      @@worm-haandled4615 Beer, pizza, everything works 😉

  • @cyfral
    @cyfral Год назад +1

    nice

  • @koolkiwikat
    @koolkiwikat Год назад

    Im wanting to setup a network access timer thru the unifi integration, Im stuck lol

  • @paulinelavoie5257
    @paulinelavoie5257 4 месяца назад

    Îm newbie and the « Conditions » tag is not avaliable when i want to add action… any idea?

    • @jasonhirsh6278
      @jasonhirsh6278 Месяц назад

      not sure wha you are referring to but when you choose an option under "Then Do". I found "Add condition" there

  • @uidentity
    @uidentity Год назад

    - isn’t “Restore ?” option in timer configuration is supposed to persist timer between restarts?
    - I am not following why is it so elaborate. I got same “light on/ off” by creating two simple automations : one for on, another for off, with timeout.
    - Why you need a timer if timeout is few seconds and likelihood of HA restarting at that time is negligible?
    - Or this is so elaborate because you wanted to have it as one monolithic automation?

    • @SmartHomeJunkie
      @SmartHomeJunkie  Год назад

      Hi! I like to keep everything regarding one device in one automation to keep my automations list clean.

  • @kevinrust5982
    @kevinrust5982 Год назад

    Wat is precies de logica van een variabele timer?

  • @prebenborg
    @prebenborg 2 года назад

    A build In blueprint would be nice to have. We will drown in helpers and automations

    • @SmartHomeJunkie
      @SmartHomeJunkie  2 года назад

      I never use BluePrints. I create my tutorials to teach how you can set things up yourself in Home Assistant. But, you can create a blueprint yourself based on an automation that you've created.

  • @SergeySergey691
    @SergeySergey691 3 месяца назад

    Home Assistant - система для задротов. Всё через скрипты, всё через абсолютно неинтуитивный синтаксис, плюс эти пайтоновские закидоны с точным количеством пробелов в отступах, это полный бред. Надеялся, что более менее будет настройка через User Interface, но даже с таким простыми вещами, как таймеры, всё опять через текстовые настройки.. Полная фигня.

  • @ianrobson9612
    @ianrobson9612 Год назад +1

    Great explanation. Thank you