Moved the setting for dim neutral moodlight to a dedicated script, which can be called from multiple locations.
This commit is contained in:
parent
1b9c5759bb
commit
0aec7b4629
@ -10,33 +10,7 @@
|
|||||||
entity_id: person.marcus_scholz
|
entity_id: person.marcus_scholz
|
||||||
state: home
|
state: home
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: script.moodlight_neutral
|
||||||
data:
|
|
||||||
brightness_pct: 20
|
|
||||||
kelvin: 4300
|
|
||||||
transition: 2
|
|
||||||
target:
|
|
||||||
device_id:
|
|
||||||
- 6dcbd87b459412144bddc42af3ae8b83
|
|
||||||
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
|
||||||
- c64e7c3dcda7f1c23e456959f2c60f39
|
|
||||||
- service: wled.effect
|
|
||||||
target:
|
|
||||||
device_id:
|
|
||||||
- c64e7c3dcda7f1c23e456959f2c60f39
|
|
||||||
- 6dcbd87b459412144bddc42af3ae8b83
|
|
||||||
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
|
||||||
data:
|
|
||||||
effect: Solid
|
|
||||||
palette: Default
|
|
||||||
- condition: state
|
|
||||||
state: 'on'
|
|
||||||
entity_id: media_player.lg_webos_smart_tv
|
|
||||||
- service: light.turn_off
|
|
||||||
target:
|
|
||||||
device_id: 6dcbd87b459412144bddc42af3ae8b83
|
|
||||||
data:
|
|
||||||
transition: 2
|
|
||||||
mode: single
|
mode: single
|
||||||
- id: '1623224198352'
|
- id: '1623224198352'
|
||||||
alias: TV Anti-Reflexion
|
alias: TV Anti-Reflexion
|
||||||
|
36
scripts.yaml
36
scripts.yaml
@ -1,4 +1,4 @@
|
|||||||
'1624956558905':
|
wled_random_effect:
|
||||||
alias: 'WLED: Zufälliger Effekt'
|
alias: 'WLED: Zufälliger Effekt'
|
||||||
sequence:
|
sequence:
|
||||||
- service: wled.effect
|
- service: wled.effect
|
||||||
@ -9,7 +9,7 @@
|
|||||||
}}'
|
}}'
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:firework
|
icon: mdi:firework
|
||||||
'1624970147971':
|
wled_random_palette:
|
||||||
alias: 'WLED: Zufällige Palette'
|
alias: 'WLED: Zufällige Palette'
|
||||||
sequence:
|
sequence:
|
||||||
- service: wled.effect
|
- service: wled.effect
|
||||||
@ -19,3 +19,35 @@
|
|||||||
palette: '{{ range(0,55) | random }}'
|
palette: '{{ range(0,55) | random }}'
|
||||||
mode: single
|
mode: single
|
||||||
icon: mdi:palette
|
icon: mdi:palette
|
||||||
|
moodlight_neutral:
|
||||||
|
alias: Moodlight neutral
|
||||||
|
sequence:
|
||||||
|
- service: light.turn_on
|
||||||
|
data:
|
||||||
|
brightness_pct: 20
|
||||||
|
kelvin: 4300
|
||||||
|
transition: 2
|
||||||
|
target:
|
||||||
|
device_id:
|
||||||
|
- 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
||||||
|
- c64e7c3dcda7f1c23e456959f2c60f39
|
||||||
|
- service: wled.effect
|
||||||
|
target:
|
||||||
|
device_id:
|
||||||
|
- c64e7c3dcda7f1c23e456959f2c60f39
|
||||||
|
- 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
- 4edd9b9df7d1f6f2fe7dcc2e5c0eb968
|
||||||
|
data:
|
||||||
|
effect: Solid
|
||||||
|
palette: Default
|
||||||
|
- condition: state
|
||||||
|
state: 'on'
|
||||||
|
entity_id: media_player.lg_webos_smart_tv
|
||||||
|
- service: light.turn_off
|
||||||
|
target:
|
||||||
|
device_id: 6dcbd87b459412144bddc42af3ae8b83
|
||||||
|
data:
|
||||||
|
transition: 2
|
||||||
|
mode: single
|
||||||
|
icon: mdi:lightbulb-on
|
||||||
|
Loading…
Reference in New Issue
Block a user