Tutorial for installing/setting up Shelly?

Moderator: leecollings

Post Reply
paul402
Posts: 105
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Tutorial for installing/setting up Shelly?

Post by paul402 »

I currently use 433Mhz devices to control the window shutters but would like to change over to Shelly.
I have bought 3 x 2.5 switches and can see them on the network...
Please point me in the right direction to integrate them. And please assume that I know nothing - keep it simple.
Thanks.
User avatar
capman
Posts: 166
Joined: Friday 12 July 2013 20:48
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by capman »

Tukker
Posts: 677
Joined: Sunday 01 November 2015 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Location: Twente
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by Tukker »

The most simple setup is to create a switch in Domoticz.
Hardware -> Dummy -> create virtual sensor -> choose switch.
Then edit the switch and fill in on action and off action like
http://192.168.1.11/relay/0?turn=on
and
http://192.168.2.21/relay/0?turn=off

This should be a good starting point.
Bugs bug me.
paul402
Posts: 105
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by paul402 »

Thanks guys. @HvdW didn't you used to support the Philips NAS years ago. You did a great job. It was my first NAS. Thanks for all your work there.
dimis7
Posts: 1
Joined: Wednesday 14 February 2024 12:45
Target OS: NAS (Synology & others)
Domoticz version: 2020.1
Location: Greece
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by dimis7 »

Hi all,

New to forum here.

I'm running domoticz on my synology nas the last couple of years, currently controlling just a sonoff basic switch.

Next month I will install on my house motorized windows shutters and i want to ask if Shelly plus 2PM is good choice in order to integrate the shutters with domoticz.

I want to be able to control the shutters locally, in case something happens with my nas / domoticz installation / network etc.

If yes, with the original firmware or tasmota???

Thanks!
User avatar
waltervl
Posts: 7028
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by waltervl »

You can use Shelly with MQTT with the ShellyTeacher application which transforms default Shelly MQTT into Domoticz MQTT Autodiscover compatible format. See https://www.domoticz.com/forum/viewtopic.php?t=40998
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
paul402
Posts: 105
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by paul402 »

I found this today - Shelly Scanner
https://www.usna.it/shellyscanner/index_en.html
A really neat piece of software to manage and update Shellys.

I wish that it had an interface to Domoticz..
I still can't get Shellys running properly.
User avatar
waltervl
Posts: 7028
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by waltervl »

Did you try the shellyteacher script with Domoticz mqtt auto discover gateway? It works according a lot of users.....
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
paul402
Posts: 105
Joined: Monday 23 May 2016 23:07
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by paul402 »

Oh yes several times.
I have 15 Shelly shutters, 5 plugs and 4 flood detectors. All devices except the flood detectors are mains powered and always online. The detectors only register if you trigger them first.
All firmware is uptodate. Domoticz and Helper are uptodate.
Here is the scan result with Shelly Teacher.
shelly teacher.jpg
shelly teacher.jpg (193.28 KiB) Viewed 13299 times
Here is the scan result with Shelly Scanner


No comparison.
I am sending url commands to the Shellys and json commands to update virtual sensors and switches on Domoticz from my own python command schedule program to overcome this problem.

For me Shelly Teacher doesn't work. Anyhow there are more important things in life. The author of Shelly Scanner is not interested in developing something for Domoticz, I asked him.
Attachments
shelly capture.jpg
shelly capture.jpg (342.14 KiB) Viewed 13299 times
User avatar
waltervl
Posts: 7028
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by waltervl »

Then better ask in the Shelly teacher forum topic why your gen2 devices are not discovered... Could be an easy fix.
https://www.domoticz.com/forum/viewtopic.php?t=40998
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
BartSr
Posts: 546
Joined: Sunday 03 July 2016 16:16
Target OS: Raspberry Pi / ODroid
Domoticz version: V2024.7
Location: Netherlands
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by BartSr »

@HvdW
Thanks for the very simple example.
I bought my 1st Shelly and expected samd simple connection via MQTT just like Tasmota and Espeasy.

Is there somwhere more data about hooking up a Shelly?
Raspberry pi 3b
Arduino
KAKU
RfxCom
Zwave2MQTT
OTGW
Chinese sensors temp (Dallas),movement
Tasmota
Esp8266 / 32 espeasy
Zigbee2MQTT
User avatar
imautohuttraeger
Posts: 436
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by imautohuttraeger »

I am also struggling with automatic detection of Shelly devices. For the time being I have used the Shelly plug-in for generation 1 devices and the Shelley teacher for generation 2 devices. But for devices that are newer there is no solution currently. @waltervl once suggested to me to use mqtt mapper, but it's too complicated for me because you have to create a script for every device and know what you are doing.

So, I am as curious as you to get a user friendly solution. It is so frustrating because Shelley devices are actually speaking mqtt ...
Stop, look and listen.
User avatar
waltervl
Posts: 7028
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2026.3
Location: NL
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by waltervl »

Modern shellies Gen4 nowadays also have zigbee or Matter. They can be paired with zigbee2mqtt or the new Matter integration of Domoticz

https://www.zigbee2mqtt.io/supported-devices/#v=Shelly
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
imautohuttraeger
Posts: 436
Joined: Saturday 14 March 2020 13:40
Target OS: Raspberry Pi / ODroid
Domoticz version: latest
Location: Germany
Contact:

Re: Tutorial for installing/setting up Shelly?

Post by imautohuttraeger »

Ah - good tip!
Stop, look and listen.
Post Reply