I was trying to get a easy tracker for my home taking advantage of homekit integration, i managed to do it through input booleans exposed to apple home app, everything works flawlessly, but when i do a restart o reload automations, the tracker turn not_home and i have to trigger manually to recover the previous states, even though the inputs booleans do saves their states. Any suggestions? This is my automation so far
alias: 'Homekit tracker '
description: ''
trigger:
- platform: state
entity_id: input_boolean.alexis
- platform: state
entity_id: input_boolean.stefany
condition: []
action:
- service: device_tracker.see
data:
dev_id: '{{ trigger.to_state.object_id }}'
location_name: '{{ ''home'' if trigger.to_state.state == ''on'' else ''not_home'' }}'
mode: single