#410 Set office light to work when either stacey or I is out of bed.

This commit is contained in:
ccostan 2018-08-23 18:16:15 -04:00
parent 86c3b65854
commit 8c0592a63e
1 changed files with 8 additions and 3 deletions

View File

@ -35,15 +35,20 @@ automation:
from: 'off'
condition:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'off'
- condition: state
entity_id: group.family
state: 'home'
- condition: state
entity_id: light.office_lamp
state: 'off'
- condition: or
conditions:
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'off'
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_carlo_is_in_bed
state: 'off'
- condition: or
conditions:
- condition: time