Page 6 of 8

Re: ShellyCloudPlugin

Posted: Tuesday 14 December 2021 22:08
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?

Re: ShellyCloudPlugin

Posted: Saturday 18 December 2021 14:35
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!

Re: ShellyCloudPlugin

Posted: Sunday 19 December 2021 14:16
by tjabas
has anyone tried the shelly flood sensor in this plugin?
it isnt listed i know, but have anyone tried it?

Re: ShellyCloudPlugin

Posted: Saturday 25 December 2021 11:11
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?

Re: ShellyCloudPlugin

Posted: Thursday 30 December 2021 16:34
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

Re: ShellyCloudPlugin

Posted: Thursday 30 December 2021 16:51
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.

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 10:45
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!

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 11:56
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?

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 14:04
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:

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 14:30
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 :)

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 15:47
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.

Re: ShellyCloudPlugin

Posted: Friday 31 December 2021 16:10
by Sjonnie2017
Sorry I misunderstood your requirements. :oops:

Can't really help you there although VPN springs to mind ;)

Re: ShellyCloudPlugin

Posted: Thursday 13 January 2022 15:57
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?

Re: ShellyCloudPlugin

Posted: Thursday 13 January 2022 15:58
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?

Re: ShellyCloudPlugin

Posted: Thursday 13 January 2022 16:00
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.

Re: ShellyCloudPlugin

Posted: Thursday 13 January 2022 19:40
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.

Re: ShellyCloudPlugin

Posted: Friday 21 January 2022 18:05
by philoupat6283
Hello
Question how to set Shelly cloud plugin for a Shelly EM it is not in the list
thanks

Re: ShellyCloudPlugin

Posted: Friday 21 January 2022 18:34
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??

Re: ShellyCloudPlugin

Posted: Friday 21 January 2022 21:07
by philoupat6283

Re: ShellyCloudPlugin

Posted: Saturday 22 January 2022 17:44
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