Moved "Shower Mode" to Node-RED as well
This commit is contained in:
File diff suppressed because one or more lines are too long
@ -234,58 +234,58 @@ automation:
|
|||||||
# Adaptive
|
# Adaptive
|
||||||
# {% endif %}
|
# {% endif %}
|
||||||
|
|
||||||
- id: f52eca30-c2e4-43dc-b220-7e9be96b465a
|
# - id: f52eca30-c2e4-43dc-b220-7e9be96b465a
|
||||||
alias: Shower Mode
|
# alias: Shower Mode
|
||||||
description: Temporarily override upstairs bathroom motion lights for the purpose of taking a shower
|
# description: Temporarily override upstairs bathroom motion lights for the purpose of taking a shower
|
||||||
trigger:
|
# trigger:
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: input_boolean.shower_mode
|
# entity_id: input_boolean.shower_mode
|
||||||
from: 'off'
|
# from: 'off'
|
||||||
to: 'on'
|
# to: 'on'
|
||||||
id: shower-on
|
# id: shower-on
|
||||||
- platform: state
|
# - platform: state
|
||||||
entity_id: input_boolean.shower_mode
|
# entity_id: input_boolean.shower_mode
|
||||||
from: 'on'
|
# from: 'on'
|
||||||
to: 'off'
|
# to: 'off'
|
||||||
id: shower-off
|
# id: shower-off
|
||||||
action:
|
# action:
|
||||||
- if:
|
# - if:
|
||||||
- condition: trigger
|
# - condition: trigger
|
||||||
id: shower-on
|
# id: shower-on
|
||||||
then:
|
# 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
|
||||||
data:
|
# data:
|
||||||
option: Bright
|
# option: Bright
|
||||||
- if:
|
# - if:
|
||||||
- condition: trigger
|
# - condition: trigger
|
||||||
id: shower-off
|
# id: shower-off
|
||||||
then:
|
# then:
|
||||||
- if:
|
# - if:
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: input_boolean.early_night_mode
|
# entity_id: input_boolean.early_night_mode
|
||||||
state: 'on'
|
# state: 'on'
|
||||||
then:
|
# 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
|
||||||
data:
|
# data:
|
||||||
option: Adaptive
|
# option: Adaptive
|
||||||
else:
|
# else:
|
||||||
- service: light.turn_off
|
# - service: light.turn_off
|
||||||
target:
|
# target:
|
||||||
entity_id: light.upstairs_bathroom_lights
|
# entity_id: light.upstairs_bathroom_lights
|
||||||
- delay:
|
# - delay:
|
||||||
seconds: 5
|
# seconds: 5
|
||||||
- service: switch.turn_on
|
# - service: switch.turn_on
|
||||||
target:
|
# target:
|
||||||
entity_id: switch.adaptive_lighting_upstairs_bathroom
|
# entity_id: switch.adaptive_lighting_upstairs_bathroom
|
||||||
- service: input_text.set_value
|
# - service: input_text.set_value
|
||||||
target:
|
# target:
|
||||||
entity_id: input_text.upstairs_bathroom_selected_scene
|
# entity_id: input_text.upstairs_bathroom_selected_scene
|
||||||
data:
|
# data:
|
||||||
value: Adaptive
|
# value: Adaptive
|
||||||
|
|
||||||
- id: 477e6e8a-4e33-4268-8c2d-f39902c0d64f
|
- id: 477e6e8a-4e33-4268-8c2d-f39902c0d64f
|
||||||
alias: Living Room Night Lighting
|
alias: Living Room Night Lighting
|
||||||
|
Reference in New Issue
Block a user