when my phone is no longer on wifi I want the person state to be away
.
alias: Robert Away
description: ""
triggers:
- trigger: state
entity_id:
- sensor.pixel_4_wifi_connection
to: unavailable
conditions: []
actions:
- action: homeassistant.update_entity
target:
entity_id: person.robert
data: Away
mode: single
https://www.home-assistant.io/integrations/homeassistant/#action-homeassistantupdate_entity
That action doesn’t do that and cannot be used that way. The action forces an update of the entity’s data from it’s integration. It only accepts entity IDs and no other configuration variables or user input.
Your best bet is to call the device_tracker.see
action on the underlying device tracker.
alias: Robert Away
description: ""
triggers:
- trigger: state
entity_id:
- sensor.pixel_4_wifi_connection
to: unavailable
conditions: []
actions:
- action: device_tracker.see
data:
dev_id: pixel_4
location_name: not_home
mode: single