No, you can remove everything.
I created a complete new flow, but forgot to add it to my post. Sorry for that.
Code: Select all
[
{
"id": "589aa1f8113f3797",
"type": "tab",
"label": "Shelly 2PM Gen 3",
"disabled": false,
"info": "",
"env": []
},
{
"id": "f49c37551869bd17",
"type": "change",
"z": "589aa1f8113f3797",
"name": "Set Domoticz IDX ",
"rules": [
{
"t": "set",
"p": "IDX12",
"pt": "flow",
"to": "shelly2pmg3-34cdb0774d4c",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 510,
"y": 160,
"wires": [
[]
]
},
{
"id": "9bae703c8d2a21f6",
"type": "inject",
"z": "589aa1f8113f3797",
"name": "Inject Domoticz IDX",
"props": [],
"repeat": "",
"crontab": "",
"once": true,
"onceDelay": 0.1,
"topic": "",
"x": 260,
"y": 160,
"wires": [
[
"f49c37551869bd17"
]
]
},
{
"id": "438945919eb0f319",
"type": "comment",
"z": "589aa1f8113f3797",
"name": "Configuration",
"info": "Insert the Domoticz Idx of the \nBlinds Percentage Switch in the field\nflow, starting with IDX.\n\nExample: The Domoticz Idx number = 12.\nFlow variable is IDX12.\n\nInsert the Shelly Client IDX\nas string after \"to the value\".\n\nExample: shelly2pmg3-34cdb0774d4c",
"x": 490,
"y": 100,
"wires": []
},
{
"id": "5f6a604495a17c3b",
"type": "mqtt in",
"z": "589aa1f8113f3797",
"name": "Domoticz Out",
"topic": "domoticz/out",
"qos": "2",
"datatype": "auto-detect",
"broker": "38b35487299a036d",
"nl": false,
"rap": true,
"rh": 0,
"inputs": 0,
"x": 210,
"y": 380,
"wires": [
[
"f066f8205567a5a7"
]
]
},
{
"id": "f066f8205567a5a7",
"type": "switch",
"z": "589aa1f8113f3797",
"name": "Filter Domoticz switchType",
"property": "payload.switchType",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "Blinds Percentage",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 460,
"y": 380,
"wires": [
[
"3940013d84a6f7bf",
"b9a4f7de1b6e13a5"
]
]
},
{
"id": "3940013d84a6f7bf",
"type": "function",
"z": "589aa1f8113f3797",
"name": "Blinds + Percentage ",
"func": "// Function Blinds and Percentage\n\nmsg.topic = flow.get (\"IDX\" + msg.payload.idx.toString()) + \"/command/cover:0\";\nmsg.idx = msg.payload.idx;\n\n//Closed\nif (msg.payload.nvalue === 0) { msg.payload = \"close\" };\n\n//Open\nif (msg.payload.nvalue === 1) { msg.payload = \"open\" };\n\n//Percentage\nif (msg.payload.nvalue === 2) { msg.payload = \"pos,\" + (100 - msg.payload.Level).toString() };\n\nreturn msg;",
"outputs": 1,
"timeout": 0,
"noerr": 0,
"initialize": "",
"finalize": "",
"libs": [],
"x": 740,
"y": 380,
"wires": [
[
"1ada67753bbe5e55",
"3fdc4c4fc5c91b17"
]
]
},
{
"id": "1ada67753bbe5e55",
"type": "debug",
"z": "589aa1f8113f3797",
"name": "debug 27",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 960,
"y": 340,
"wires": []
},
{
"id": "3fdc4c4fc5c91b17",
"type": "mqtt out",
"z": "589aa1f8113f3797",
"name": "Shelly Cover Command Out",
"topic": "",
"qos": "1",
"retain": "false",
"respTopic": "",
"contentType": "",
"userProps": "",
"correl": "",
"expiry": "",
"broker": "7aff5cd755ba2941",
"x": 1020,
"y": 380,
"wires": []
},
{
"id": "b9a4f7de1b6e13a5",
"type": "debug",
"z": "589aa1f8113f3797",
"name": "debug 33",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 700,
"y": 340,
"wires": []
},
{
"id": "8cf928ab95a35b2e",
"type": "comment",
"z": "589aa1f8113f3797",
"name": " Domotcz Switch ====> Shelly",
"info": "",
"x": 540,
"y": 260,
"wires": []
},
{
"id": "38b35487299a036d",
"type": "mqtt-broker",
"name": "Raspberry Pi 1",
"broker": "192.168.10.51",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
},
{
"id": "7aff5cd755ba2941",
"type": "mqtt-broker",
"name": "Jonas_MQTT_Server",
"broker": "mqtt.jonasnet.nl",
"port": "1883",
"clientid": "",
"autoConnect": true,
"usetls": false,
"protocolVersion": "4",
"keepalive": "60",
"cleansession": true,
"autoUnsubscribe": true,
"birthTopic": "",
"birthQos": "0",
"birthPayload": "",
"birthMsg": {},
"closeTopic": "",
"closeQos": "0",
"closePayload": "",
"closeMsg": {},
"willTopic": "",
"willQos": "0",
"willPayload": "",
"willMsg": {},
"userProps": "",
"sessionExpiry": ""
}
]
In this new flow their are only 2 things, you should configure.
1. The MQTT broker settings (IP address) in the MQTT Configuration node.
2. Relation between the IDX of the Domoticz Switch and the Shelly Client ID in the "Change" node, called "Set Domoticz IDX"
This is off-topic.
I do not know which version of Rasbian (Raspberry Pi OS) you run, but older versions, like Buster or Bullseye, use libssl 1.1, while Bookworm uses
libssl 3. As you can read, they are not compatible. This means that, as soon as a new release is out (e.g. 2025.2 or later), you have to upgrade to Bookworm.
From 14-05-2025, new beta's and so also newer stables will use libssl3 and so will run only on Bookworm. You are forced to upgrade!!.
If you do not want that (yet), upgrade now to the latest version, that uses libssl 1.1.