feat(effect): add attributes, getters, and setters for effect-speed and -width
This commit is contained in:
parent
47f31301dd
commit
c54ff63f89
3 changed files with 47 additions and 1 deletions
|
|
@ -140,6 +140,35 @@ number:
|
|||
min_value: 0
|
||||
max_value: 255
|
||||
step: 1
|
||||
- platform: template
|
||||
name: "6 Rainbow Speed"
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: 12
|
||||
on_value:
|
||||
- lambda: |-
|
||||
id(wordclock_1)->set_effect_speed(x);
|
||||
set_action:
|
||||
- lambda: |-
|
||||
id(wordclock_1)->set_effect_speed(x);
|
||||
min_value: 1
|
||||
max_value: 4096
|
||||
step: 1
|
||||
- platform: template
|
||||
name: "7 Rainbow Width"
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: 50
|
||||
on_value:
|
||||
- lambda: |-
|
||||
id(wordclock_1)->set_effect_width(x);
|
||||
set_action:
|
||||
- lambda: |-
|
||||
id(wordclock_1)->set_effect_width(x);
|
||||
min_value: 1
|
||||
max_value: 65535
|
||||
step: 1
|
||||
|
||||
# select:
|
||||
# - platform: template
|
||||
# name: "Rainbow ON/OFF"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue