Dynamic pulse speed for visual feedback (flow meters, pump speed, charging rate, etc) #3393
Unanswered
serge402
asked this question in
Component enhancements
Replies: 2 comments
-
|
🏷️ I've automatically added the |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
The LightCall can't have parameters for specific effects like that. |
Beta Was this translation helpful? Give feedback.
0 replies
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
light
Link to component documentation on our website
https://esphome.io/components/light/
Describe the enhancement
Currently, the built-in pulse light effect has fixed transition_length and update_interval parameters that are set at compile time and cannot be changed dynamically during runtime:
I propose adding two new methods to the LightCall class (similar to existing methods like set_flash_length, set_brightness, set_transition_length):
set_pulse_transition_length(uint32_t ms) - Dynamically set the fade in/out time
set_pulse_update_interval(uint32_t ms) - Dynamically set the time for a complete pulse cycle
This would allow runtime control of pulse effects:
Or in YAML automations:
Use cases
Currently, the only workaround is to either:
Dynamic pulse control would make these use cases simple and elegant while keeping code lightweight.
Anything else?
Related API documentation: https://api-docs.esphome.io/classesphome_1_1light_1_1_light_call
The
flasheffect already has dynamic control viaset_flash_length(), so this feature request follows the same pattern for thepulseeffect.Beta Was this translation helpful? Give feedback.
All reactions