sanlike0911 / node-red-contrib-tplink-tapo-connect-api

Apache License 2.0
48 stars 20 forks source link

Colour Change works on L530 Bulb #6

Closed SvenLudwig202 closed 2 years ago

SvenLudwig202 commented 2 years ago

Hi, basically just wanted to let you know that the colour change feature works perfectly fine on a L530 bulb.

sanlike0911 commented 2 years ago

Hi, Thank you to verify of "colour change works on the L530 Bulb".

Thank you very much.

sanlike0911

nonchip commented 2 years ago

what I don't quite understand: with the L510 (= the originally supported one) the "colour" is supposed to be a white temperature, while the L530 supports either a real colour or a white temperature depending on mode. I can't find anything about setting the white temperature (or the mode for the L530 for that matter) though. the only one that only supports brightness and no colour/temp change i could find is the L520.

EDIT: I think this is what's going on there, which is a bit of a shame because there seems to be no way for that library to take any white temperatures except for "white","daylightwhite","warmwhite" given everything has to pass through either RGB-to-HSL (which by definition doesn't emit a color_temp), or one of the predefined words.

it might be helpful here to simply get a node that passes its json input onto securePassthrough unfiltered (I first thought that's what command does but looking at the code it doesn't seem so).