Page 2 of 8

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Monday 07 April 2025 19:17
by FireWizard
Hello @Daro1003,

I do not know the theme, you are using,

So I see 4 widgets for 4 blinds and percentage.
Is that correct? Can you confirm?

I also see 5 other widgets, but what type of Switch did you choose for that one?
Can you tell me?

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Monday 07 April 2025 21:53
by Daro1003
I use an old and not updated theme "machinon"
The switches are for shelly 2.5 which controls the blinds. These switches were added automatically.

These are switches for 4 blinds.

I would like to have such switches for shelly PM2 GEN 3 with NodeRed.

The question is how to do it? How to create a switch for a blind with the % indicator in domoticz?
I use % control

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Monday 07 April 2025 22:21
by FireWizard
Hi @Daro1003,

You wrote,
I use an old and not updated theme "machinon"
I thought so.
The switches are for shelly 2.5 which controls the blinds. These switches were added automatically.
If the switches where added automatically, then you did not use Node RED.

But you have 4 blinds and they can use a "Switch", configured as Blinds Percentage.

See below:

Screenshot_Blinds_Percentage.png
Screenshot_Blinds_Percentage.png (43.82 KiB) Viewed 1554 times

But I saw also 5 widgets (with "STOP" at the far right.
What is that. Other stuff, that has nothing to do with the blinds?

If you think that "Blinds Percentage" is the correct widget, you may want to create one and play with it.

Awaiting your answers.

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Monday 07 April 2025 23:18
by Daro1003
In the image from the previous post 4 switches for 4 blinds.
In the second image a screenshot from dashticz.
For me UP, DOWN and % control are enough, if there is still a possibility then STOP

I managed to create a blinds switch in Domoticz

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Tuesday 08 April 2025 8:31
by Daro1003
FireWizard wrote: Monday 07 April 2025 22:21
Awaiting your answers.

Regards
What else do you need to know??

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Tuesday 08 April 2025 17:43
by FireWizard
Hi @Daro1003,
What else do you need to know??
No, it is enough.
I will create something for you, so that you can handle 4 blinds with percentage, but that will be tomorrow.
if there is still a possibility then STOP
It exists, but there is an issue.
See: viewtopic.php?f=4&t=43381

You might want to try it and check how it looks in the Machinon theme and also in Dashticz.
If it is is looking good and you want it, let me know, then I take that widget.

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Tuesday 08 April 2025 18:58
by Daro1003
1. Control %% needed, necessary to control scenes in Domoticz because at different times of the day Domoticz sets the blinds to the indicated position.

2. STOP not needed if there are problems with it. Control in Dashticz up and down, however, stop is used to stop the blind in a given position by clicking UP or Down the blind will change direction, it will not stop. Currently, the stop in dashticz does not work and has never worked, so if it still does not work, I will not feel the problem, but if this functionality is possible, it is worth implementing it.

3. First image is Domoticz and Machinon theme - OK
Second image is dashticz - OK

So you can do it together with STOP there will be additional functionality.

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Wednesday 09 April 2025 21:39
by FireWizard
Hi @Daro1003,

As promised, I created a simple flow for your "Blind Switches"

See below:

Screenshot_Blinds_flow.png
Screenshot_Blinds_flow.png (22.38 KiB) Viewed 1341 times
I collected the data from the Domoticz Switches with MQTT (topic domoticz/out). You have to configure the MQTT node yourself.
This data goes to a "Switch" node, which has been prepared for 4 "Blind Switches". Edit this node and insert your own Domoticz indexes for the various "Blind Switches"

I prepared 2 "Function"nodes,(1 for Blinds + Percentage" and a 2nd for the extra STOP Button)

If this gives the correct response, connect the output of that Function node to the correct Shelly node and test.

Please find the flow below and let me know, if this part works.

Code: Select all

[
    {
        "id": "1306fe79693dd68a",
        "type": "switch",
        "z": "f55ebfe97fab5883",
        "name": "",
        "property": "payload.idx",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "12",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "13",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "9999",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "8888",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 4,
        "x": 450,
        "y": 840,
        "wires": [
            [
                "af0110cf84e9c9f1"
            ],
            [
                "582473d3f25f26c8"
            ],
            [],
            []
        ]
    },
    {
        "id": "64a27f4f5f6554b1",
        "type": "debug",
        "z": "f55ebfe97fab5883",
        "name": "debug 23",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 960,
        "y": 780,
        "wires": []
    },
    {
        "id": "d857b69d3ec0037c",
        "type": "debug",
        "z": "f55ebfe97fab5883",
        "name": "debug 24",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 960,
        "y": 820,
        "wires": []
    },
    {
        "id": "930ef41b9920792f",
        "type": "mqtt in",
        "z": "f55ebfe97fab5883",
        "name": "",
        "topic": "domoticz/out",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "38b35487299a036d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 270,
        "y": 840,
        "wires": [
            [
                "1306fe79693dd68a"
            ]
        ]
    },
    {
        "id": "af0110cf84e9c9f1",
        "type": "function",
        "z": "f55ebfe97fab5883",
        "name": "Blinds + Percentage ",
        "func": "// Function Blinds and Percentage\n\n//Closed\n\nif (msg.payload.nvalue === 0) {\n\n        msg.payload = {\n        method: \"Cover.Close\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Open\n\nif (msg.payload.nvalue === 1) {\n\n        msg.payload = {\n        method: \"Cover.Open\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Percentage\n\nif (msg.payload.nvalue === 2) {\n\n        msg.payload = {\n        method: \"Cover.GoToPosition\",\n        parameters : {\n            id : 0,\n            pos : msg.payload.svalue1, \n            // rel : -10, // as an alternative to pos you can pass rel in %\n        }\n    }\n\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 700,
        "y": 780,
        "wires": [
            [
                "64a27f4f5f6554b1"
            ]
        ]
    },
    {
        "id": "582473d3f25f26c8",
        "type": "function",
        "z": "f55ebfe97fab5883",
        "name": "Blinds + Percentage + Stop",
        "func": "// Function Blinds and Percentage\n\n//Closed\n\nif (msg.payload.nvalue === 0) {\n\n        msg.payload = {\n        method: \"Cover.Close\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Open\n\nif (msg.payload.nvalue === 1) {\n\n        msg.payload = {\n        method: \"Cover.Open\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Percentage\n\nif (msg.payload.nvalue === 2) {\n\n        msg.payload = {\n        method: \"Cover.GoToPosition\",\n        parameters : {\n            id : 0,\n            pos : msg.payload.svalue1, \n            // rel : -10, // as an alternative to pos you can pass rel in %\n        }\n    }\n\n}\n\n// Extra for STOP Function\n\nif (msg.payload.nvalue === 17) {\n\n        msg.payload = {\n        method: \"Cover.Stop\",\n        parameters : {\n            id : 0,\n        }\n    }\n\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 720,
        "y": 820,
        "wires": [
            [
                "d857b69d3ec0037c"
            ]
        ]
    },
    {
        "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": ""
    }
]

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Thursday 10 April 2025 7:12
by Daro1003
I edited the domoticz node - I put the IP of my Raspberry in it and the connection is there.
Zrzut ekranu 2025-04-10 071044.png
Zrzut ekranu 2025-04-10 071044.png (18.13 KiB) Viewed 1301 times
Now the question is where do I enter the IDX of my roller shutter switch?
IDX.png
IDX.png (16.49 KiB) Viewed 1298 times

In the switch node or in Blinds + Procentage

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Thursday 10 April 2025 18:25
by FireWizard
Hello @Daro1993,

I created 2 different "Function" nodes.

The first one is called "Blinds + Percentage", which is intended, if you choose to use a switch with only "Open", "Closed" and a slider for the percentage.
The second "Function"node, called "Blinds + Percentage + Stop" is an extended version version of the first one.
It is intended, if you choose to use a switch with "Open", "Closed", a slider for the percentage and the additional STOP button.

So, if you choose for your all 4 Widget.to use the "Open", "Closed", a slider for the percentage and the additional STOP button as your Switch, you should delete the "Blinds + Percentage" "Function" node and to replace it by a copy of the "Blinds + Percentage + Stop" node.

You asked:
Now the question is where do I enter the IdX of my roller shutter switch?
In my previous post, I said:
This data goes to a "Switch" node, which has been prepared for 4 "Blind Switches". Edit this node and insert your own Domoticz indexes for the various "Blind Switches"
So, in your case.

As your widget (Open, Stop, Closed and a slider) has Idx number 1059, replace in the "Switch" node number 13 with 1059.

This means that all MQTT output from the Switch with Idx 1059 goes to the second (2) output of the "Switch" node.
If you have connected the correct "Function" node to output 2 you can check if you receive the correct values .
if so, connect the Shelly node and check the relays or the Blinds,

Let me know the result.

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Friday 11 April 2025 16:40
by Daro1003
I did as you wrote and provided the IDX.
Zrzut ekranu 2025-04-11 163620.png
Zrzut ekranu 2025-04-11 163620.png (52.57 KiB) Viewed 1215 times
1. The % bar doesn't work, I click anywhere on the % bar and it doesn't work in dodmoticz - it doesn't change place.

2. STOP doesn't work either - there's some error in Domoticz:
Error.png
Error.png (8.38 KiB) Viewed 1215 times
Top works - ok
Bottom works ok

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Friday 11 April 2025 17:06
by Daro1003
OK I HAVE SOME FINDINGS:
Zrzut ekranu 2025-04-11 165955.png
Zrzut ekranu 2025-04-11 165955.png (45.43 KiB) Viewed 1214 times
In the first column I added a switch up, down, percentage bar and everything works - ok
Blinds+Procentge.png
Blinds+Procentge.png (16.15 KiB) Viewed 1214 times
The second column where the top is a large percentage and STOP does not work correctly.
Zrzut ekranu 2025-04-11 165955.png
Zrzut ekranu 2025-04-11 165955.png (45.43 KiB) Viewed 1214 times
Only the top and bottom work.
STOP - ERROR as above.
The Percentage bar cannot be changed, it does not work.

I hope you know what I mean.

In general, the first column works fine, data from Domoticz to NodeRed goes if I click up, down and on the percentage bar.

Now how to connect it with the flow from Schelly??

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Friday 11 April 2025 18:28
by FireWizard
Hello @Daro1003,

If I understand you correctly, a "switch widget" In Domoticz with a "Open", 'Closed" and a "Percentage" slider
works correctly. However the the percentage slider I do not see that in your Debug field.
It should show: method: "Cover.GoToPosition".

If you use the widget with the "STOP" button, only the "Open" and "Closed" buttons works and the slider and STOP button does not work.

In my case, it works fine and it shows: method: "Cover.Stop"
Also method: "Cover.GoToPosition" works correct, but the slider in the widget is too long (see that other topic)

I'm afraid, that it does not work for you, is related to the Machinon theme. I never used that theme and I saw, the latest update has been published August 2020. So you may ask @DewGew, if he can confirm the problem you have.
Now how to connect it with the flow from Schelly??
I wrote already:
If you have connected the correct "Function" node to output 2 you can check if you receive the correct values .
if so, connect the Shelly node and check the relays or the Blinds.
So connect the input of your Shelly node (Check that you have the right one) to the output of the "Function" node (instead of the Debug nodes).
For the moment, I suggest to take the working widget and so the Function node with "Blinds +Percentage". Your IDX 1060.

It should work.

Let me know

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 8:35
by Daro1003
I connected open and close as below:
Zrzut ekranu 2025-04-12 083255.png
Zrzut ekranu 2025-04-12 083255.png (74.09 KiB) Viewed 1142 times
And it works.

Where do I connect the percentage bar control?

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 18:15
by Daro1003
In the above settings:

Lower works - down
Raise works - up

But in general it works badly because when clicking up or down the blind moves in the wrong direction but immediately changes its movement.
If he clicked down the blind moves up, he clicked a second time and it goes down.
This is a very strange and incorrect action.

The percentage bar does not work. If I click on the bar the blind goes completely down or up and does not stop in the set position. The position indicator also does not work.

Shelly properly configured and calibrated with the shutter works correctly. Shelly - domoticz communication is faulty.
Zrzut ekranu 2025-04-12 184051.png
Zrzut ekranu 2025-04-12 184051.png (17.36 KiB) Viewed 1080 times

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 19:29
by FireWizard
Hello @Daro1003

This was not the intended use of the flow and I can assume that it sometimes works as you described.
Actually my flow acts as a trigger to the "Open" and "Closed" test nodes, that you used before.
So this is not the way to go. Delete everything, what you created so far.

I looked to your first posts again and I concluded that we should use 4 "Blinds Percentage"Switches as shown on the next picture.
I translated the Polish text as good as possible to English, except one, as Google Translate could not help me with that

As the other Switch with the STOP button does not work, we skip that one.

As you have shown me 4 switches, I assume you have 4 different Shelly 2PM Gen 3 units.
Mind the pair between the Domoticz Switch and the Shelly device.

Screenshot_Shelly_Blinds_Switches.png
Screenshot_Shelly_Blinds_Switches.png (268.03 KiB) Viewed 1071 times
In my example the Bathroom Bedroom has IDX 12, the Shrinkage Middle has IDX 13, the Terace Door 14 and the Kamil Roleta has IDX 15.

I created one new flow, that is able to handle all 4 switches

Screenshot_Shelly_Blinds_flow.png
Screenshot_Shelly_Blinds_flow.png (44.34 KiB) Viewed 1071 times
Import this flow and do the following:

1. MQTT input node, called "From Domoticz" >> Insert you own MQTT configuration (as you did before)
2. "Switch" node, called "Filter Switch Type" >> No action required. so do not touch.
3. "Change"node, called "Set Topic" >> No action required. so do not touch.
4. "Function"node, called "Blinds + Percentage" >> No action required. so do not touch.
5. "Switch" node, called "Switch" >> Insert your own Domoticz IDX's numbers, instead of my number 12, 13, 14 and 15.
6. "Shelly" nodes >> Insert your own IP address of your Shelly devices, so that they show "Connected".

The everything should work.

Please find the flow below:

Code: Select all

[
    {
        "id": "f3bd0c45c36754fb",
        "type": "mqtt in",
        "z": "f55ebfe97fab5883",
        "name": "From Domoticz",
        "topic": "domoticz/out",
        "qos": "2",
        "datatype": "auto-detect",
        "broker": "38b35487299a036d",
        "nl": false,
        "rap": true,
        "rh": 0,
        "inputs": 0,
        "x": 280,
        "y": 980,
        "wires": [
            [
                "87f8021838582002"
            ]
        ]
    },
    {
        "id": "87f8021838582002",
        "type": "switch",
        "z": "f55ebfe97fab5883",
        "name": "Filter Switch Type",
        "property": "payload.switchType",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "Blinds Percentage",
                "vt": "str"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 1,
        "x": 510,
        "y": 980,
        "wires": [
            [
                "666f104da4e89fa5"
            ]
        ]
    },
    {
        "id": "666f104da4e89fa5",
        "type": "change",
        "z": "f55ebfe97fab5883",
        "name": "Set Topic",
        "rules": [
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "payload.idx",
                "tot": "msg"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 720,
        "y": 980,
        "wires": [
            [
                "14b9d673107d3767"
            ]
        ]
    },
    {
        "id": "14b9d673107d3767",
        "type": "function",
        "z": "f55ebfe97fab5883",
        "name": "Blinds + Percentage ",
        "func": "// Function Blinds and Percentage\n\n//Closed\n\nif (msg.payload.nvalue === 0) {\n\n        msg.payload = {\n        method: \"Cover.Close\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Open\n\nif (msg.payload.nvalue === 1) {\n\n        msg.payload = {\n        method: \"Cover.Open\",\n        parameters : {\n            id : 0,\n            // duration : 1, // optional time in seconds\n        }\n    }\n\n}\n\n//Percentage\n\nif (msg.payload.nvalue === 2) {\n\n        msg.payload = {\n        method: \"Cover.GoToPosition\",\n        parameters : {\n            id : 0,\n            pos : msg.payload.svalue1, \n            // rel : -10, // as an alternative to pos you can pass rel in %\n        }\n    }\n\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 940,
        "y": 980,
        "wires": [
            [
                "e0498efaff3877b0"
            ]
        ]
    },
    {
        "id": "e0498efaff3877b0",
        "type": "switch",
        "z": "f55ebfe97fab5883",
        "name": "Switch",
        "property": "topic",
        "propertyType": "msg",
        "rules": [
            {
                "t": "eq",
                "v": "12",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "13",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "14",
                "vt": "num"
            },
            {
                "t": "eq",
                "v": "15",
                "vt": "num"
            }
        ],
        "checkall": "true",
        "repair": false,
        "outputs": 4,
        "x": 1150,
        "y": 980,
        "wires": [
            [
                "f8da7a7048255fb3"
            ],
            [
                "441586f8d647d874"
            ],
            [
                "4cc16a088494d958"
            ],
            [
                "06521e1bf7401e8b"
            ]
        ]
    },
    {
        "id": "f8da7a7048255fb3",
        "type": "shelly-gen2",
        "z": "f55ebfe97fab5883",
        "hostname": "192.168.1.73",
        "description": "",
        "mode": "polling",
        "verbose": false,
        "server": "04263f2d054cc2a1",
        "uploadretryinterval": "5000",
        "pollinginterval": 5000,
        "pollstatus": false,
        "getstatusoncommand": false,
        "devicetype": "S3SW-002P16EU",
        "devicetypemustmatchexactly": false,
        "captureblutooth": false,
        "outputs": 1,
        "x": 1340,
        "y": 860,
        "wires": [
            []
        ]
    },
    {
        "id": "441586f8d647d874",
        "type": "shelly-gen2",
        "z": "f55ebfe97fab5883",
        "hostname": "192.168.1.74",
        "description": "",
        "mode": "polling",
        "verbose": false,
        "server": "04263f2d054cc2a1",
        "uploadretryinterval": "5000",
        "pollinginterval": 5000,
        "pollstatus": false,
        "getstatusoncommand": false,
        "devicetype": "S3SW-002P16EU",
        "devicetypemustmatchexactly": false,
        "captureblutooth": false,
        "outputs": 1,
        "x": 1340,
        "y": 940,
        "wires": [
            []
        ]
    },
    {
        "id": "4cc16a088494d958",
        "type": "shelly-gen2",
        "z": "f55ebfe97fab5883",
        "hostname": "192.168.1.75",
        "description": "",
        "mode": "polling",
        "verbose": false,
        "server": "04263f2d054cc2a1",
        "uploadretryinterval": "5000",
        "pollinginterval": 5000,
        "pollstatus": false,
        "getstatusoncommand": false,
        "devicetype": "S3SW-002P16EU",
        "devicetypemustmatchexactly": false,
        "captureblutooth": false,
        "outputs": 1,
        "x": 1340,
        "y": 1020,
        "wires": [
            []
        ]
    },
    {
        "id": "06521e1bf7401e8b",
        "type": "shelly-gen2",
        "z": "f55ebfe97fab5883",
        "hostname": "192.168.1.76",
        "description": "",
        "mode": "polling",
        "verbose": false,
        "server": "04263f2d054cc2a1",
        "uploadretryinterval": "5000",
        "pollinginterval": 5000,
        "pollstatus": false,
        "getstatusoncommand": false,
        "devicetype": "S3SW-002P16EU",
        "devicetypemustmatchexactly": false,
        "captureblutooth": false,
        "outputs": 1,
        "x": 1340,
        "y": 1100,
        "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": "04263f2d054cc2a1",
        "type": "shelly-gen2-server",
        "port": "10001",
        "hostname": "unimatrix"
    }
]
Test this and let me know

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 19:48
by Daro1003
We can't understand each other because of the language barrier. I write in Polish and use Google to translate to English.
FireWizard wrote: Saturday 12 April 2025 19:29 As you have shown me 4 switches, I assume you have 4 different Shelly 2PM Gen 3 units.
No No
I have 14 pieces of old shelly 2.5 that are breaking down and I showed the switches from these shelly 2.5.

I have one piece of shelly PM2 GEN3 - 1 piece for tests / operation tests.

I connected one piece of shelly PM2 GEN 3 to one roller blind and I am testing the rest of the roller blinds are still working on the old 2.5 that are breaking down and which I would like to replace with something else.

I am asking you for a flow for tests for one shelly PM2 GEN 3 if everything works, I will continue to buy new shelly PM2 GEN 3 controllers.

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 20:10
by Daro1003
I did:
Zrzut ekranu 2025-04-12 200430.png
Zrzut ekranu 2025-04-12 200430.png (40.98 KiB) Viewed 1064 times
And it works :)
Top - works ok, I click, goes up - I can't stop it
Bottom - works ok, I click, goes down - I can't stop it
Percentage bar - the white blind is set to the designated position.

The only thing missing is for the blind position bar to be updated, i.e. I set the blind with the local switch and the percentage bar is set like the blind.

In the shelly options, this bar is set like the blind. So it shows the blind status in domoticz, unfortunately not. Is it possible to do this?

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 20:57
by FireWizard
Hello @Daro1003,

Good that it works
I can't stop it
The "Blinds Percentage" switch does not have that possibility and the only switch that has the "STOP" function does not work in your Machinon Theme and in the default theme the slider bar is too long. So we will not use that.

If you want that, you can delete the Switches in Domoticz, that are not needed.

You can also delete the Shelly Nodes, currently showing "Waiting for device...", as you don't need them for now.
The only thing missing is for the blind position bar to be updated, i.e. I set the blind with the local switch and the percentage bar is set like the blind.
I know, but that is the next step.
First, I decided to make the connection from Domoticz (Switch) to Node-RED and to the Shelly unit functional.
Now it is time for the Shelly to Domoticz function.

I assume you have a physical Switch, that also controls your blinds.
But Shelly has also an app on your phone or tablet, which can be used to control the device.
Do you use that as well?

In order to update the Domoticz Switch, I need to know, what the output is, if you press the button of the 'Insert" node, marked "Get Status"
See your post of April 7, 07:38 h.

Do you want more Status information, e.g. Temperature?

Can you send me that?

Regards

Re: Is it possible to add Shelly 2PM GEN 3 to Domoticz?

Posted: Saturday 12 April 2025 21:40
by Daro1003
FireWizard wrote: Saturday 12 April 2025 20:57
I assume you have a physical Switch, that also controls your blinds.

Regards

YES
FireWizard wrote: Saturday 12 April 2025 20:57
But Shelly has also an app on your phone or tablet, which can be used to control the device.
Do you use that as well?

Regards
I do not use the application for control.
P.S
The application in shelly 2.5 did not work simultaneously with Domoticz.

If Domoticz worked, there was no cloud operation and I never used the application.

If Domoticz worked with shelly 2.5, the application only worked on the local IP address.

Question: Should the MQTT window in schelly be configured?
MQTTshelly2PMGEN3.png
MQTTshelly2PMGEN3.png (39.54 KiB) Viewed 1057 times
If so, how?
FireWizard wrote: Saturday 12 April 2025 20:57 In order to update the Domoticz Switch, I need to know, what the output is, if you press the button of the 'Insert" node, marked "Get Status"
See your post of April 7, 07:38 h.
Dane.png
Dane.png (49.68 KiB) Viewed 1057 times
Dane2.png
Dane2.png (100.39 KiB) Viewed 1044 times
Is this the data you are talking about??

Temperature data - needed because I currently have a fan installed to cool Shelly 2.5, thanks to the temperature data I have blockly in domoticz which controls the fan based on the temperature given by Shelly.

I have noticed a strange behavior of shelly PM2GEN3

If I go to the shelly page 192.168.0.49, NodeRed disconnects from shelly - I have to restart to reconnect shelly - NodeRed.

But not every time.