Configurable transition state publish interval for lights #3399
Unanswered
nohat
asked this question in
Component enhancements
Replies: 1 comment
-
|
🏷️ I've automatically added the |
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
When using ESPHome lights with transitions (e.g.
transition_lengthor flashes), the remote state that Home Assistant (or other frontends) sees usually jumps directly to the final state at the start of the transition.This is efficient, but it means frontends don't know about the intermediate states along the fade. As a result:
I would like a configurable option on lights that causes state updates to be published periodically during transitions, so frontends can animate along the actual fade path.
Use cases
Alternatives I've tried:
light.turn_oncommands with small step transitions to approximate a smooth fade. This:Anything else?
Proposed solution
Add a per-light configuration option, e.g.:
Semantics:
transition_state_publish_interval: 0s(default)transition_state_publish_interval > 0current_valuestoremote_values.Scope:
call.set_publish(false).Considerations / trade-offs
0skeeps the existing behavior and avoids extra traffic.10ms) can significantly increase publish frequency, which may:How this relates to other requests
This is a foundational feature for smoother light control and pairs well with:
The transition state publish interval makes it possible for frontends to observe the actual transition path, which in turn enables smoother dimming UX and future dynamic control features.
Beta Was this translation helpful? Give feedback.
All reactions