Home Assistant 101: Troubleshooting Automations

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Got an automation that's not working? I'll cover some of the available tools and methods I use to troubleshoot Home Assistant automations, whether you are using YAML or the Automation UI.
    Chapter Breaks:
    ==============
    00:00 Introduction
    00:57 Enabling advanced mode
    01:25 Example automation used
    01:57 Verifying devices and entities
    03:24 Parts of an automation
    03:59 Checking the automation actions
    05:31 Using the logs to troubleshoot actions
    07:49 Using automation traces
    10:48 Using the history to troubleshoot
    11:43 Getting additional help and wrap up
    Links:
    =====
    Online UUID Generator: www.uuidgenerator.net/
    Full automation used: github.com/Resinchem/LED-Stai...
    LED Stair Project (Home Assistant version): • Motion activated LED s...
    LED Stair Project (Standalone version): • Standalone Motion-Acti...
    You can help support the channel, or just say thanks for a useful tip, by buying me a cup of coffee at:
    www.buymeacoffee.com/resinche...
    #homeassistant #automation #troubleshooting
  • Věda a technologie

Komentáře • 33

  • @running_rich
    @running_rich Před rokem

    Thanks, didn't bother to see how traces could help until now

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      I didn't really see the purpose at first either (and they can be a bit confusing to interpret at the outset). But once I got the hang of them, they can be invaluable in troubleshooting. They are normally my first stop for anything that isn't working or behaving unexpectedly. I think they are probably one of the least understood (and therefore least used) tools for resolving automation and script problems (yeah.. probably should have mentioned that scripts have traces too).
      Thanks for watching!

  • @jmobsnxgen
    @jmobsnxgen Před rokem +1

    Man, just the 10 min of watching this fixed an issue that I have had since I implemented the staircase lights

    • @ResinChemTech
      @ResinChemTech  Před rokem

      Glad it helped! I purposely used the stair automations because it is by far the one I've had the most questions about, or the one that folks have had the most difficulties with, in terms of getting the automations working correctly.
      And of course there are additional tools and methods for troubleshooting, but these are the ones I use most commonly and will usually at least identify the problem... which of course is the first step in terms of a fix!
      Thanks for watching!

  • @terryharrigan6324
    @terryharrigan6324 Před 6 měsíci

    Thanks. You fill a void.

  • @MrSupersidewinder
    @MrSupersidewinder Před rokem +1

    Helpful stuff❣ Looks like you gotta rush up the stairs...😂🤣 Love the sequence but it's FAST.......

    • @ResinChemTech
      @ResinChemTech  Před rokem +2

      Well... you can actually adjust the speed of the lights (if you look closely at the automation, you'll see a speed setting is included). And if they reach the end before you do, the pattern simply repeats until the opposite sensor is triggered (or it times out after about 15 seconds). I have it at a "happy medium" for me and my wife. But for shooting this particular video, I was trying to 'keep up' with the lights.. I could have just as easily slowed the lights down a bit.
      Thanks for watching... and taking time to comment!

  • @ertertertttttt
    @ertertertttttt Před 7 měsíci

    Well done. Good explanation of traces.

    • @ResinChemTech
      @ResinChemTech  Před 7 měsíci

      Thanks. I think traces are one of the best automation troubleshooting tools... but very little is ever mentioned about them and I think a lot of people may be unaware that they even exist... or how to use them for troubleshooting.
      Thanks for taking a minute to post a kind comment! I appreciate it.

  • @uSlackr
    @uSlackr Před 5 měsíci

    Thanks for this. Helpful info. One thing I'd love to have with the run command is a way to specify a triggerID so I could test a particular action path

  • @Dorff_Meister
    @Dorff_Meister Před rokem

    Excellent Automation troubleshooting advice. Thanks!

    • @ResinChemTech
      @ResinChemTech  Před rokem

      You are welcome! And as always, I appreciate the kind words and feedback.

  • @Joseph-ko2kl
    @Joseph-ko2kl Před rokem +1

    "Have you ever created a automation that didn't work?" LOL. You mean there is another way!!!!! Great stuff, thanks.

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      That's funny.... because it's true! Thanks for making me laugh.

  • @TheCowboysdude
    @TheCowboysdude Před rokem

    You explain things so good that it's VERY easy to understand for a novice!! Thank you for your videos... they are always VERY informative and easy to follow!!!! But yes automations can be VERY frustrating LOL

    • @ResinChemTech
      @ResinChemTech  Před rokem

      Thanks for the kind words. They are very much appreciated! Yeah... but just know that it does get easier with time and experience. In addition, Home Assistant is constantly adding new features that make something that was previously very difficult (like an if-then-else in an automation) much easier. Of course it can sometimes be nearly as hard to keep up on all those changes and new features.
      Thanks for watching and taking time to leave a very nice comment!

  • @seth2389
    @seth2389 Před rokem +1

    Such a lucid explanation!! You are a great teacher🎉

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      Thanks Seth.... I greatly appreciate the kind words. As always, thanks for watching!

  • @JoseBerruezo
    @JoseBerruezo Před rokem

    Nice sequence to solve the automation problem.

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      Thanks! I appreciate it. I put this together to try to answer a lot of common questions I get about non-working automations. There are other techniques and methods that can be used, but I find that what I show here will at least identify the problem with the majority of automations.

  • @BELSERVICEMAN
    @BELSERVICEMAN Před rokem

    Nice work, glad to know I was doing a few things correctly on my own.

    • @ResinChemTech
      @ResinChemTech  Před rokem

      Thanks! This, of course, isn't the only way nor the only tools, but they are the most common methods I've used when troubleshooting my automations and when trying to help other troubleshoot their own automations and scripts.

  • @SBinVancouver
    @SBinVancouver Před rokem

    Well explained, thanks.

    • @ResinChemTech
      @ResinChemTech  Před rokem

      You are welcome! Hopefully you will find something useful for troubleshooting your own automations down the road!

  • @JohnMayfield-NS
    @JohnMayfield-NS Před rokem

    Good stuff, very helpful!
    I didn't see it, maybe I missed it, but you can also run/test each automation step in the UI.
    For example: Action: Turn light on. Right hand side, 3 dots, run. (Conditions say Test instead of run)

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      You didn't miss it... I just didn't cover it. I'm a YAML guy, since I learned how to create my automations back in the day when the UI wasn't available. So, I simply don't use the UI... and therefore don't know much about how it works or what options are there. But thanks for pointing out those options for those that do use the UI.
      And thanks for watching and taking time to share the tip!

    • @JohnMayfield-NS
      @JohnMayfield-NS Před rokem +1

      Makes sense! I'm the opposite, can't code beyond cut, paste, and swear 😁

    • @ResinChemTech
      @ResinChemTech  Před rokem +1

      Ha! Yeah... I guess I also omitted the very first step in troubleshooting: swear at it! Thanks for the laugh this morning!

    • @rodneysmith1750
      @rodneysmith1750 Před rokem +1

      @@JohnMayfield-NS, I love the acronym, CP&S, often repeated by all levels of programming ability!

  • @offgridwithpojectham
    @offgridwithpojectham Před rokem

    I am not sure where to leave a request for a topic. Don't want to clutter these feeds with topic specifics. Where would we send this type of request?

    • @ResinChemTech
      @ResinChemTech  Před rokem

      If you have an idea or suggestion for a future topic, it's fine to leave at least the general concept here in the comments. Depending upon my current project load, I'm not sure when I might get to it (or if I feel it is topic that I'm capable of covering), but I'm always open to ideas or suggestions from my viewers!
      If it is something that requires more detail than can be easily conveyed here in the comments, we can figure out another alternative for exchanging additional information.