12

I have a standard wall switch connected to an input on a Shelly relay, call it A. I have a second Shelly relay (call it B) across the house that has a light connected to the relay output.

Using the Shelly Cloud software, can the switch input on A control the relay on B?

longneck
  • 221
  • 1
  • 2
  • 5

3 Answers3

5

Yes, just using the built-in local software.

Background: Shelly relays can be sent http commands to switch them on and off. This is documented at https://shelly.cloud/documents/developers/ddd_communication.pdf

First, on relay B, find the local network address of the device. This is in Settings -> Device Information, and will be something like 192.168.x.y where x and y are two numbers between 0 and 254. Make a note of these numbers.

Now, on relay A, go into Actions and find the "Button switched on URL" and "Button switched off URL" lines.

Enable these, and add a URL. It will be something like: http://192.168.x.y/relay/0/?turn=on to switch the other device on.

If you don't want relay A to change anything connected directly, you can change its button type to "Detached Switch"

jymbob
  • 151
  • 1
  • 3
0

Here's how I did it: https://youtu.be/yNspcmSY-60

I Got the Shelly IP & MAC addresses from my router's "Connected Devices" page. Then I reserved (or you can make static routes) for the Shelly's least my router changes the assigned address on restart and mess up my scripts.

My Scripts are: In Actions

http://192.168.0.(Your Address Here)/relay/0?turn=on

http://192.168.0.(Your Address Here)/relay/0?turn=off



IMPORTANT: When you start your Shelly's for the first time UPDATE THE FIRMWARE. I didn't and did some configurations on the Shelly's web-server that really looked wrong. Then after a firmware update everything got way better but I had to do a factory reset and start from scratch because my first script was still there but I couldn't find it to edit/delete it.


0

I used the following 2x Actions in my "Detached" 1Plus to control my Dimmer2 ON/OFF state remotely and it still doesn't work. I can hear the 1Plus clicking ON/OFF but the Dimmer2 output is unaffected. Any thoughts?

http://192.168.216.107/relay/0?turn=on http://192.168.216.107/relay/0?turn=off "192.168.216.107" is the address of my Dimmer2.