forked from patrickjahns/esp_rgbww_firmware
-
Notifications
You must be signed in to change notification settings - Fork 6
Ramp Speed
verybadsoldier edited this page Jul 18, 2019
·
1 revision
Usually ramps are issued using a fixed ramp time which specifies a timespan in which the ramp will be executed:
"t":1000
When using parameter s
instead of t
it is also possible to specify a fixed ramp speed when issuing a fade command:
"s":536.7
When using a ramp speed then the time the fade will need to execute will differ depending on the starting value. The speed is defined as percentage points (or hue degrees) per minute.
Example:
{
"q":"single",
"hsv":{
"v":"100"
},
"s":"7",
"cmd":"fade"
}
This will issue a fade from the current brightness to a value of 100
with a speed of 7
percentage points per minute. So for example if the current brightness is 65
then the fade will take 5
minutes to reach the target value of 100
.