Hi All,
Have been pulling my hair out over this one. Basically I have 3 devices I want to track in a group called “phones”. Based on this group I have an automation to shut off all the lights if the group state becomes “not_home”. The group state changes just find but the automation does not trigger.
The automation used to work but only realized it stopped working when showing off HA to friends at a restaurant and the lights were still on.
The Automation
- alias: 'Lights Off When Away'
initial_state: True
trigger:
- platform: state
entity_id: group.phones
to: 'not_home'
condition:
- condition: state
entity_id: input_boolan.guest_mode
state: 'off'
action:
- service: light.turn_off
entity_id: group.all_lights
The Group
phones:
name: Phones
entities:
- device_tracker.first_phone
- device_tracker.second_phone
- device_tracker.third_phone
The Group changing state
Any help is appreciated!