Hi all,
doing a fairly simple display control for a PTZ camera, anyway i was getting multiple instances of switch toggles, so i copied the offending items to another flow just to see what was happening.
i added another switch to the same switch node that i was already using and it worked fine , but if i clicked the original one i got double switching e.g true true.
So i tried to delete the link between the old switch ui and the switch node and it highlighted orange, pressed delete and it was still there!
re deployed and it still switched, tried to delete the link and this time it went.
so it looks like there are 2 links connecting to the switch node. tried it a few time just to see if it was me but it did the same thing!
Node Red 2.2.0
NPM 6.14.16
Node 14.19.0
Linux Mint
offending item is below
[
{
"id": "722804950b4b4251",
"type": "switch",
"z": "77f64d9d09139432",
"name": "Mode",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "true"
},
{
"t": "false"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 730,
"y": 220,
"wires": [
[],
[]
]
},
{
"id": "e6f5d2c9e6d468c2",
"type": "debug",
"z": "77f64d9d09139432",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 710,
"y": 180,
"wires": []
},
{
"id": "aad3e59254f825af",
"type": "ui_switch",
"z": "77f64d9d09139432",
"name": "",
"label": "Thermo Enable",
"tooltip": "",
"group": "e95113d77e51b515",
"order": 1,
"width": 0,
"height": 0,
"passthru": true,
"decouple": "false",
"topic": "topic",
"topicType": "msg",
"style": "",
"onvalue": "true",
"onvalueType": "bool",
"onicon": "fa-power-off fa-2x",
"oncolor": "green",
"offvalue": "false",
"offvalueType": "bool",
"officon": "fa-power-off fa-2x",
"offcolor": "grey",
"animate": true,
"className": "",
"x": 420,
"y": 220,
"wires": [
[
"722804950b4b4251",
"722804950b4b4251",
"e6f5d2c9e6d468c2"
]
]
},
{
"id": "e95113d77e51b515",
"type": "ui_group",
"name": "Thermal Mode",
"tab": "2bf55b350517e8d4",
"order": 2,
"disp": true,
"width": 6,
"collapse": false,
"className": ""
},
{
"id": "2bf55b350517e8d4",
"type": "ui_tab",
"name": "PTZ",
"icon": "camera",
"order": 1,
"disabled": false,
"hidden": false
}
]