So i created a group for 2 motion sensors:
motion_bureau_group:
name: motion_bureau_group
entities:
- binary_sensor.0x00158d000483a08d_occupancy
- binary_sensor.0x00158d00047ba0c8_occupancy
This group should enable/disable my light in Bureau. If i use a single motion sensor the automation works but as soon as i use the group it does nothing. The group itself is showing the correct states so it should be working.
What am i doing wrong…?
This is the automation:
- id: '1606558419070'
alias: Bureau presence
description: ''
trigger:
- platform: state
to: 'on'
entity_id: group.motion_bureau_group
condition:
- condition: state
state: 'Off'
entity_id: switch.button_bureau
action:
- service: switch.toggle
data: {}
entity_id: switch.button_bureau
- wait_for_trigger:
- platform: state
entity_id: group.motion_bureau
to: 'Off'
for: 'Minutes: 4'
- service: switch.toggle
data: {}
entity_id: switch.button_bureau
mode: single