alias: Clint Away id: automation_clint_away mode: restart trigger: - platform: state entity_id: - device_tracker.pixel_7 - person.clint - group.person_clint from: 'home' - platform: homeassistant event: start condition: - condition: not conditions: - condition: state entity_id: person.clint state: 'home' - condition: state entity_id: device_tracker.pixel_7 state: 'home' action: - choose: - conditions: - condition: not conditions: - condition: state entity_id: person.clint state: 'home' sequence: - service: input_boolean.turn_off entity_id: input_boolean.clint_home - delay: '00:00:30'