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

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

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

Post by Daro1003 »

You have only 1 such an interface configured?
YES

Can you show me the configuration.
YES
Hardware:
Hardware1.png
Hardware1.png (70.83 KiB) Viewed 136 times
Hardware2.png
Hardware2.png (129.13 KiB) Viewed 136 times
Hardware3.png
Hardware3.png (56.66 KiB) Viewed 136 times
I recommend to you, to install MQTT Explorer on your desktop or laptop, so that you can check what happens in MQTT.
I have it installed on my computer but everything runs very quickly because there are so many devices.
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

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

Post by Daro1003 »

I think we need to clean up here too.
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

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

Post by Daro1003 »

However, there is something wrong with this flow with temperature, because if I turn it on, the dashticz stops working stably - I click on the light bulb icons and they don't work.
I turn off the flow with temperature.

I turn on the flow without temperature and the dashticz returns to working properly.
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

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

Post by FireWizard »

Hi @Daro1003,

Please test it, with disablement of the MQTT node.
I asked you that before.

Regards
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

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

Post by Daro1003 »

Can you try, if it happens, not to disable the whole "flow", but only the MQTT Output node, marked "Domoticz In"
(Also a button down left) and "Deploy"
Yes, now I see that you wrote it.

Of course I will check it today.
Daro1003
Posts: 181
Joined: Monday 14 November 2022 12:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.1
Location: Poland
Contact:

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

Post by Daro1003 »

Exactly as you wrote, disabling the "domoticz in" node itself in the flow with temperature restores the system to operation.
wyłączenie.png
wyłączenie.png (61.76 KiB) Viewed 49 times
I noticed the problem in operation after domoticz performed automatic closing of all blinds. Automatic closing is performed by a scene in domoticz.
User avatar
FireWizard
Posts: 1887
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

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

Post by FireWizard »

Hello @Daro1003,

You wrote:
Exactly as you wrote, disabling the "domoticz in" node itself in the flow with temperature restores the system to operation.
Very strange, but to test, I have modified the "Function" node, so that the Temperature will not be sent to the MQTT Output.
Can you put this node in parallel with the existing "Function" node and disable the existing "Function" node (down left button).
Enable the MQTT node again and test.

Code: Select all

[
    {
        "id": "58eeb2cbc12d887e",
        "type": "function",
        "z": "cfcf4d6d274167af",
        "name": "Control Domoticz Switch",
        "func": "let sidx = (flow.get(msg.topic.split(\"/\")[0])).sidx;\nlet tidx = (flow.get(msg.topic.split(\"/\")[0])).tidx;\n\n//Open (for Reversed Position)\nif (msg.payload.current_pos === 100) {\n    msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 1, \"svalue\": \"100\" }\n}\n\n//Closed (for Reversed Position)\nif (msg.payload.current_pos === 0) {\n    msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 0, \"svalue\": \"0\" }\n}\n\n//Percentage (for Reversed Position)\nif ((msg.payload.current_pos > 0) && (msg.payload.current_pos < 100)) {\n    msg.payload = { \"command\": \"udevice\", \"idx\": sidx, \"nvalue\": 2, \"svalue\": msg.payload.current_pos.toString() }\n}\n\nreturn msg;",
        "outputs": 1,
        "timeout": 0,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 530,
        "y": 600,
        "wires": [
            [
                "e58167589c1a3fcf"
            ]
        ]
    }
]
I do not expect, that it is the solution, but let us test it anyway.
Let me know.

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest