mirror of
https://github.com/CeeWeasel/fresh-home.git
synced 2026-08-10 02:50:12 -04:00
initial push
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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
|
||||
Reference in New Issue
Block a user