Skip to content

Smooth dimming strategy #121

Answered by delfick
pimw1 asked this question in Q&A
Feb 17, 2023 · 3 comments · 2 replies
Discussion options

You must be logged in to vote

Hello,

The LIFX binary protocol doesn't have a specific Stop command as such. But sending a SetWaveformOptional message will replace whatever hsbk transition is currently happening. So you could send a SetWaveformOptional with brightness to 0 and a period of 6 seconds and then to stop it you send a SetWaveformOptional with period 0 and changing none of the hsbk fields.

I assume you'd do this programmatically, but the cli equivalent is

lifx lan:attr d073d5001337 SetWaveformOptional -- '{"brightness": 0, "period": 6}'
lifx lan:attr d073d5001337 SetWaveformOptional -- '{"period": 0}'

You might be tempted to instead use SetLightPower with a duration, however the protocol doesn't expose a mes…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by pimw1
Comment options

You must be logged in to vote
1 reply
@delfick
Comment options

Comment options

You must be logged in to vote
1 reply
@delfick
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants