Shelly Pro4PM and MQTT Python Plugin

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

Post Reply
ChrisVH1982
Posts: 23
Joined: Friday 16 November 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Shelly Pro4PM and MQTT Python Plugin

Post by ChrisVH1982 »

Hello,

Last week I reinstalled Domoticz, imported the existing DB and installed again latest MQTT Plugin for Shelly (https://github.com/enesbcs/Shelly_MQTT).

I just received a Shelly Pro 4 PM which according to the compatibility list is supported by the MQTT plugin. But buttons and power indicators won't turn up on Domoticz as they used to when I were to configure other Shellies. Anyone an idea what is the point?

Image
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by FireWizard »

Hi, @ChrisVH1982,

A quick view to the plugin, indicates that this one is made for Generation 1 Shelly devices, while your brand new Shelly Pro4PM is, as far as I know, a Generation 2 device.

Have a look at this thread: viewtopic.php?f=65&t=25656

Regards
Last edited by FireWizard on Sunday 01 January 2023 9:34, edited 1 time in total.
ChrisVH1982
Posts: 23
Joined: Friday 16 November 2018 17:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by ChrisVH1982 »

Hi! The "Shelly4 Pro (relay)" is listed as supported device. So I was hoping that I can use it.
User avatar
FireWizard
Posts: 1863
Joined: Tuesday 25 December 2018 12:11
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Voorthuizen (NL)
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by FireWizard »

Hi @ChrisVH1982,

I do not own a Shelly Pro 4 PM, so I cannot tell you from practical experience.
I took the information from the README of the corresponding Node-RED node.
See: https://flows.nodered.org/node/node-red-contrib-shelly

I do not see it in the list, shown at https://shelly-api-docs.shelly.cloud/gen1/#wifi-modes
But I do find it here: https://shelly-api-docs.shelly.cloud/ge ... ellyPro4PM

Conclusion: this is a Gen 2 device

If I look to your plugin https://github.com/enesbcs/Shelly_MQTT, I do not see the Shelly Pro 4 PM mentioned.
I do see the
Shelly4 Pro (relay)*
But that is a different device.

As far as I know, a new plugin for Gen 2 Shelly devices does not exist (yet), so you might want to try the Node RED flow with that Gen 2 node or using MQTT.

Regards
wbouwens
Posts: 6
Joined: Wednesday 09 December 2020 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by wbouwens »

Have you got the 4pm working with mqtt?
mk01
Posts: 5
Joined: Thursday 22 December 2022 5:46
Target OS: Linux
Domoticz version:
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by mk01 »

wbouwens wrote: Saturday 03 December 2022 21:41 Have you got the 4pm working with mqtt?
you can try

https :// github com /mk01/shelly-2to1-mqtt
wbouwens
Posts: 6
Joined: Wednesday 09 December 2020 10:19
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by wbouwens »

Hi Mk,

i installed your script in the shelly. Switches are now coming up. But not the power meters.
mk01
Posts: 5
Joined: Thursday 22 December 2022 5:46
Target OS: Linux
Domoticz version:
Contact:

Re: Shelly Pro4PM and MQTT Python Plugin

Post by mk01 »

wbouwens wrote: Monday 02 January 2023 0:08 Hi Mk,

i installed your script in the shelly. Switches are now coming up. But not the power meters.
true, bug. please take the latest version.

(if you would see updates only to power or only to energy, then most probably Shelly-MQTT's update limiter is kicking in (energy/power is one device and limiter passes only 1 change in 10sec. in that case try changing very last line of the script):

Code: Select all

Timer.set(12000, true, reportDevice, "power");
to

Code: Select all

Timer.set(24000, true, reportDevice, "power");
mk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest