Multi-room scenes leave upstairs bathroom alone if shower mode is on
This commit is contained in:
@ -991,13 +991,12 @@ script:
|
|||||||
entity_id: input_text.emma_bedroom_selected_scene
|
entity_id: input_text.emma_bedroom_selected_scene
|
||||||
data:
|
data:
|
||||||
value: Adaptive
|
value: Adaptive
|
||||||
- choose:
|
- if:
|
||||||
- conditions:
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.shower_mode
|
entity_id: input_boolean.shower_mode
|
||||||
state: 'on'
|
state: 'off'
|
||||||
sequence:
|
then:
|
||||||
- stop: "Shower mode is on"
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.upstairs_bathroom_motion
|
entity_id: binary_sensor.upstairs_bathroom_motion
|
||||||
@ -1089,7 +1088,16 @@ script:
|
|||||||
entity_id:
|
entity_id:
|
||||||
- light.hallway_overhead
|
- light.hallway_overhead
|
||||||
- light.master_bedroom_lights
|
- light.master_bedroom_lights
|
||||||
- light.upstairs_bathroom_lights
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: Bright
|
||||||
- if:
|
- if:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.kallen_sleeping
|
entity_id: input_boolean.kallen_sleeping
|
||||||
@ -1112,10 +1120,19 @@ script:
|
|||||||
target:
|
target:
|
||||||
entity_id:
|
entity_id:
|
||||||
- input_select.upstairs_hallway_scenes
|
- input_select.upstairs_hallway_scenes
|
||||||
- input_select.upstairs_bathroom_scenes
|
|
||||||
- input_select.master_bedroom_scenes
|
- input_select.master_bedroom_scenes
|
||||||
data:
|
data:
|
||||||
option: Bright
|
option: Bright
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
|
- service: input_select.select_option
|
||||||
|
target:
|
||||||
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
data:
|
||||||
|
option: Bright
|
||||||
- if:
|
- if:
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
@ -1282,6 +1299,11 @@ script:
|
|||||||
- input_select.upstairs_hallway_scenes
|
- input_select.upstairs_hallway_scenes
|
||||||
data:
|
data:
|
||||||
option: Nightlight
|
option: Nightlight
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.upstairs_bathroom_scenes
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
@ -1334,6 +1356,11 @@ script:
|
|||||||
- kallen_bedroom
|
- kallen_bedroom
|
||||||
- emma_bedroom
|
- emma_bedroom
|
||||||
- upstairs_hallway
|
- upstairs_hallway
|
||||||
|
- if:
|
||||||
|
- condition: state
|
||||||
|
entity_id: input_boolean.shower_mode
|
||||||
|
state: 'off'
|
||||||
|
then:
|
||||||
- service: input_select.select_option
|
- service: input_select.select_option
|
||||||
target:
|
target:
|
||||||
entity_id: input_select.upstairs_bathroom_scenes
|
entity_id: input_select.upstairs_bathroom_scenes
|
||||||
|
Reference in New Issue
Block a user