ADD lambda set value/min/max for number component
ananyevgv opened this issue · 0 comments
ananyevgv commented
There is a need to change the min and max values, depending on the selected effect, so as not to exceed the allowed range of values.
number:
- platform: template
name: ${devicename} Fastled Variant
min_value: !lambda 'return id(min_variant);'
max_value: !lambda 'return id(max_variant);'
step: 1
optimistic: true
id: fastled_variant
initial_value: 128
mode: slider
entity_category: config