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
it is not really an issue, but I dont know where to ask. I am rewriting my old zigbee integration to MQTT using websockets (instead of UDP).
To use a xiaomi buttons, I want to use a nodered function with mutiple outputs where each output is a different type of click (1/2/3...) connected to respective loxone virtual input (button) using control-OUT. however msg.payload can only have 1 number, so the virtual input stays triggered "ON" and does not do 1/0 to actually turn on the light...
Hello guys,
it is not really an issue, but I dont know where to ask. I am rewriting my old zigbee integration to MQTT using websockets (instead of UDP).
To use a xiaomi buttons, I want to use a nodered function with mutiple outputs where each output is a different type of click (1/2/3...) connected to respective loxone virtual input (button) using control-OUT. however msg.payload can only have 1 number, so the virtual input stays triggered "ON" and does not do 1/0 to actually turn on the light...
I have tried:
var act=msg.payload.action
var msg1 = {};
var msg2 = {};
if (act=="single")
{
msg1.payload = 1
msg2.payload = 0
return [ [msg1,msg2],null,null,null,null ]
}
else if (act=="double")
{
return [ null,msg,null,null,null ]
}
else
{
return [ null, null, null, null,null ];
}
but thats only sends msg1. I need 1/0 to activate (Tr) any lights control.
thx for advice.
Jakub
The text was updated successfully, but these errors were encountered: