Template number change min/max value in a lambda (same as https://github.com/esphome/feature-requests/issues/2942) #3480
Unanswered
patrick-foubert-56770
asked this question in
Component enhancements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Component name
Number template
Link to component documentation on our website
https://esphome.io/components/number/template/
Describe the enhancement
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
Use cases
Same request change min and max val according application needs
Anything else?
No response
Beta Was this translation helpful? Give feedback.
All reactions