WLED icon indicating copy to clipboard operation
WLED copied to clipboard

[Feature request] Allow for single time override transition time

Open frenck opened this issue 7 years ago • 6 comments

If would be useful if the transition time in the API could be overridden for just a single state change, ignoring the global transition property.

This would allow for turning light on instantly, e.g., alarm triggers, turn lights on NOW, full brightness and red (but there are more use-cases for this).

frenck avatar Oct 27 '19 08:10 frenck

Added support for the tt key! Works same as transition, but doesn't change the default, so the value is only used for the one change.

Aircoookie avatar Oct 29 '19 01:10 Aircoookie

🎉 Really nice! 🚀

Let's close up this issue, since well, it is done and you have enough open already 😉

frenck avatar Oct 29 '19 05:10 frenck

Not sure if this post will be seen, but &tt is changing the default.

tonyn0 avatar Mar 31 '20 20:03 tonyn0

@tonyn0 agreed, confusing api design on my part. &TT in HTTP API changes the default, while the tt property in the JSON API does not, but transition does instead. Will not change though due to compatibility.

Aircoookie avatar Apr 01 '20 10:04 Aircoookie

Ohhhh. Okay.

tonyn0 avatar Apr 01 '20 12:04 tonyn0

@Aircoookie sorry does it still work?

I just built 0_15 and created a preset with tt instead of transition but when preset is called default transition time is changed. Thank you

Suxsem avatar Apr 04 '24 19:04 Suxsem