Hi,
i´m new to node-red and new to this forum.
until now i´m using domoticz with zigbee, mqtt and wifi.
since a few days i try to set up my new sonoff NSPanel. the two relais buttons are no problem and working fine with domoticz.
my issues started with the touch panel / touch buttons.
in the screenshot i got a, more or less, working flow.
i got the information from my domoticz, the idx of my device.
which leads into the following function:
{
"type": "object",
"properties": {
"payload.nvalue": { "type": "string" }
},
"if": {
"properties": {
"payload.nvalue": {
"enum": ["1"]
}
}
},
"then": {
"relation":[{"id":"1","online":true,"params":{"switch":"on"}}]
}
}
in general it seems that the command arrives at the nspanel, and is switching. but it seems that both functions, on and off, were triggert both and so it happen that the button will turn on and after a second off again.
it happen if i toggle the button, on or off, both trigger both functions. so turn on -> nspanel button will go on and off after a second.
hope someone can help me to fix it, would be really great.