#Automation not working after recent update.

1 messages · Page 1 of 1 (latest)

green lily
#

I have a automation that notifies me and other people if a door is opened, has been left open etc.. I have all triggers in one automation and used id to select what to do for each trigger. Here is a part of it,

description: Notify target about 1st floor door sensor.
mode: single
triggers:
  - alias: When 1st Floor Door Sensor changes from Closed to Open
    trigger: state
    entity_id:
      - binary_sensor.1st_floor_door_sensor_contact
    from:
      - "off"
    to:
      - "on"
    id: door_opened
  - alias: When 1st Floor Door left opened for 10 mins
    trigger: state
    entity_id:
      - binary_sensor.1st_floor_door_sensor_contact
    from:
      - "off"
    to:
      - "on"
    for:
      hours: 0
      minutes: 0
      seconds: 5
    id: door_left_opened
conditions: []
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - door_opened
        sequence:
          - action: notify.mobile_app_1st_floor_wallpanel
            metadata: {}
            data:
              title: Door Open
              message: Someone at the 1st floor door
              data:
                car_ui: true
                channel: Door
                tag: door_open
                push:
                  sound: Doorbell.caf
#
      - conditions:
          - condition: trigger
            id:
              - door_left_opened
        sequence:
          - repeat:
              sequence:
                - action: notify.mobile_app_1st_floor_wallpanel
                  metadata: {}
                  data:
                    title: WARNING! Door Still Open
                    message: 1st floor door has been left open
                    data:
                      car_ui: true
                      channel: Alert
                      priority: high
                      importance: max
                      ttl: 0
                      tag: door_still_open
                      presentation_options:
                        - alert
                        - badge
                        - sound
                      push:
                        interruption_level: critical
                        sound: Alert_SpartanConnecting_Haptic.caf
                - if:
                    - condition: time
                      before: "23:30:00"
                      after: "06:00:00"
                  then:
                    - action: notify.mobile_app_1st_floor_wallpanel
                      metadata: {}
                      data:
                        message: TTS
                        data:
                          priority: high
                          importance: max
                          ttl: 0
                          media_stream: alarm_stream_max
                          tts_text: WARNING! 1st floor door has been left open
                - delay:
                    hours: 0
                    minutes: 0
                    seconds: 10
                    milliseconds: 0
              while:
                - condition: state
                  entity_id: binary_sensor.1st_floor_door_sensor_door
                  state: "on"
#

now I have more triggers and actions for things like sensor battery low, tampered etc. but I'm only showing a couple.

#

For testing I am only sending notification to 1 device ATM and I changed the left opened timer from 10 mins to 5 secs..

#

now when I open the door it gets triggered and I get notification.. but if I leave the door open for 5 seconds, nothing happens..

#

this automation was working before I updated a week or so ago.

#

has anything change in recent update that broke my automation?

gleaming flume
#

What do you see in the traces?

#

What is the mode of the automation?
Does it work if you disable the first trigger?

green lily
#

Automation mode ATM is set to Single.

#

Let me disable the first trigger one sec..

#

Hmm.. no disabling the first trigger doesn't let the second one fire..

rigid fiber
#

When you have the automation editor open there is "Traces" in the top right. It shows how the automation was executed the last 5 times (but can be set higher).

#

And by showing snippest without actually testing it as an automation that way is usually a good way to hide the problem 🙂

green lily
#

Oh! That helped solve the issue. Some device id was changed and was not found, fixed it. Though I haven't tested it after changing, but I'm guessing its fixed.

#

Will report back if I still face issue.

#

That traces feature is nice, never noticed that.

gleaming flume
#

You should use entity ids, not device ids.

green lily
#

I do use entity ids only.. by device id I meant the device's entity id..

green lily
#

OK I tested it, and its working. So I guess I can mark this as solved.