Hi, im pretty new to Node-red, and i need some help.
is it possible to do so when my hue lamp is on it is true and false when it is off in debug.
i have hue magic instaled.
can anyone help me here.
jesper.
Hi, im pretty new to Node-red, and i need some help.
is it possible to do so when my hue lamp is on it is true and false when it is off in debug.
i have hue magic instaled.
can anyone help me here.
jesper.
If you have installed the node and attached a debug node what do you see in the debug?
Is your question that you want to see true/false?
Or is that what you see and you want to know if that is correct?
hi.
the debug look like this.
{"on":false,"brightness":0,"updated":"2019-01-23T16:35:20+01:00"}
and I wonder if i can do so that the its 1 or 0, or true or false,
I hope you understand what I mean
Not exactly. What do you want to be 1 or 0 or true or false?
What node is that debug coming from? Possibly node-red-contrib-something, that you may have installed.
So with a change node, you should be able to define rules so that when msg.payload.on = false you can change msg.payload to msg.payload=false
and
msg.payload.on=true msg.payload=true
I am not sure what the question is, but if you want to turn it on you need to send some parameters as documented in the info window.
What I use in a function node (albeit with dynamic values):
return {payload:{"on":true,"brightness":100, "transitionTime":3, hex: "FFA500"}}