mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-09 18:40:14 -04:00
30 lines
1.0 KiB
YAML
30 lines
1.0 KiB
YAML
alias: Random Master Bed Strip
|
|
id: automation_random_master_bed_strip
|
|
trigger:
|
|
- platform: template
|
|
value_template: "{{ is_state('light.master_bedroom_hue', 'on') and is_state('input_select.master_bedroom_mode', 'Nightlight') }}"
|
|
id: 'master_bedroom_nightlight'
|
|
- platform: template
|
|
value_template: "{{ is_state('light.master_bedroom_hue', 'on') and is_state('input_select.master_bedroom_mode', 'Auto') and is_state('input_select.automatic_light_profile', 'Nightlight') }}"
|
|
id: 'automatic_light_profile_nightlight'
|
|
action:
|
|
- choose:
|
|
- conditions:
|
|
- condition: or
|
|
conditions:
|
|
- condition: trigger
|
|
id: master_bedroom_nightlight
|
|
- condition: trigger
|
|
id: automatic_light_profile_nightlight
|
|
sequence:
|
|
- service: light.turn_on
|
|
target:
|
|
entity_id: light.master_bedroom_accent
|
|
data:
|
|
effect: candle
|
|
brightness_pct: 50
|
|
default:
|
|
- service: light.turn_off
|
|
target:
|
|
entity_id: light.master_bedroom_accent
|