You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting a brightness of 1% as shown below the result is 100% brightness. wink.user().device("Lamp", function(device) { device.brightness(1, callback); });
One solution is to change line 38 of light.js to "greater than OR EQUAL to 1" so that the number 1 is properly converted to .01 on the next line. if ( value >= 1 ) {
When setting a brightness of 1% as shown below the result is 100% brightness.
wink.user().device("Lamp", function(device) { device.brightness(1, callback); });
One solution is to change line 38 of light.js to "greater than OR EQUAL to 1" so that the number 1 is properly converted to .01 on the next line.
if ( value >= 1 ) {
wink-js/lib/model/light.js
Line 38 in eae27c1
The text was updated successfully, but these errors were encountered: