Remove commented code that will no longer be used ever
This commit is contained in:
@@ -288,113 +288,6 @@ switch:
|
|||||||
animate_color: True
|
animate_color: True
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
# The commented-out automations have been moved to Node-RED because they are easier to implement there.
|
|
||||||
# Keeping here for reference purposes.
|
|
||||||
|
|
||||||
# - id: 6fe64356-00a2-4cad-bb85-f6dd05f29de7
|
|
||||||
# alias: Upstairs Bathroom Motion Lights
|
|
||||||
# description: Turns up lights in the upstairs bathroom at night when someone walks into the room.
|
|
||||||
# mode: queued
|
|
||||||
# trigger:
|
|
||||||
# - platform: state
|
|
||||||
# entity_id: binary_sensor.upstairs_bathroom_motion
|
|
||||||
# to: 'on'
|
|
||||||
# id: motion-on
|
|
||||||
# - platform: state
|
|
||||||
# entity_id: binary_sensor.upstairs_bathroom_motion
|
|
||||||
# to: 'off'
|
|
||||||
# id: motion-off
|
|
||||||
# for:
|
|
||||||
# hours: 0
|
|
||||||
# minutes: 1
|
|
||||||
# seconds: 30
|
|
||||||
# condition:
|
|
||||||
# - condition: state
|
|
||||||
# entity_id: input_boolean.early_night_mode
|
|
||||||
# state: 'on'
|
|
||||||
# - condition: state
|
|
||||||
# entity_id: input_boolean.shower_mode
|
|
||||||
# state: 'off'
|
|
||||||
# action:
|
|
||||||
# - if:
|
|
||||||
# - condition: trigger
|
|
||||||
# id: motion-on
|
|
||||||
# then:
|
|
||||||
# - service: input_select.select_option
|
|
||||||
# target:
|
|
||||||
# entity_id: input_select.upstairs_bathroom_scenes
|
|
||||||
# data:
|
|
||||||
# option: Adaptive
|
|
||||||
# - if:
|
|
||||||
# - condition: trigger
|
|
||||||
# id: motion-off
|
|
||||||
# then:
|
|
||||||
# - service: input_select.select_option
|
|
||||||
# target:
|
|
||||||
# entity_id: input_select.upstairs_bathroom_scenes
|
|
||||||
# data:
|
|
||||||
# option: >-
|
|
||||||
# {% if is_state('input_boolean.early_night_mode','on') and is_state('input_boolean.night_mode','off') %}
|
|
||||||
# Nightlight
|
|
||||||
# {% elif is_state('input_boolean.night_mode','on') %}
|
|
||||||
# Single Nightlight
|
|
||||||
# {% else %}
|
|
||||||
# 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: 477e6e8a-4e33-4268-8c2d-f39902c0d64f
|
- id: 477e6e8a-4e33-4268-8c2d-f39902c0d64f
|
||||||
alias: Living Room Night Lighting
|
alias: Living Room Night Lighting
|
||||||
description: Provide lighting in case anyone needs to go downstairs in the middle of the night.
|
description: Provide lighting in case anyone needs to go downstairs in the middle of the night.
|
||||||
|
|||||||
Reference in New Issue
Block a user