Unable to Trigger Home Mode

Hi Folks

I am new to HA. I can see in my log that my tracker.gm1900 has arrived home but it does not trigger the automation to run the scene scene.i_m_back. Here is my script. Any tips would be greatly appreciated.

  • id: ‘15949494949’
    alias: Arm Security Away Mode Enable
    description: ‘’
    trigger:
    • entity_id: person.gina
      platform: state
      to: not_home
      condition:
    • condition: or
      conditions:
      • condition: state
        entity_id: device_tracker.gm1900
        state: not_home
        action:
    • scene: scene.goodbye
    • data:
      message: Security Armed
      service: notify.notify
      mode: single
  • id: ‘15939393939’
    alias: Disarmed Mode I am Back
    description: Disarmed Mode
    trigger:
    • entity_id: person.gina
      platform: state
      to: home
      condition:
    • condition: or
      conditions:
      • condition: state
        entity_id: device_tracker.gm1900
        state: home
        action:
    • scene: scene.i_m_back
    • data:
      message: Security Disarmed
      service: notify.mobile_app_gm1900
      mode: single

Hi @rnormore,

I do something similar, but I added my persons in a group.

people_group:
  name: 'People Group'
  entities:
    - person.me
    - person.wife

Then the group state change triggers the automation.

- id: '123456789'
  alias: 'Automation'
  trigger:
  - entity_id: group.people_group
    platform: state
    to: not_home
  action:
  - data: {}
    service: python_script.sun_vs_temperature

I hope it helps.

1 Like

Thanks for the quick reply… I will give it a shot.

So… If I wanted to do the reverse and trigger I am home. do I still use a group?

Yes, you can.

If someone in the group is home then the group state is home.
If everybody is not_home then the group state is not_home.