Shelly to Shelly Standalone without Wi-fi (but with Wi-fi)

Shelly to Shelly Standalone without Wi-fi (but with Wi-fi)

Introduction:

Even though you are in an area with missing Wi-Fi coverage, it’s actually possible to make two or more Shelly devices integrate with each other based on Actions (Webhooks) and the range extender function.
In this example, we will use two Shelly Plus 1PM units.
The one with the Range Extender enabled we call the Master.
The other one we call the Slave

Note:

Since we are using the device’s without a internet connection, it’s not possible to use the Schedule function.

Step 1: Update the Firmware

It’s always a good idea to update the firmware to the latest version.
To do that, we need the devices to be connected to a Wi-Fi network with an internet connection.
Perform this step for all the devices.

1.
Log in to the device’s access point and enter its web interface by typing 192.168.33.1 in a browser.

 

2.
Go to Settings -> Wi-fi and Enable Wi-fi 1.
Choose a Wi-fi network with internet connection and enter the password.
Save settings.

3.
When it’s connected to the network.
Go to Settings -> Firmware and search for and update to latest stable.

Step 2: Setup Master. AP password and enable Range Extender

1.
Log in to the Wi-Fi network of the master device and access its web interface using the address 192.168.33.1
Go to Settings -> Access Point and set a Password.
Save settings.

2.
Go to Settings -> Range extender and enable range extender.
Save settings and reboot when asked for it.


Step 3: Setup Slave. AP password and connect to the Master

1.
Log in to the Wi-Fi network of the slave device and access its web interface using the address 192.168.33.1
Go to Settings -> Access Point and set a Password.
Save settings.


2.
Go to Settings -> Wi-fi and Enable Wi-fi 1.
Choose the Master Wi-fi network and type password.
Save settings.

3. NOTE!
When a Shelly device connects to another Shelly’s access point, it will no longer be accessible from 192.168.33.1 when you are connected directly to it. Instead, you have to use 192.168.34.1

Step 4: View devices connected to the range extender

1.
Log in to the Wi-Fi network of the Master device and access its web interface using the address 192.168.33.1

2.
Go to Settings – Range extender.

3.
Find the ip adresse of the slave. 

Explanation

As You can se there are now two joined devices.
But we only joined one device?

For som reason, when enableing range extender on a device it shows itself as joind.
Look for the MAC adress to find wich one is the slave device.
You should then be able to copy the internal IP address and paste it into a new browser window to access the slave’s web interface while you are connected to the master.

From this info we now know wihch ip’s we should use for the Actions/webhook commands.
Master = 192.168.33.1
Slave = 192.168.33.3

Step 5: Example of multiway switching with actions

There is a lot of different ways You can control the light.
In the following example il’l show how simpel it is to do a multiway switching between 2 Shelly’s.
This way both shelly’s wil allways follow each others output status. 
Note: If using a switch it needs to be  replaced with a button or the switch should be converted to button with a spring.

1. Both Master and Slave needs to be set to Button-momentary input mode

Go to Home -> Input -> Settings -> Input/Output settings.

 

  • Set Input mode to Button
  • Set Output type to Momentary Switch


2. Create actions on Master device

Go to Actions -> New Action – Select Output – Create action.

Create two actions.
When it’s ON then Turn Slave ON
When it’s OFF then Turn Slave OFF

Click here to view all the HTTP commands

Turn Slave ON, when output of master is ON

  • Give it a Name.
  • Execute when: Select “Switch toggled on”
  • Then do: click on “+ Add URL” and add the http command for turning on the slave device.
    http://192.168.33.3/relay/0?turn=on

Turn Slave OFF, when output of master is OFF

  • Give it a Name.
  • Execute when: Select “Switch toggled off”
  • Then do: click on “+ Add URL” and add the http command for turning on the slave device.
    http://192.168.33.3/relay/0?turn=off



3. Create actions on Slave device

Go to Actions -> New Action – Select Output – Create action.

Create two actions.
When it’s ON then Turn Master ON
When it’s OFF then Turn Master OFF

Click here to view all the HTTP commands

Turn Master ON, when output of Slave is ON

  • Give it a Name.
  • Execute when: Select “Switch toggled on”
  • Then do: click on “+ Add URL” and add the http command for turning on the Master device.
    http://192.168.33.1/relay/0?turn=on

Turn Master OFF, when output of Slave is OFF

  • Give it a Name.
  • Execute when: Select “Switch toggled off”
  • Then do: click on “+ Add URL” and add the http command for turning on the Master device.
    http://192.168.33.1/relay/0?turn=off

Step 6: You are done

It was that easy!