Just an updated version that appears more robust, using a properly configured msg.parts
property. fwiw. Appears to work quite well, although only tested for few hours so far.
[
{
"id": "5ccc101040d33606",
"type": "switch",
"z": "65d394820e3b16ad",
"name": "dcl sw",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lte",
"v": "120",
"vt": "str"
},
{
"t": "gt",
"v": "120",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 950,
"y": 520,
"wires": [
[
"e71733ae6b36b022"
],
[
"1540f1dcb633507d"
]
]
},
{
"id": "dd96eb5e16a11032",
"type": "switch",
"z": "65d394820e3b16ad",
"name": "ccl sw",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "lte",
"v": "24",
"vt": "str"
},
{
"t": "gt",
"v": "24",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 950,
"y": 620,
"wires": [
[
"ee28b22f78c32bec"
],
[
"1540f1dcb633507d"
]
]
},
{
"id": "b629748a2aacb871",
"type": "switch",
"z": "65d394820e3b16ad",
"name": "PV sw",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "gte",
"v": "50",
"vt": "str"
},
{
"t": "lt",
"v": "50",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 2,
"x": 950,
"y": 420,
"wires": [
[
"5949ed3af4e28553"
],
[
"1540f1dcb633507d"
]
]
},
{
"id": "6e59cae67d166a0c",
"type": "delay",
"z": "65d394820e3b16ad",
"name": "",
"pauseType": "delay",
"timeout": "5",
"timeoutUnits": "seconds",
"rate": "1",
"nbRateUnits": "1",
"rateUnits": "second",
"randomFirst": "1",
"randomLast": "5",
"randomUnits": "seconds",
"drop": false,
"allowrate": false,
"outputs": 1,
"x": 1500,
"y": 560,
"wires": [
[
"968b874e72fe70cd"
]
]
},
{
"id": "1540f1dcb633507d",
"type": "ui_button",
"z": "65d394820e3b16ad",
"name": "Hide 220",
"group": "7fadc6724af7ef60",
"order": 31,
"width": 0,
"height": 0,
"passthru": true,
"label": "Hide 220",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "{\"group\":{\"hide\":[\"Controlpanel_a\"]}}",
"payloadType": "json",
"topic": "topic",
"topicType": "msg",
"x": 1500,
"y": 620,
"wires": [
[
"115623b6e58c5f88"
]
]
},
{
"id": "968b874e72fe70cd",
"type": "ui_button",
"z": "65d394820e3b16ad",
"name": "Show 220",
"group": "7fadc6724af7ef60",
"order": 31,
"width": 0,
"height": 0,
"passthru": true,
"label": "Show 220",
"tooltip": "",
"color": "",
"bgcolor": "",
"className": "",
"icon": "",
"payload": "{\"group\":{\"show\":[\"Controlpanel_a\"]}}",
"payloadType": "json",
"topic": "topic",
"topicType": "msg",
"x": 1500,
"y": 500,
"wires": [
[
"115623b6e58c5f88",
"a41dd28e2df3ef12"
]
]
},
{
"id": "115623b6e58c5f88",
"type": "ui_ui_control",
"z": "65d394820e3b16ad",
"name": "Show/Hide Inverter",
"events": "change",
"x": 1810,
"y": 560,
"wires": [
[]
]
},
{
"id": "a41dd28e2df3ef12",
"type": "debug",
"z": "65d394820e3b16ad",
"name": "Show dummy msg",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "true",
"targetType": "full",
"statusVal": "payload",
"statusType": "auto",
"x": 1790,
"y": 500,
"wires": []
},
{
"id": "a989c8599be34dbd",
"type": "change",
"z": "65d394820e3b16ad",
"name": "",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "1 string OK",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1520,
"y": 460,
"wires": [
[
"6e59cae67d166a0c"
]
]
},
{
"id": "ed4e4d482c546946",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "DCL dummy inject 0",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "str",
"x": 750,
"y": 500,
"wires": [
[
"5ccc101040d33606"
]
]
},
{
"id": "2555cee8f4b506db",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "DCL dummy inject 120",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "120",
"payloadType": "str",
"x": 760,
"y": 540,
"wires": [
[
"5ccc101040d33606"
]
]
},
{
"id": "fcd085ec5fb79872",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "CCL dummy inject 0",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "str",
"x": 750,
"y": 600,
"wires": [
[
"dd96eb5e16a11032"
]
]
},
{
"id": "fa645896b89d317c",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "CCL dummy inject 120",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "120",
"payloadType": "str",
"x": 760,
"y": 640,
"wires": [
[
"dd96eb5e16a11032"
]
]
},
{
"id": "61b9cd72411ce90a",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "PV dummy inject 0",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "0",
"payloadType": "str",
"x": 750,
"y": 440,
"wires": [
[
"b629748a2aacb871"
]
]
},
{
"id": "fceb82466c6719df",
"type": "inject",
"z": "65d394820e3b16ad",
"name": "PV dummy inject 350",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "350",
"payloadType": "str",
"x": 760,
"y": 400,
"wires": [
[
"b629748a2aacb871"
]
]
},
{
"id": "a843891f1108c031",
"type": "join",
"z": "65d394820e3b16ad",
"name": "",
"mode": "custom",
"build": "object",
"property": "payload",
"propertyType": "msg",
"key": "topic",
"joiner": "\\n",
"joinerType": "str",
"accumulate": false,
"timeout": "",
"count": "3",
"reduceRight": false,
"reduceExp": "",
"reduceInit": "",
"reduceInitType": "",
"reduceFixup": "",
"x": 1350,
"y": 460,
"wires": [
[
"a989c8599be34dbd"
]
]
},
{
"id": "e71733ae6b36b022",
"type": "change",
"z": "65d394820e3b16ad",
"name": "parts.index = 1",
"rules": [
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "1",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1140,
"y": 380,
"wires": [
[
"cb8e5b0e9f742e5e"
]
]
},
{
"id": "5949ed3af4e28553",
"type": "change",
"z": "65d394820e3b16ad",
"name": "parts.index = 0",
"rules": [
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "0",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1140,
"y": 340,
"wires": [
[
"cb8e5b0e9f742e5e"
]
]
},
{
"id": "ee28b22f78c32bec",
"type": "change",
"z": "65d394820e3b16ad",
"name": "parts.index = 2",
"rules": [
{
"t": "set",
"p": "parts.index",
"pt": "msg",
"to": "2",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1140,
"y": 420,
"wires": [
[
"cb8e5b0e9f742e5e"
]
]
},
{
"id": "cb8e5b0e9f742e5e",
"type": "change",
"z": "65d394820e3b16ad",
"name": "group id and count",
"rules": [
{
"t": "set",
"p": "parts.id",
"pt": "msg",
"to": "mygroup",
"tot": "str"
},
{
"t": "set",
"p": "parts.count",
"pt": "msg",
"to": "3",
"tot": "num"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 1330,
"y": 380,
"wires": [
[
"a843891f1108c031"
]
]
},
{
"id": "7fadc6724af7ef60",
"type": "ui_group",
"name": "Dev1",
"tab": "4f2061e9.b781c8",
"order": 8,
"disp": true,
"width": "6",
"collapse": false,
"className": ""
},
{
"id": "4f2061e9.b781c8",
"type": "ui_tab",
"name": "dev2",
"icon": "dashboard",
"order": 4,
"disabled": false,
"hidden": true
}
]