Page 1 of 8

ShellyCloudPlugin

Posted: Saturday 09 May 2020 22:07
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

Re: ShellyCloudPlugin

Posted: Wednesday 20 May 2020 14:25
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.

Re: ShellyCloudPlugin

Posted: Sunday 24 May 2020 23:29
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:

Re: ShellyCloudPlugin

Posted: Monday 25 May 2020 16:50
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?

Re: ShellyCloudPlugin

Posted: Monday 25 May 2020 21:14
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

Re: ShellyCloudPlugin

Posted: Monday 25 May 2020 22:03
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?

Re: ShellyCloudPlugin

Posted: Monday 25 May 2020 22:14
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.

Re: ShellyCloudPlugin

Posted: Tuesday 26 May 2020 9:51
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?

Re: ShellyCloudPlugin

Posted: Tuesday 26 May 2020 9:53
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.

Re: ShellyCloudPlugin

Posted: Tuesday 14 July 2020 22:29
by DarkG
Hello Mario

will shutter be possible?

Re: ShellyCloudPlugin

Posted: Wednesday 15 July 2020 10:16
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.

Re: ShellyCloudPlugin

Posted: Monday 20 July 2020 11:59
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?

Re: ShellyCloudPlugin

Posted: Monday 20 July 2020 15:27
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?

Re: ShellyCloudPlugin

Posted: Tuesday 21 July 2020 0:02
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.

Re: ShellyCloudPlugin

Posted: Tuesday 28 July 2020 20:12
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

Re: ShellyCloudPlugin

Posted: Saturday 15 August 2020 10:37
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

Re: ShellyCloudPlugin

Posted: Saturday 15 August 2020 18:14
by mariopeters
I Will look for a solution next week.

Re: ShellyCloudPlugin

Posted: Monday 24 August 2020 19:37
by mariopeters
Bug fixed.
The new code is pushed to github.
RGBW2 added for only the color type.
Also Shelly Bulb functionality added.

Re: ShellyCloudPlugin

Posted: Friday 28 August 2020 22:33
by mariopeters
Shelly Door/Window 2 functionality is also added.

Re: ShellyCloudPlugin

Posted: Monday 31 August 2020 15:12
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