ShellyCloudPlugin

Python and python framework

Moderator: leecollings

Post Reply
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

ShellyCloudPlugin

Post by mariopeters »

I developed a new plugin in python for Shelly devices.
Currently the Shelly 1, Shelly 2.5 and the Shelly Dimmer are supported.
Check my github repository https://github.com/mario-peters/ShellyCloudPlugin
I'm still in test phase so every feedback is welcome. :D
jon205
Posts: 39
Joined: Monday 05 November 2018 16:17
Target OS: Linux
Domoticz version: 2022.2
Location: @home
Contact:

Re: ShellyCloudPlugin

Post by jon205 »

Best thing about this plugin is that it works without any additional software. No MQTT, no need to flash the shelly devices, nothing. Just configure the Shelly through its webinterface and that's it.

Tested with the Shelly 1 and the Dimmer and it's working great.

Jon.
tlambin
Posts: 12
Joined: Tuesday 16 May 2017 22:12
Target OS: -
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by tlambin »

Great.
I tested the SHELLY 1PM, SHELLY 2.5 and SHELLY dimmer.
All works fine with the plug-in.
So easy :!:

Are there any plans for adding the SHELLY RGBW(2) to the plug-in soon? :idea:
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

tlambin wrote: Sunday 24 May 2020 23:29 Great.
I tested the SHELLY 1PM, SHELLY 2.5 and SHELLY dimmer.
All works fine with the plug-in.
So easy :!:

Are there any plans for adding the SHELLY RGBW(2) to the plug-in soon? :idea:
tlambin, thanks for using the plugin. Unfortunately I haven't got a Shelly RGBW(2) device for testing purposes. I'm going to investigate the changes I have to make for adding the Shelly RGBW functionality. Perhaps I can send you a test version in the future?
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: ShellyCloudPlugin

Post by Derik »

Dear...
I did use your plugin.
looking great...
Ony the plugin give a lotof data..
And then is the mqtt very slow in domoticz.

So perhaps more options to set data for x seconds or something like that
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
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Derik,
what do you mean with "a lot of data".
The onHeartbeat is now refreshing at 30 seconds.
Can you explain what the problem is?
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: ShellyCloudPlugin

Post by Derik »

i remove the plugin.
every time when the usage change the pugin change the data in domoticz.
And that with 6 shelly's.

Was to much for my odroid N2.
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
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Derik wrote: Monday 25 May 2020 22:14 i remove the plugin.
every time when the usage change the pugin change the data in domoticz.
And that with 6 shelly's.

Was to much for my odroid N2.
Derik,
Shall I add a choice dropdown for choosing if you want to add (and periodically update) power consumption?
Would this sollution work for your problem?
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

mariopeters wrote: Monday 25 May 2020 16:50
tlambin wrote: Sunday 24 May 2020 23:29 Great.
I tested the SHELLY 1PM, SHELLY 2.5 and SHELLY dimmer.
All works fine with the plug-in.
So easy :!:

Are there any plans for adding the SHELLY RGBW(2) to the plug-in soon? :idea:
tlambin, thanks for using the plugin. Unfortunately I haven't got a Shelly RGBW(2) device for testing purposes. I'm going to investigate the changes I have to make for adding the Shelly RGBW functionality. Perhaps I can send you a test version in the future?
I already started working on this next feature.
It is almost finished, but I still have a small problem on updating the RGB values of the Domoticz device.
After fixing this you should be able to use the RGBW2 switch.
I will notice you if it is fixed and committed in GitHub.
DarkG
Posts: 89
Joined: Friday 15 September 2017 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: 4.10076
Location: Germany
Contact:

Re: ShellyCloudPlugin

Post by DarkG »

Hello Mario

will shutter be possible?
RPi4 Shelly1 Shelly2.5 ESPEasy Tuya Domoticz Beta Dashticz 3.6
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Shelly RGBW(2) is now also included.
If someone could test the functionality?
Please send me (private message) the error messages if they occur.
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: ShellyCloudPlugin

Post by HvdW »

Hi
What's the status of this plugin?
I cloned it from github, did chmod +x for the plugin, but I doesn't show in the hardware.
What am I doing wrong?
Bugs bug me.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

HvdW wrote: Monday 20 July 2020 11:59 Hi
What's the status of this plugin?
I cloned it from github, did chmod +x for the plugin, but I doesn't show in the hardware.
What am I doing wrong?
Do you receive an error in de log file when you startup Domoticz?
Could it be possible that the Domoticz-user doesn't have any rights on the directory/files?
HvdW
Posts: 504
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: ShellyCloudPlugin

Post by HvdW »

Thanks for pointing to the log files where it says: PluginSystem: Failed dynamic library load
Having read Using Python plugins again I installed sudo apt install python3-dev
That did it.
Bugs bug me.
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: ShellyCloudPlugin

Post by qwerk »

Just found out about this plugin. I already have two switches, and added them via api calls.
Today I received a shelly dimmer and used this plugin. this works wonderfull.
thanks for this

I also received my shelly bulb a rgb bulb I tried to use rgb(2) It looks like it works.
but more slowly and less accurate. ilumination is not right.
Also the effects for this bulb are not present.

thanks in advance
qwerk
Posts: 222
Joined: Tuesday 22 July 2014 7:21
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Netherlands
Contact:

Re: ShellyCloudPlugin

Post by qwerk »

I added a ledstrip with the shelly rgb2. In general it works.
I do get a lot of errors in my log

2020-08-15 10:27:25.404 (RGB2 1) onHeartbeat called
2020-08-15 10:27:25.505 Error: (RGB2 1) 'onHeartbeat' failed 'NameError'.
2020-08-15 10:27:25.506 Error: (RGB2 1) ----> Line 206 in '/home/pi/domoticz/plugins/ShellyCloudPlugin-master/plugin.py', function onHeartbeat
2020-08-15 10:27:25.506 Error: (RGB2 1) ----> Line 171 in '/home/pi/domoticz/plugins/ShellyCloudPlugin-master/plugin.py', function onHeartbeat
2020-08-15 10:27:25.506 Error: (RGB2 1) ----> Line 412 in '/home/pi/domoticz/plugins/ShellyCloudPlugin-master/plugin.py', function updateSHRGBW2

I don't know if this is the plugin or domoticz:

2020-08-15 10:13:35.238 Error: (RGB2 1) HTTPConnectionPool(host='shelly ip address', port=80): Max retries exceeded with url: /color/0?turn=on&red=255&green=22&blue=174&gain=1 (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x1cac6950>, 'Connection to "shelly ipaddress" timed out. (connect timeout=10)'))

it is no biggy, so no pressure ;-)
still happy with the plugin
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

I Will look for a solution next week.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Bug fixed.
The new code is pushed to github.
RGBW2 added for only the color type.
Also Shelly Bulb functionality added.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Shelly Door/Window 2 functionality is also added.
darrepac
Posts: 133
Joined: Tuesday 04 February 2014 21:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Isère, France
Contact:

Re: ShellyCloudPlugin

Post by darrepac »

Hello

Good job! It seems it can work without beeing forced to use MQTT...
Do you plan to release Shelly Plug support?

thx
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest