Page 1 of 1
Shelly Pro4PM and MQTT Python Plugin
Posted: Monday 28 November 2022 23:02
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?

Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Tuesday 29 November 2022 0:23
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
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Tuesday 29 November 2022 19:15
by ChrisVH1982
Hi! The "Shelly4 Pro (relay)" is listed as supported device. So I was hoping that I can use it.
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Tuesday 29 November 2022 19:50
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
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Saturday 03 December 2022 21:41
by wbouwens
Have you got the 4pm working with mqtt?
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Saturday 31 December 2022 23:15
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
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Monday 02 January 2023 0:08
by wbouwens
Hi Mk,
i installed your script in the shelly. Switches are now coming up. But not the power meters.
Re: Shelly Pro4PM and MQTT Python Plugin
Posted: Monday 02 January 2023 2:49
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