Python Plugin: Shelly MQTT
Moderator: leecollings
- gizmocuz
- Posts: 2707
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: Python Plugin: Shelly MQTT
@microchip1974
I have send you an email.
Anyone having issues with the MQTT Auto Discovery hardware feel free to join our Slack channels:
https://join.slack.com/t/domoticz/share ... G2dBSOTRwg
I have send you an email.
Anyone having issues with the MQTT Auto Discovery hardware feel free to join our Slack channels:
https://join.slack.com/t/domoticz/share ... G2dBSOTRwg
Quality outlives Quantity!
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Python Plugin: Shelly MQTT
Love you Rob....gizmocuz wrote: Sunday 06 February 2022 18:45 @microchip1974
I have send you an email.
Anyone having issues with the MQTT Auto Discovery hardware feel free to join our Slack channels:
https://join.slack.com/t/domoticz/share ... G2dBSOTRwg
Hope you get shelly working...
If you need a hardware device to test.
I buy 1 for you..
Let me know please
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
There is no zigbee2mqtt integration, there is a MQTT Autodiscover integration that Z2M also happen to support. That and also the fact that Zwavejs2mqtt supports this gave some momentum.
But everyone is free to start a C++ integration. Rob is not the only person that starts an integration.
Also you would need the hardware to test.
But you are free to ask
But everyone is free to start a C++ integration. Rob is not the only person that starts an integration.
Also you would need the hardware to test.
But you are free to ask
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
Derik
- Posts: 1605
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Python Plugin: Shelly MQTT
I now wat you mean....waltervl wrote: Sunday 06 February 2022 22:07 There is no zigbee2mqtt integration, there is a MQTT Autodiscover integration that Z2M also happen to support. That and also the fact that Zwavejs2mqtt supports this gave some momentum.
But everyone is free to start a C++ integration. Rob is not the only person that starts an integration.
Also you would need the hardware to test.
But you are free to ask![]()
If you could.. i buy you a shelly
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
darrepac
- Posts: 142
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Python Plugin: Shelly MQTT
Hello
I have shellies and plugin working since a while flawlessly.
Yet, I realized something odd with my Shelly EM:
While the voltage device is updated everything few seconds (at each mqtt update), the watt consumption is only updated every 10 or more seconds (while through MQTT Explorer I see that both are updated in the same time).
What is the reason behind and can we change that?
EDIT:
Looking at the plugin.py, domoticz voltage device value (and on/off values) is updated at every mqtt message while power/energy values are updated at minimum every 10seconds:
I have shellies and plugin working since a while flawlessly.
Yet, I realized something odd with my Shelly EM:
While the voltage device is updated everything few seconds (at each mqtt update), the watt consumption is only updated every 10 or more seconds (while through MQTT Explorer I see that both are updated in the same time).
What is the reason behind and can we change that?
EDIT:
Looking at the plugin.py, domoticz voltage device value (and on/off values) is updated at every mqtt message while power/energy values are updated at minimum every 10seconds:
Why? I don't knowif( updated > 10 ):
-
Robinjoo94
- Posts: 21
- Joined: Saturday 25 May 2019 19:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Contact:
Re: Python Plugin: Shelly MQTT
Hi all,
I have the Shelly MQTT running rather flawlesly for over a year, or maybe 2 already, now.
I just updated to Domoticz 2022.1 stable build, and that is when the problems started.
Is see the following error in the Domoticz.log after which Domoticz service goes to "active (exited)":
Anyone faced the same and has a solution?
I have the Shelly MQTT running rather flawlesly for over a year, or maybe 2 already, now.
I just updated to Domoticz 2022.1 stable build, and that is when the problems started.
Is see the following error in the Domoticz.log after which Domoticz service goes to "active (exited)":
Code: Select all
Error: Domoticz(pid:22631, tid:22647('Shelly MQTT')) received fatal signal 11 (Segmentation fault)- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
There is an issue on running Python plugins on Bullseye but you seem to run Buster so that would not be an issue.
Does it stop directly or after a while?
What is in the Domoticz log before the crash?
Does it stop directly or after a while?
What is in the Domoticz log before the crash?
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
darrepac
- Posts: 142
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Python Plugin: Shelly MQTT
I found why, here is the answer if someone else need it: https://github.com/enesbcs/Shelly_MQTT/pull/87darrepac wrote: Friday 04 March 2022 11:48 Hello
I have shellies and plugin working since a while flawlessly.
Yet, I realized something odd with my Shelly EM:
While the voltage device is updated everything few seconds (at each mqtt update), the watt consumption is only updated every 10 or more seconds (while through MQTT Explorer I see that both are updated in the same time).
What is the reason behind and can we change that?
EDIT:
Looking at the plugin.py, domoticz voltage device value (and on/off values) is updated at every mqtt message while power/energy values are updated at minimum every 10seconds:Why? I don't knowif( updated > 10 ):
-
Robinjoo94
- Posts: 21
- Joined: Saturday 25 May 2019 19:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Contact:
Re: Python Plugin: Shelly MQTT
It stops after a while, where the "while" is rather unpredictable (1 minute to >24 hours).waltervl wrote: Sunday 06 March 2022 17:40 There is an issue on running Python plugins on Bullseye but you seem to run Buster so that would not be an issue.
Does it stop directly or after a while?
What is in the Domoticz log before the crash?
The log shows "Disconnected from MQTT Server" for the occurences I was not directly looking at last time. Other than that there is nothing interesting in the log, just my (non-Shelly) devices updating:
- Spoiler: show
- Spoiler: show
-
darrepac
- Posts: 142
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Python Plugin: Shelly MQTT
I had also lot of plugin problem with latest stable. I updated to latest Beta because something has been changed about python, and everything is working much better now
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
Is MQTT broker (eg mosquitto) running on the same server or a different one?
As it seems that the disconnecting issue could trigger the crash (it should not).
Perhaps another issue in your environment that is triggering this? Wifi issues, Network issues, Memory issues?
@darrepac Plugin issues were on Bullseye environment not on Buster.
As it seems that the disconnecting issue could trigger the crash (it should not).
Perhaps another issue in your environment that is triggering this? Wifi issues, Network issues, Memory issues?
@darrepac Plugin issues were on Bullseye environment not on Buster.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
darrepac
- Posts: 142
- Joined: Tuesday 04 February 2014 21:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Isère, France
- Contact:
Re: Python Plugin: Shelly MQTT
I just share my experience...waltervl wrote: Monday 07 March 2022 16:33 @darrepac Plugin issues were on Bullseye environment not on Buster.
-
Robinjoo94
- Posts: 21
- Joined: Saturday 25 May 2019 19:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Contact:
Re: Python Plugin: Shelly MQTT
Yes, running on the same Raspberry Pi.waltervl wrote: Monday 07 March 2022 16:33 Is MQTT broker (eg mosquitto) running on the same server or a different one?
As it seems that the disconnecting issue could trigger the crash (it should not).
Perhaps another issue in your environment that is triggering this? Wifi issues, Network issues, Memory issues?
Will keep an eye on the logs upcoming days.
-
ProjektC
- Posts: 67
- Joined: Sunday 17 December 2017 17:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 4.10717
- Location: Germany
- Contact:
Re: Python Plugin: Shelly MQTT
Hello
I have been using Domoticz for many years
basically with Yeelight lamps in LAN mode and Shelly products.
Have various Shelly sockets, motion sensor, window detector and since short Shelly 1.
Now I thought for my daughter a Shelly button to switch on zb your lamps or colored switch.
I thought the part just turns on and off.
The Shelly Button is integrated in domoticz.
But on and off I guess I can't switch.
Instead once, twice, three times and long press.
But it's not clear to me how I can just turn anything on and off.
Or how I can assign the commands somewhere to a lamp or scene.
So I'm not sure if that works at all.
bye
I have been using Domoticz for many years
basically with Yeelight lamps in LAN mode and Shelly products.
Have various Shelly sockets, motion sensor, window detector and since short Shelly 1.
Now I thought for my daughter a Shelly button to switch on zb your lamps or colored switch.
I thought the part just turns on and off.
The Shelly Button is integrated in domoticz.
But on and off I guess I can't switch.
Instead once, twice, three times and long press.
But it's not clear to me how I can just turn anything on and off.
Or how I can assign the commands somewhere to a lamp or scene.
So I'm not sure if that works at all.
bye
-
Robinjoo94
- Posts: 21
- Joined: Saturday 25 May 2019 19:06
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Contact:
Re: Python Plugin: Shelly MQTT
Have a look at: https://www.domoticz.com/wiki/EventsProjektC wrote: Wednesday 09 March 2022 20:00 But it's not clear to me how I can just turn anything on and off.
Or how I can assign the commands somewhere to a lamp or scene.
So I'm not sure if that works at all.
So I still do not have a clear cause for my issues.Robinjoo94 wrote: Monday 07 March 2022 17:47Yes, running on the same Raspberry Pi.waltervl wrote: Monday 07 March 2022 16:33 Is MQTT broker (eg mosquitto) running on the same server or a different one?
As it seems that the disconnecting issue could trigger the crash (it should not).
Perhaps another issue in your environment that is triggering this? Wifi issues, Network issues, Memory issues?
Will keep an eye on the logs upcoming days.
I now have a "watchdog" script running that restarts domoticz whenever went to "active (exited)".
Added a simple script/domoticz device to track the memory consumption, there seems to be some memory leak, but the error happens already when the memory consumption is at 70%, so too early in my oppinion to be caused by memory issues.
I will have to add some more monitoring to get to the root cause.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
For memory tracking you can use the build in motherboard sensor gateway https://www.domoticz.com/wiki/Motherboard_sensors
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
extremeaudio
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: Shelly MQTT
Everything was working, suddenly when i checked again I get this error
mqtt: disconnected, Invalid Username/Password (rc=5)
I havent made any changes. How can I re enable mqtt again?
log as below
mqtt: disconnected, Invalid Username/Password (rc=5)
I havent made any changes. How can I re enable mqtt again?
log as below
Code: Select all
2022-03-16 20:19:33.143 Error: Shelly MQTT: (Shelly MQTT) Disconnected from MQTT Server: 192.168.1.63:1883
2022-03-16 20:19:33.143 Error: Shelly MQTT: (Shelly MQTT) No transport, write directive to '192.168.1.63' ignored.
2022-03-16 20:19:43.111 Shelly MQTT: (Shelly MQTT) Connected to MQTT Server: 192.168.1.63:1883
2022-03-16 20:19:43.162 Error: Shelly MQTT: (Shelly MQTT) Disconnected from MQTT Server: 192.168.1.63:1883
2022-03-16 20:19:43.162 Error: Shelly MQTT: (Shelly MQTT) No transport, write directive to '192.168.1.63' ignored.
2022-03-16 20:19:45.088 RPi: Temp (Internal Temperature)
2022-03-16 20:19:45.423 InfluxLink: value Temperature,idx=2,name=Internal-Temperature value=57.9
2022-03-16 20:19:49.444 Status: MQTT: MQTT: Connecting to localhost:1883
2022-03-16 20:19:49.646 Error: MQTT: MQTT: Connection failed!, restarting (rc=2)
2022-03-16 20:19:49.646 Error: MQTT: MQTT: disconnected, Invalid Username/Password (rc=5)
2022-03-16 20:19:53.131 Shelly MQTT: (Shelly MQTT) Connected to MQTT Server: 192.168.1.63:1883
2022-03-16 20:19:53.183 Error: Shelly MQTT: (Shelly MQTT) Disconnected from MQTT Server: 192.168.1.63:1883
2022-03-16 20:19:53.183 Error: Shelly MQTT: (Shelly MQTT) No transport, write directive to '192.168.1.63' ignored.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
Did you update to latest beta (would conflict your statement that nothing changed..)? As this seems to be an issue now:
https://github.com/domoticz/domoticz/issues/5195
https://github.com/domoticz/domoticz/issues/5195
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
-
extremeaudio
- Posts: 47
- Joined: Tuesday 24 November 2020 17:57
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Python Plugin: Shelly MQTT
I had not updated to beta. After reading your post I updated in fact to the latest beta and the problem persists.
- waltervl
- Posts: 6677
- Joined: Monday 28 January 2019 18:48
- Target OS: Linux
- Domoticz version: 2025.1
- Location: NL
- Contact:
Re: Python Plugin: Shelly MQTT
Is your MQTT broker running? Can you connect it with MQTT explorer? https://www.domoticz.com/wiki/MQTT#Debugging_MQTT
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Who is online
Users browsing this forum: No registered users and 1 guest