Automations just quit working

I have 2 automations that just quit working. Not even sure why. They are triggered by me leaving home or arriving home. They unlock or lock my doors and turn on or off my security cameras.

I’m not even sure when or how they just one day quit working.

What I’m looking for is an idea of where to look to figure out why… Suggestions?

Thank you!

if your automations have id’s (if you made them with the UI editor they have id’s automatically) try looking at the automation trace.

1 Like
  • They are turned off.
  • They are broken, due to some breaking change with the latest release.
  • The triggers are no longer valid
  • The tracked devices do no longer work

Luckily, there are plenty of possibilities to track down the issue, including posting the automation’s well-formatted Yaml code here.

1 Like

Honestly I feel a bit stupid here because I have no idea where to look for ID’s… I really wish I knew this stuff better if so I would have fixed it by now it’s been a month and I cannot get it figured out. I thought maybe I had the wrong phone but when I go into automations and trigger it they work…but I have to do it manually.

And you have no idea how or why they work?

This is the unlock automation and it works when triggered manually.

- alias: 02 - Unlock Door Upon Arrival Home
  id: Unlock Door Upon Arrival Home

  trigger:
    - platform: state
      entity_id: device_tracker.sm_f926u1
      from: not_home
      to: home

  action:
    - service: lock.unlock
      entity_id: lock.yale_door_lock_zig
    - service: alarm_control_panel.alarm_disarm
      target:
        entity_id: alarm_control_panel.blink_johns_house

    - service: notify.mobile_app_sm_f926u1
      data:
        message: "TTS"
        title: "Welcome home John. I'm unlocking the door for you and disabling cameras"
        data:
          channel: alarm_stream_max
          ttl: 0
          priority: high

No I get how they work just don’t know why they aren’t triggering anymore…

If you’re making the automations from the UI, they have an id. If they are from yaml, you have to add the ID manually. Looking at your last post, you have an ID. So, all you need to do is view the trace.

1 Like

That’s where I would focus my attention, on whatever entities you are using to report your presence (device_tracker.sm_f926u1).

1 Like

OK Guys HUGE Thanks for all the input. I will have to check when I get home but I’ve been stumped for a month and would like to get these working again… having to go in and do this all manually everyday is wearing me out LOL

1 Like
1 Like

For future reference, Security 101 recommends to never use a single identifier to disable all layers of security.

Basically, you are using 1-factor authentication (possession of a “key” in the form of your phone) to simultaneously unlock the door and disable the alarm system. Ideally, it’s one or the other or use 2-factors (possession of the “key” and another identifier).

I realize you’re enjoying the convenience of the arrangement but it’s not optimal from the standpoint of security.

Anyway, it’s not working right now so you’re back to having to disable them separately. :wink:

1 Like

Yes it would appear that that is a great idea!! SO I changed that :slight_smile:
Thank you!!

1 Like

They still aren’t working but well… LOL

going to need a bit more of a description. Saying “they aren’t working” doesn’t really help us help you.

No I know that :slight_smile: It’s my phone. I had 4 phones in the system and it was creating chaos so I’m deleting them all and starting over with the only phone I have … a galaxy fold 3. It was causing my automations to not work as it was trying to track the wrong device :slight_smile:

I cannot figure out how to add my phone to HA… I’ve tried to find anything that would help me but I haven’t found a way to do this… suggestions? Thank you!

Problem is that is no longer showing up… I have logged out of the HA App and logged back in and it created the token but not showing up in HA when I try to configure things. I’ll let it run for the night and see if it catches up in the morning. I’m overly frustrated so walking away for the night is probably a good idea LOL
If it isn’t there in the morning do you have any idea why it wouldn’t be showing up? Not for lack of reading on the forum and trying to find answer on the internet I cannot find a thing that helps.

what’s creating the device_tracker? If it’s the mobile app, the device was probably renamed. If its another integration, then you need to identify what changed. There was breaking changes in relation to device trackers in 2022.2 for some integrations (or maybe it was 2021.12).

The actual phone was creating it. BUT [and it’s my fault] I deleted the wrong one. The ONLY phone that was showing up was an old phone. So what I did was find the ‘token’ that was associated with my phone and delete it. When I opened the HA app it made me redo all my info and then it showed back up in HA.

I then deleted the actual phone that wasn’t working and the ONLY phone left is my actual new phone. So when I leave the house today I will see if my automations now start working again now that they are pointed to the right phone :slight_smile:

So I will check back in after work today and see if I was able to solve my own problem, if so I’ll be thrilled because there is so much I do not understand about HA and documentation is for lack of better words seriously lacking LOL.

I do go out and try to find answers and only come here as a last resort because I hate bothering people. I try to save my asking to real issues I cannot figure out. :slight_smile:

Thank you for your input!! I ran home for lunch and am able to confirm that ALL my automations are up and running again. Once the correct phone was involved LOL.

1 Like