Moved "Shower Mode" to Node-RED as well

This commit is contained in:
2022-06-13 15:12:20 -04:00
parent 13ef082e68
commit f696a4c60b
2 changed files with 53 additions and 53 deletions

File diff suppressed because one or more lines are too long

View File

@ -234,58 +234,58 @@ automation:
# Adaptive
# {% endif %}
- id: f52eca30-c2e4-43dc-b220-7e9be96b465a
alias: Shower Mode
description: Temporarily override upstairs bathroom motion lights for the purpose of taking a shower
trigger:
- platform: state
entity_id: input_boolean.shower_mode
from: 'off'
to: 'on'
id: shower-on
- platform: state
entity_id: input_boolean.shower_mode
from: 'on'
to: 'off'
id: shower-off
action:
- if:
- condition: trigger
id: shower-on
then:
- service: input_select.select_option
target:
entity_id: input_select.upstairs_bathroom_scenes
data:
option: Bright
- if:
- condition: trigger
id: shower-off
then:
- if:
- condition: state
entity_id: input_boolean.early_night_mode
state: 'on'
then:
- service: input_select.select_option
target:
entity_id: input_select.upstairs_bathroom_scenes
data:
option: Adaptive
else:
- service: light.turn_off
target:
entity_id: light.upstairs_bathroom_lights
- delay:
seconds: 5
- service: switch.turn_on
target:
entity_id: switch.adaptive_lighting_upstairs_bathroom
- service: input_text.set_value
target:
entity_id: input_text.upstairs_bathroom_selected_scene
data:
value: Adaptive
# - id: f52eca30-c2e4-43dc-b220-7e9be96b465a
# alias: Shower Mode
# description: Temporarily override upstairs bathroom motion lights for the purpose of taking a shower
# trigger:
# - platform: state
# entity_id: input_boolean.shower_mode
# from: 'off'
# to: 'on'
# id: shower-on
# - platform: state
# entity_id: input_boolean.shower_mode
# from: 'on'
# to: 'off'
# id: shower-off
# action:
# - if:
# - condition: trigger
# id: shower-on
# then:
# - service: input_select.select_option
# target:
# entity_id: input_select.upstairs_bathroom_scenes
# data:
# option: Bright
# - if:
# - condition: trigger
# id: shower-off
# then:
# - if:
# - condition: state
# entity_id: input_boolean.early_night_mode
# state: 'on'
# then:
# - service: input_select.select_option
# target:
# entity_id: input_select.upstairs_bathroom_scenes
# data:
# option: Adaptive
# else:
# - service: light.turn_off
# target:
# entity_id: light.upstairs_bathroom_lights
# - delay:
# seconds: 5
# - service: switch.turn_on
# target:
# entity_id: switch.adaptive_lighting_upstairs_bathroom
# - service: input_text.set_value
# target:
# entity_id: input_text.upstairs_bathroom_selected_scene
# data:
# value: Adaptive
- id: 477e6e8a-4e33-4268-8c2d-f39902c0d64f
alias: Living Room Night Lighting