Created
June 15, 2021 11:53
-
-
Save RubenKelevra/1237610f7b0eed26dc8c5e997c5393a9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias: 'Bedroom auto turn on High Power Lights ' | |
description: '' | |
trigger: | |
- platform: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: color_temp_kelvin | |
for: '00:05:00' | |
above: '5000' | |
- platform: state | |
entity_id: input_boolean.bedroom_lights_master_switch | |
to: 'on' | |
from: 'off' | |
for: '00:02:00' | |
- platform: state | |
entity_id: input_select.light_mode_bedroom | |
to: auto | |
for: '00:05:00' | |
- platform: state | |
entity_id: input_select.light_mode_bedroom | |
from: auto | |
- platform: state | |
entity_id: input_boolean.bedroom_lights_master_switch | |
to: 'off' | |
from: 'on' | |
- platform: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: color_temp_kelvin | |
below: '5000' | |
- platform: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: brightness_pct | |
below: '91' | |
- platform: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: brightness_pct | |
above: '90' | |
- platform: state | |
entity_id: switch.adaptive_lighting_bedroom | |
to: 'on' | |
- platform: state | |
entity_id: input_select.light_mode_bedroom | |
for: '00:00:10' | |
to: forced-daylight | |
condition: [] | |
action: | |
- choose: | |
- conditions: | |
- condition: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: color_temp_kelvin | |
above: '5000' | |
- condition: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: brightness_pct | |
above: '90' | |
- condition: state | |
entity_id: input_boolean.bedroom_lights_master_switch | |
state: 'on' | |
- condition: or | |
conditions: | |
- condition: state | |
entity_id: input_select.light_mode_bedroom | |
state: auto | |
- condition: state | |
entity_id: input_select.light_mode_bedroom | |
state: forced-daylight | |
sequence: | |
- type: turn_on | |
device_id: 1f22ae042cfa0cc3f1311b0fd264bff0 | |
entity_id: switch.high_power_indirect_ceiling_lights | |
domain: switch | |
- conditions: | |
- condition: or | |
conditions: | |
- condition: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: brightness_pct | |
below: '91' | |
- condition: numeric_state | |
entity_id: switch.adaptive_lighting_bedroom | |
attribute: color_temp_kelvin | |
below: '5000' | |
- condition: state | |
entity_id: input_boolean.bedroom_lights_master_switch | |
state: 'off' | |
- condition: and | |
conditions: | |
- condition: not | |
conditions: | |
- condition: state | |
entity_id: input_select.light_mode_bedroom | |
state: auto | |
- condition: state | |
entity_id: input_select.light_mode_bedroom | |
state: forced-daylight | |
sequence: | |
- type: turn_off | |
device_id: 1f22ae042cfa0cc3f1311b0fd264bff0 | |
entity_id: switch.high_power_indirect_ceiling_lights | |
domain: switch | |
default: [] | |
mode: queued | |
max: 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment