Python Plugin: Shelly MQTT

Python and python framework

Moderator: leecollings

josemi
Posts: 31
Joined: Thursday 08 March 2018 16:48
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by josemi »

Does anybody have working long push in a Shelly 2.5 working as roller mode?
I enable debug option in plugin, but only short push is shown. No longpush device is created in domoticz either.
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

hello ,
thanks a lot for these nice plugin ,
everything is working except the temperature addon for the shelly 1
is there an opportunity that this addon also available coming in this plugin ??

Gerwin
User avatar
bewo
Posts: 74
Joined: Monday 13 July 2015 12:27
Target OS: Linux
Domoticz version: 2021.1
Location: Bavaria - Germany
Contact:

Re: Python Plugin: Shelly MQTT

Post by bewo »

Individual projects:
Domoticz on a Intel Xeon Server | AeonLabs Z-Wave Gen.5 | RFXCOM RFXtrx433E USB | ESP-Wifi-Modules | Shellys
Wall-mounted 22" Touch Control Display (self construct) | LUA wind monitor| LUA heating control | and many many more :)
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

@bewo

Thanks

Gerwin
djac
Posts: 28
Joined: Tuesday 24 October 2017 9:41
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by djac »

Trying to update Plugin but get:

"error: Your local changes to the following files would be overwritten by merge:
plugin.py
Please, commit your changes or stash them before you can merge."

Any suggestions?
Domoticz on Rpi, Z-wave, Hue with Philips and Ikea bulbs
Geitje
Posts: 170
Joined: Monday 22 January 2018 21:52
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Geitje »

If you Google it, you find some answers, I warns you probably to prevent to overwrite your local changes. You can solve it. Check out for example:
https://stackoverflow.com/questions/157 ... you-can-me
Domoticz beta, on Raspberry Pi 3B, Raspian Buster
Zwave, Zigate, RFlink etc.
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

hello
i have seen that the themperature addon is implemented how can i update ?
can someone explain step by step how to do this
i have a lot of shelly's

Gerwin
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

Gerwin wrote: Wednesday 25 March 2020 11:59 hello
i have seen that the themperature addon is implemented how can i update ?
can someone explain step by step how to do this
i have a lot of shelly's

Gerwin
I know how to do
works great

Gerwin
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Python Plugin: Shelly MQTT

Post by fabry91 »

Hello guys,

I'm trying to get it work, I have a Shelly 1 V3, successfully installed and started the Shelly plugin.

Problem is that I cannot make it work the on/off switch from domoticz to the shelly 1 relay, I'm attaching the configuration of tasmota flashed firmware on my shelly 1 and the logs result when I tried to switch on the mqtt switch created itself by domoticz.

Thank you in advance and stay safe ;)
Attachments
mqtt_shelly.jpg
mqtt_shelly.jpg (60.48 KiB) Viewed 2653 times
domoticz_logs.jpg
domoticz_logs.jpg (93.78 KiB) Viewed 2653 times
besix
Posts: 99
Joined: Friday 25 January 2019 11:33
Target OS: Linux
Domoticz version: beta
Location: Poland
Contact:

Re: Python Plugin: Shelly MQTT

Post by besix »

Hello
The Shelly plugin requires the original soft Shelly.
If you have Tasmota, this is only the mqtt broker but without the Shelly plugin
User avatar
fabry91
Posts: 67
Joined: Sunday 09 December 2018 16:52
Target OS: NAS (Synology & others)
Domoticz version: 2022.2
Location: Italy
Contact:

Re: Python Plugin: Shelly MQTT

Post by fabry91 »

besix wrote: Monday 30 March 2020 19:41 Hello
The Shelly plugin requires the original soft Shelly.
If you have Tasmota, this is only the mqtt broker but without the Shelly plugin
Thank you very much besix, I didn't understood that It was only for the stock shelly firmware.
I have now successfully started the MQTT Client Gateway and I am now controlling the shelly1 relay!

Thanks!!!
Derik
Posts: 1601
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

Post by Derik »

I now strange only i ask this here..
Is there perhaps some one that have shelly with Domoticz working without a plugin?
It looks to me that shely and Domotiz talk mqtt, this must be possible without a plugin?
Just a nodered or something?

for 1 shely a plugin, that's the point
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
User avatar
LouiS22
Posts: 433
Joined: Friday 27 February 2015 13:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Budapest, Hungary
Contact:

Re: Python Plugin: Shelly MQTT

Post by LouiS22 »

Derik wrote: Sunday 10 May 2020 10:18 I now strange only i ask this here..
Is there perhaps some one that have shelly with Domoticz working without a plugin?
It looks to me that shely and Domotiz talk mqtt, this must be possible without a plugin?
Just a nodered or something?

for 1 shely a plugin, that's the point
Just below this post at python's topic :)

viewtopic.php?f=65&t=32616
mattley30
Posts: 7
Joined: Tuesday 24 September 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by mattley30 »

Hi Guys,
I'm trying a scelly 1 with the additional external temperature sensor. inside the shelly1 I regularly display the temperature of 25.8 ° while on Domoticz the component created "LaCrosse TX3" with a value of "0". but I see that the update comes every minute.
Yet doing a dubug the message mqtt arrives.
2020-07-02 20: 05: 44.499 (Shelly Actuators) MQTT message: shellies / shelly1-8CAAB505BBAC / ext_temperature / 0: 25.88
2020-07-02 20: 05: 44.509 (Shelly Actuators) MQTT message: shellies / shelly1-8CAAB505BBAC / ext_temperature_f / 0: 78.58
do you know what it could be?
Thanks
Mattely30
mattley30
Posts: 7
Joined: Tuesday 24 September 2019 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by mattley30 »

Hello again
problem returned I realized that there was a shelly1 firmware update to do, once updated the temperature sensor data arrived, sorry.
Thanks
Mattley30
niekbruggeman
Posts: 5
Joined: Monday 30 October 2017 10:29
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by niekbruggeman »

I can confirm that the new shelly dimmer 2 works correct with Domoticz.
I use the native firmware of the Shelly, and the Shelly MQTT plugin for Domoticz 2020.2.
Pascal1978
Posts: 3
Joined: Sunday 10 May 2020 9:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Nederland
Contact:

Re: Python Plugin: Shelly MQTT

Post by Pascal1978 »

Hello,

I don't know if i'm posting it on the right place here, but i want to control my RGBW2 Shelly device with automatic color change.
i want to setup a sunrise color which flow over to daylight and at a specifick time to sunset and then to moonlight.
I have tried to set it with dzvents, but i don't know the right codes to set the colors let alone how to set it at different times and how to gradient
i want to use it for my aquarium lights.

can anyone help me out or point me in the right direction

thnx
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

Hello,

The Shelly button is that one impemented ???
does someone knows that

Gerwin
Gerwin
Posts: 84
Joined: Friday 12 August 2016 13:08
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Python Plugin: Shelly MQTT

Post by Gerwin »

Pascal1978 wrote: Friday 24 July 2020 22:55 Hello,

I don't know if i'm posting it on the right place here, but i want to control my RGBW2 Shelly device with automatic color change.
i want to setup a sunrise color which flow over to daylight and at a specifick time to sunset and then to moonlight.
I have tried to set it with dzvents, but i don't know the right codes to set the colors let alone how to set it at different times and how to gradient
i want to use it for my aquarium lights.

can anyone help me out or point me in the right direction

thnx
you can make groups for each collor you want
Attachments
group1.gif
group1.gif (148.92 KiB) Viewed 2227 times
Delfuego
Posts: 32
Joined: Sunday 29 July 2018 16:18
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: The Netherlands
Contact:

Re: Python Plugin: Shelly MQTT

Post by Delfuego »

Pascal1978 wrote: Friday 24 July 2020 22:55 Hello,

I don't know if i'm posting it on the right place here, but i want to control my RGBW2 Shelly device with automatic color change.
i want to setup a sunrise color which flow over to daylight and at a specifick time to sunset and then to moonlight.
I have tried to set it with dzvents, but i don't know the right codes to set the colors let alone how to set it at different times and how to gradient
i want to use it for my aquarium lights.

can anyone help me out or point me in the right direction

thnx
Hi Pascal,

You can send a switch command directly to you Shelly RGBW2 device using DzVentz:

Code: Select all

return {
	on = {
		devices = {'Switch to call this script'},
		},
	execute = function(domoticz, device)
        domoticz.openURL({url = 'http://192.168.0.50/color/0?turn=on&red=255&green=86&blue=112&white=0'})
	end
}
The gradient effect you have to code yourself I think by sending an updated color to your device every second or so until you reach your desired color.

Also check the following links to Shelly documentation:
https://shelly.cloud/documents/develope ... cation.pdf
https://shelly-api-docs.shelly.cloud/?f ... y-overview

Kind regards,

Luuk
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest