Handle lights differently when guest are at home
This commit is contained in:
parent
5a19fdb941
commit
981cdcdbd4
@ -7,4 +7,11 @@ vacuum_rooms:
|
||||
- input_boolean.vacuum_kitchen
|
||||
- input_boolean.vacuum_hallway
|
||||
- input_boolean.vacuum_bedroom
|
||||
- input_boolean.vacuum_bathroom
|
||||
- input_boolean.vacuum_bathroom
|
||||
|
||||
guests:
|
||||
entities:
|
||||
- person.mariusz_ablewicz
|
||||
- person.andrzej_legowski
|
||||
- person.matka
|
||||
- person.piotr_madej
|
@ -5,10 +5,20 @@
|
||||
trigger:
|
||||
- platform: time
|
||||
at: input_datetime.sleep_mode
|
||||
- platform: state
|
||||
entity_id:
|
||||
- group.guests
|
||||
to: not_home
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id: {{ light.entityId }}
|
||||
state: 'on'
|
||||
- condition: state
|
||||
entity_id: group.guests
|
||||
state: not_home
|
||||
- condition: time
|
||||
before: input_datetime.day_mode
|
||||
after: input_datetime.sleep_mode
|
||||
action:
|
||||
- service: light.turn_on
|
||||
data:
|
||||
|
Loading…
Reference in New Issue
Block a user