Adoption of various Thread/Matter devices
This commit is contained in:
55
scripts.yaml
55
scripts.yaml
@@ -114,3 +114,58 @@ wled_wohnzimmer_nachster_effekt:
|
||||
}}'
|
||||
mode: single
|
||||
icon: mdi:firework
|
||||
light_color_temp_helper:
|
||||
sequence:
|
||||
- action: light.turn_on
|
||||
target:
|
||||
entity_id: '{{ target_light }}'
|
||||
data:
|
||||
color_temp_kelvin: "{% if state_attr(target_light, 'color_temp_kelvin') is none
|
||||
%} \n {{ max_color_temp }} \n{% else %} \n {% if mode == \"cycle\" and
|
||||
state_attr(target_light, 'color_temp_kelvin')\n == max_color_temp %}\n {{min_color_temp}}\n
|
||||
\ {% else %} \n {% set new_value = state_attr(target_light, 'color_temp_kelvin')+iif(mode
|
||||
== \"down\", -1, +1) * color_temp_step %}\n {{ [([new_value, max_color_temp]
|
||||
| min), min_color_temp] | max}} \n {% endif %} \n{% endif %} "
|
||||
alias: light_color_temp_helper
|
||||
fields:
|
||||
target_light:
|
||||
name: Light
|
||||
description: Light entity
|
||||
selector:
|
||||
entity:
|
||||
filter:
|
||||
domain: light
|
||||
required: true
|
||||
min_color_temp:
|
||||
name: Minimal color temperature
|
||||
default: 2200
|
||||
selector:
|
||||
number:
|
||||
mode: box
|
||||
required: true
|
||||
max_color_temp:
|
||||
name: Maximal color temperature
|
||||
default: 4000
|
||||
selector:
|
||||
number:
|
||||
mode: box
|
||||
required: true
|
||||
color_temp_step:
|
||||
name: Change of color temperature per step
|
||||
default: 300
|
||||
selector:
|
||||
number:
|
||||
mode: box
|
||||
required: true
|
||||
mode:
|
||||
selector:
|
||||
select:
|
||||
options:
|
||||
- up
|
||||
- down
|
||||
- cycle
|
||||
required: true
|
||||
default: cycle
|
||||
name: Mode
|
||||
description: Select switch mode
|
||||
description: Switch color temperature of light in steps
|
||||
|
||||
Reference in New Issue
Block a user