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