Automation Not Firing - for any of three sensors (intermittent)

I’m stumped. Having sourced an alarm system specifically for the HA integration, and desire to arm based on geofence/zone/absence of SSID… I cannot get the thing to arm reliably.

Alarm integration aside for the time being.

I can’t even get a message sent to the companion app to test the automation.

So to be clear. I have three separate triggers. The only condition is that my wife’s phone is also away, which it is and you can see from the screen shot. Yet not firing.

alias: Away S24 Ultra
description: ""
triggers:
  - trigger: state
    entity_id:
      - device_tracker.s24_ultra
    from: home
    to: not_home
    for:
      hours: 0
      minutes: 1
      seconds: 0
    enabled: true
  - device_id: qwerty
    domain: device_tracker
    entity_id: zxcvb
    type: leaves
    trigger: device
    zone: zone.home
  - trigger: state
    entity_id:
      - sensor.s24_ultra_wifi_connection
    from: mywifi
    for:
      hours: 0
      minutes: 1
      seconds: 0
conditions:
  - condition: and
    conditions:
      - condition: state
        entity_id: device_tracker.s22_ultra
        state: not_home
        for:
          hours: 0
          minutes: 1
          seconds: 0
actions:
  - action: alarm_control_panel.alarm_arm_away
    metadata: {}
    data:
      code: "1234"
    target:
      entity_id:
        - alarm_control_panel.bosch_solution_3000_area1
        - alarm_control_panel.bosch_solution_3000_upstairs
  - action: notify.mobile_app_s24_ultra
    metadata: {}
    data:
      message: Away mode (alarm set)
  - action: notify.mobile_app_s22_ultra
    metadata: {}
    data:
      message: Away mode (alarm set)
mode: single

Have you tried using a Numeric state trigger based on the zone.home entity?

triggers:
  - alias: Everyone has left home
    trigger: numeric_state
    entity_id: zone.home
    below: 1
....
1 Like

I’ll try this thanks. Yet I don’t understand why half the time none of the three triggers I have work. Even when the state of the devices/entities meet the conditions and the server has updated as such.