Home / Away Automation keeps firing despite me not being being at home

Hi all

I have 2 automations to turn on/off lights based on my location and presence sensor statuses.

When I am away from home, the Home and Away automatione keeps randomly kicking in and I don’t know why.

I know sometimes my presence sensors might give a false positive but the automation shouldn’t fire as my location doesn’t match.

Attached screenshots to show config and logs

Companion App location is enabled and working.

Please post the automation in YAML format.

Do you have the companion app on more than one device, one of which stays at home when that happens?

2 Likes

</> alias: Away Mode
description: “”
triggers:

  • trigger: zone
    entity_id: person.hong
    zone: zone.home
    event: leave
    conditions:
  • condition: and
    conditions:
    • type: is_not_occupied
      condition: device
      device_id: d170fc1cb11b2cec0d6819357bba569d
      entity_id: b4905c8707c77c3ee7dd3df5853e8d5d
      domain: binary_sensor
    • type: is_not_occupied
      condition: device
      device_id: 67f73381f65abbe46b3ccd3d58bf207a
      entity_id: 6cf121d93799b386fba35a1d839195e4
      domain: binary_sensor
    • type: is_not_occupied
      condition: device
      device_id: 9c5a8615786510cce81cecaf0a098335
      entity_id: f527503a0a5cdd9d51d137c621cc540b
      domain: binary_sensor
      actions:
  • action: scene.turn_on
    metadata: {}
    data: {}
    target:
    entity_id: scene.all_lights_off
  • device_id: eac6e65c979162cb510dd8b3538d34de
    domain: climate
    entity_id: 9a2f9468e5a1e64de2299ac82675b64a
    type: set_preset_mode
    preset_mode: eco
  • type: turn_off
    device_id: 14fdfdb2fa270c787f96d693a23a7e03
    entity_id: e433fbcfa754485111fcffcbfbefe6d7
    domain: remote
  • action: notify.notify
    metadata: {}
    data:
    message: Away Mode Activated
    title: "Away Mode Activated "
    mode: single
    </>
    </>

alias: Home Mode
description: “”
triggers:

  • trigger: zone
    entity_id: person.hong
    zone: zone.home
    event: enter
    conditions:
    actions:
  • action: scene.turn_on
    metadata: {}
    data: {}
    target:
    entity_id: scene.home_mode_lights
  • action: notify.notify
    metadata: {}
    data:
    message: "Home Mode Activated "
    title: "Home Mode Activated "
    mode: single
    </>

I did recently install the companion app on a tablet that stays at home, but this was happening before I did that and none of the sensors are enabled on it.