Rework evening mode on first floor
This commit is contained in:
@ -1114,20 +1114,47 @@ script:
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'off'
|
||||
sequence:
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: "{{ give_me_darkness == 1 }}"
|
||||
then:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: timer.downstairs_bathroom_lights_timer
|
||||
state: idle
|
||||
then:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
area_id:
|
||||
- living_room
|
||||
- downstairs_bathroom
|
||||
entity_id:
|
||||
- light.downstairs_bathroom_lights
|
||||
else:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.living_room_lights
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: timer.downstairs_bathroom_lights_timer
|
||||
state: idle
|
||||
then:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id:
|
||||
- light.downstairs_bathroom_lights
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.guest_mode
|
||||
state: 'on'
|
||||
sequence:
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: timer.downstairs_bathroom_lights_timer
|
||||
state: idle
|
||||
then:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
area_id:
|
||||
- downstairs_bathroom
|
||||
entity_id:
|
||||
- light.downstairs_bathroom_lights
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: input_boolean.give_me_darkness
|
||||
@ -1137,7 +1164,14 @@ script:
|
||||
target:
|
||||
entity_id:
|
||||
- light.dining_room_lamp
|
||||
- light.downstairs_bathroom_lights
|
||||
- if:
|
||||
- condition: state
|
||||
entity_id: timer.downstairs_bathroom_lights_timer
|
||||
state: idle
|
||||
then:
|
||||
- service: light.turn_off
|
||||
target:
|
||||
entity_id: light.downstairs_bathroom_lights
|
||||
- service: input_boolean.turn_off
|
||||
target:
|
||||
entity_id: input_boolean.tina_desk_lights
|
||||
|
@ -53,7 +53,8 @@ give_me_darkness:
|
||||
- service: script.volume_reset
|
||||
data: {}
|
||||
- service: script.evening_on_first_floor
|
||||
data: {}
|
||||
data:
|
||||
give_me_darkness: 1
|
||||
- service: script.evening_on_second_floor
|
||||
data: {}
|
||||
- service: mqtt.publish
|
||||
|
Reference in New Issue
Block a user