adumont / tplink-cloud-api

A node.js npm module to remotely control TP-Link smartplugs (HS100, HS110) and smartbulbs (LB100, LB110, LB120, LB130) using their cloud web service (no need to be on the same wifi/lan)
https://itnerd.space
GNU General Public License v3.0
130 stars 44 forks source link

LB300 is not taking Hue and Saturation values #32

Open tejaswibharadwajp opened 5 years ago

tejaswibharadwajp commented 5 years ago

I have tried to set the hue and saturation balues for LB130 using this method userInfo.getLB130("Hall Light").setState(1, 80, 360 , 60); but the changes are reflecting.

userInfo is the object for login.

vincepg13 commented 4 years ago

I am having this issue too, if I run the following snippet in my app:

var r = await tplink.getLB130("Bedroom Light").setState(1, 10, 50, 100); console.log(r);

I would expect the light to turn on, at 10% brightness, with the colour being red. However it is always white. The response being logged always has the correct hue and saturation values, but no matter what these values are the colour does not change

TrueGeek commented 3 years ago

This is working on my KL130. I just wanted to point out that the light uses HSB, not standard RGB color format. This messed me up at first. So, @vincepg13, the values you are entering are actually not red, but black:

image