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
I try to chage color on a RGB light bulb (color node).
When reading from the node, it says "deviceType: 'color', value: array[3].
I try to inject
msg.payload={"value":[200,0,0]}
msg.topic = color
but get an error "Error updating device"
I can change the switch, the level and the temperature with no problem, but the color fails. Wat am I doing wrong?
The text was updated successfully, but these errors were encountered:
I looked into why the node-red-contrib-smartthings Color Light node smartthings-color.js does not work correctly. I see that @otaviojr implemented a rgbToHsl() function that is incorrect. I updated the code to another implementation. That function returns the correct Hue, Saturation, Lightness values.
Unfortunately my LIFX color light bulb still doesn't work as expected through the SmartThings API calls.
I've been using the smartthings CLI to test and also implement it in the Node-RED node.js code.
I changed the smartthings-color.js from sending multiple SmartThings API commands with distinct calls. Here's the CLI commands:
I try to chage color on a RGB light bulb (color node).
When reading from the node, it says "deviceType: 'color', value: array[3].
I try to inject
msg.payload={"value":[200,0,0]}
msg.topic = color
but get an error "Error updating device"
I can change the switch, the level and the temperature with no problem, but the color fails. Wat am I doing wrong?
The text was updated successfully, but these errors were encountered: