ShellyCloudPlugin

Python and python framework

Moderator: leecollings

tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by tjabas »

i think i got it working,
i had to find out the ip of my shelly 1 for it to work,
but do i have to make a new hardware device for every shelly i have?
cant i just ad my shelly cloud information and get all my devices from the cloud?
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: ShellyCloudPlugin

Post by Sjonnie2017 »

I have about a dozen Zigbee roller shutters that behave erratic. So I decided to experiment with one Shelly 2.5 device in roller shutter mode. After some NooB mistakes in the Shelly app I got it working. Looking at the WiFi experience of the device it seems to be having a strong connection to my AP so that's promising :)

What I do miss is a "stop" function in Domoticz to interrupt the closing or opening of the roller shutter. I read in this thread that that might be a problem. Is the plugin still being developed by @mariopeters or is it orphaned? Would be nice to see further development and the addition of the stop functionality :mrgreen:

Anyhows... Kudos to @mariopeters for this plugin!
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by tjabas »

has anyone tried the shelly flood sensor in this plugin?
it isnt listed i know, but have anyone tried it?
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by tjabas »

i have 2 houses, the one we live in i have domoticz up and running since many years, the other house is many miles away but it have wifi and my question is.

can i have a shelly EM installed there and get it into Domoticz at the house where living in?

i would like to measure the power consumption in that house where not living in,and get the data into the house where Domoticz is.

can this be done with this 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: ShellyCloudPlugin

Post by fabry91 »

Hello everyone,

it is possibile to connect a Shelly 1 that is outside the LAN network without a ddns or the WAN ip address?

Thank you
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: ShellyCloudPlugin

Post by Sjonnie2017 »

The plugin requires an IP address. So if you can get a fixed IP address on the Shelly 1 you should be able to connect to it. It shouldn't matter if the IP address is inside your local LAN as long as it is reachable.
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
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: ShellyCloudPlugin

Post by fabry91 »

Sjonnie2017 wrote: Thursday 30 December 2021 16:51 The plugin requires an IP address. So if you can get a fixed IP address on the Shelly 1 you should be able to connect to it. It shouldn't matter if the IP address is inside your local LAN as long as it is reachable.
Hello Sjonnie, thank you but we have some Shelly outside our LAN network, I was hoping that can be possibile to add to my Domoticz local server, the only way is to add the WAN ip address where the remote Shelly are and use port forwarding to published and be reachable to the outside.

Do you know what port need to be accessed by the Shelly Cloud plugin in Domoticz?

Thank you and Happy New Year!
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: ShellyCloudPlugin

Post by Sjonnie2017 »

The webserver of my Shelly's (2.5) are communicating over port 80. Which is most definitely not secure when facing the Shelly's to the Internet. If possible use a VPN connection to the remote location.

Is there a reason not to have a Domoticz installation at the remote location and access that Domoticz instance through VPN/VNC/Anydesk/Teamviewer?
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
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: ShellyCloudPlugin

Post by fabry91 »

Sjonnie2017 wrote: Friday 31 December 2021 11:56 The webserver of my Shelly's (2.5) are communicating over port 80. Which is most definitely not secure when facing the Shelly's to the Internet. If possible use a VPN connection to the remote location.

Is there a reason not to have a Domoticz installation at the remote location and access that Domoticz instance through VPN/VNC/Anydesk/Teamviewer?
Yes, this was the reason because I didn't want to to publish on wan network.

The reason was because I want to put the domoticz widget on my home screen of the smartphone and the Shelly Cloud app is pretty orrible for me and every time you touch the on/off widget now it starts the app :lol:
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: ShellyCloudPlugin

Post by Sjonnie2017 »

You might want to try this to see if this answers your question: In the Domoticz Lite app you have settings => server settings. You can set the server address to the WAN IP of the location of your Domoticz device and you must provide a port number. You can set a user name and (preferably very strong) password. Next you configure a port forwarding rule in your router. I would suggest to use a non-related port number. Default port is 2080 so something like 34827 would be an option. So the rule would look something like this: traffic coming in on port 34827 is to be redirected to the internal IP of the Domoticz device on port 2080.

You can try this with your phone in your local LAN :)
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
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: ShellyCloudPlugin

Post by fabry91 »

Sjonnie2017 wrote: Friday 31 December 2021 14:30 You might want to try this to see if this answers your question: In the Domoticz Lite app you have settings => server settings. You can set the server address to the WAN IP of the location of your Domoticz device and you must provide a port number. You can set a user name and (preferably very strong) password. Next you configure a port forwarding rule in your router. I would suggest to use a non-related port number. Default port is 2080 so something like 34827 would be an option. So the rule would look something like this: traffic coming in on port 34827 is to be redirected to the internal IP of the Domoticz device on port 2080.

You can try this with your phone in your local LAN :)
Hello,

my domoticz server is already published to a port, so this is not the goal to reach.

The goal is to add a Shelly device that is installed outside my home where it is running Domoticz and control from my Domoticz.

A possibile solution, maybe slow, it can be this: add my wan ip address and port of my local Domoticz server where is running a mqtt server and add to the remote Shelly 1.
User avatar
Sjonnie2017
Posts: 361
Joined: Wednesday 02 August 2017 19:43
Target OS: Linux
Domoticz version: Latest ß
Location: The Netherlands
Contact:

Re: ShellyCloudPlugin

Post by Sjonnie2017 »

Sorry I misunderstood your requirements. :oops:

Can't really help you there although VPN springs to mind ;)
ConBee II - TRÅDFRI lights + switches, loads of ChingLing dimmers and switches, Heiman and Xiaomi sensors
SolarEdge SE4000H (with active modbus_tcp)
YouLess Energy meter
Shelly 2.5 in roller shutter mode
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

tjabas wrote: Saturday 25 December 2021 11:11 i have 2 houses, the one we live in i have domoticz up and running since many years, the other house is many miles away but it have wifi and my question is.

can i have a shelly EM installed there and get it into Domoticz at the house where living in?

i would like to measure the power consumption in that house where not living in,and get the data into the house where Domoticz is.

can this be done with this shelly plugin?
I added this device to a my feature list. Is it possible that you send me the outcome of "http://<ipaddress>/settings" and "http://<ipaddress>/status" in your browser?
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

tjabas wrote: Sunday 19 December 2021 14:16 has anyone tried the shelly flood sensor in this plugin?
it isnt listed i know, but have anyone tried it?
I added this device to a my feature list. Is it possible that you send me the outcome of "http://<ipaddress>/settings" and "http://<ipaddress>/status" in your browser?
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

I have made functionality for the Shelly TRV.
If anyone has this device, please let me know.
You can help me with testing the new shelly plugin.
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

Just added Shelly TRV and Gas functionality.
Please let me know how it works.
If you find any bugs, please leave an issue on the GitHub project issue tracker.
philoupat6283
Posts: 2
Joined: Monday 13 December 2021 20:11
Target OS: Windows
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by philoupat6283 »

Hello
Question how to set Shelly cloud plugin for a Shelly EM it is not in the list
thanks
mariopeters
Posts: 61
Joined: Wednesday 22 August 2018 12:18
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by mariopeters »

philoupat6283 wrote:Hello
Question how to set Shelly cloud plugin for a Shelly EM it is not in the list
thanks
What do you mean??
philoupat6283
Posts: 2
Joined: Monday 13 December 2021 20:11
Target OS: Windows
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by philoupat6283 »

casaitalia
Posts: 2
Joined: Tuesday 29 December 2020 12:56
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ShellyCloudPlugin

Post by casaitalia »

mariopeters wrote: Thursday 13 January 2022 19:40 Just added Shelly TRV and Gas functionality.
Please let me know how it works.
If you find any bugs, please leave an issue on the GitHub project issue tracker.
HI, I bought a Shelly TRV and activated your plugin on my domoticz but in the error list I have these messages. Can you help me ? Thank you
2022-01-22 17:40:12.513 Error: (Radiatore_Camera) 'onHeartbeat' failed 'AttributeError'.
2022-01-22 17:40:12.513 Error: (Radiatore_Camera) ----> Line 315 in '/home/pi/domoticz/plugins/ShellyCloudPlugin/plugin.py', function onHeartbeat
2022-01-22 17:40:12.513 Error: (Radiatore_Camera) ----> Line 280 in '/home/pi/domoticz/plugins/ShellyCloudPlugin/plugin.py', function onHeartbeat
2022-01-22 17:40:12.513 Error: (Radiatore_Camera) ----> Line 615 in '/home/pi/domoticz/plugins/ShellyCloudPlugin/plugin.py', function updateTRV
The same plugin with a shelly1 works fine
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest