Problem with Remote UI automation

Hey everyone,

I am using the Remote UI (Nabu Casa) to access Home Assistant when I’m away from home and it works great and I’m very happy with it.

My problem, my automations won’t work. When I click on ‘execute’ in the frontend, my automations work as expected, the Remote UI connects and disconnects. I can’t make the automations actually work though, when I leave my house, life 360 correctly shows me as “Away” and when I’m home it shows me as “Home”, but Remote UI does not connect or disconnect.

- alias: Cloud Connect
  trigger:
    platform: state
    entity_id: device_tracker.life360_e
    from: "Home"
    to: "Away"
  action:
    service: cloud.remote_connect


- alias: Cloud Disconnect
  trigger:
    platform: state
    entity_id: device_tracker.life360_e
    from: "Away"
    to: "Home"
  action:
    service: cloud.remote_disconnect

Can someone please tell me what I’m doing wrong?? I would greatly appreciate it.

The state displayed in the frontend is often different than the actual state. Check for the actual state of those device trackers at developer tools > states. By default Home is home and Away is not_home.

1 Like

I knew it had to be something simple.

Just tested it out and it is working like I want.

Thank You!!!

- alias: Cloud Connect
  trigger:
    platform: state
    entity_id: device_tracker.life360_e
    to: "not_home"
  action:
    service: cloud.remote_connect


- alias: Cloud Disconnect
  trigger:
    platform: state
    entity_id: device_tracker.life360_e
    to: "home"
  action:
    service: cloud.remote_disconnect
1 Like