How to set HSB Color via an openhab2-out node in Node-Red?
I tried an object as i get with the -in node, i tried an array, i tried an string (“125, 125, 100”)- all i get is a http 400 error.
If i only set a numeric value the LED’s are dimmed as expected. OFF/ON works to.
Side question - which of the various node-red-contrib plugins for openhab2.5 should be used?
TIA
Ludwig
MDAR
(Stuart Hanlon, UK importer of Velbus hardware)
2
Hi
I think you’re on the right lines.
All I do is to create a UI panel with a Colorpicker and a dummy, assigned to the same Colour Item.
Then I simply copy whatever the Dummy widget shows into the NodeRed payload.
As for node version, I tend to use this one.
I believe it has a few more options, like an generic Events node, which I use to capture Trigger Channels in a Function node.
Hi,
This example is very useful, but I can not write the good Javascript code to send the RGB msg.payload
You say without any quotes, assigned as a String…
I always receive “Error 400: Bad Request”
On openHAB2 Log Viewer the message is
==> /var/log/openhab2/openhab.log <==
2021-02-23 08:48:38.164 [WARN ] [rest.core.internal.item.ItemResource] - Received HTTP POST request at ‘items/Bureau_Gest_Lum_Color’ with an invalid status value ‘170,85,130’.