I’m using the node control-device in node-red-contrib-ewelink-cube and would like to set the brightness of a lamp. Any suggestions on how to pass the msg.payload value to the control-device node?
Would also be interested in this. Multichannel devices also have multiple actions in the control-device-node but I would like to control only a single channel at once.
Another interesting questions for the custom registered device how can I alter their state with a previous message payload / variable. i.e. below to change “on” with msg.payload
Yes I would also like to know this. How to do that. I search for 2 days now and i can not find it.
in cube event listener i found a json string like this.
{“endpoint”:{“serial_number”:“a4c13872eb928cdd”},“payload”:{“brightness”:{“brightness”:64}}}
but when i send it to that node from noede-red, it does not work.
Does anyone know how to do thsi?