IoT - Configuring a Shelly 2.5 module

Let’s go, boys!#

With our Shelly installed, it’s time to fit it out and configure it to meet our needs.

If your Shelly module is still in its box, here is the ost dedicated to the physical installation.

Prerequisites#

The Shelly module operates on a wifi network. We recommend installation via:

  • A dedicated access point
  • Filtering by mac address

The module is factory-configured on delivery. To interact with it, you need to install the Shelly Cloud application on your smartphone. Your smartphone must have an active data connection.

Module matching#

  • Launch the application
  • Accept or reject geolocation
  • Accept or reject notifications
  • Enter language
  • Create a user account

If you’ve forgotten your password, the application provides the means to reset it.

Once you’ve registered, you’ll be able to access the “Shelly Cloud”

Make sure you have the credentials for the target wifi access point.

Configuration can now begin.

Processus:#

  1. Add a room
  2. Save room
  3. Add a device to the room
    • search for new devices
    • enter your access point’s user & password
    • choose the type of device to integrate: Shelly 25
    • connect to shellyswitch25-xxxxxx
    • open “discovered devices
      • confirm configuration:
        • light point name
        • room selection
        • icon of connected object (here, a lamp)
      • save
      • accept or refuse control of this object via the Shelly cloud

In pictures:

Install App. Add room Save Room Add Device Scan device Add Wifi Which Device Connect to Device Device OK Open Device Discovered Device saved Conf. OK
Install App Add Room Save Room Add Device Scan Device Add Wifi Device Type Connect to Device Device OK Discovered Device Device Saved Device well Configured

The Shelly module is ready, let’s configure it!

What, it’s not finished yet?

It’s best to manage our modules via fixed IPs. The Shelly module is multi-purpose, so we need to choose its operating mode here.

Configuration#

Assign a fixed IP#

To access a module, you have to go through the room.

Open the Shelly cloud smartphone application:

  • Open the room ; Front Outdoor
  • Select the bulb, configured previously
  • Click on internet Settings
    • Wifi-Client submenu
      • check static IP
        • supply IP + MASK + Gateway + DNS
        • connect & confirm

Once the static IP has been assigned, check your smartphone’s connectivity to the local network, the shelly module has deleted its wifi access point.

Operation mode#

The shelly 2.5 will operate according to the number of channels required for the desired use.

  • Roller shutter - 2 channels used:

    • up
    • down
    • stop
  • Lighting - 1 channel per line

    • on / off
    • switch

Requirement: Shelly module, working back and forth with switch in place. We could connect two lighting lines to the same module.

Open the Shelly cloud application (smartphone):

  • Open the room: Front Outdoor
  • Select lamp
    • click on Settings
      • default auto on
        • value: restore last mode
      • button type:
        • value: pushbutton
  • Select Mode
    • value: relay

Enable Mqtt#

Activating the mqtt protocol will disable remote control via the cloud. Shelly .

To activate Mqtt, connect to the module’s embedded web application: http://xxx.xxx.xxx.xxx

  • Internet & Security
    • advanced - Developer Setting
      • check the “Enable action execution via MQTT” box
      • populate (if necessary): User + Password + Server IP
      • save
Leave the default prefix settings.

Control & playback:

  • Publisher: shellies/shellyswitch25-xxxxxx/relay/0/command
  • Souscription: shellies/shellyswitch25-xxxxxx/#

Documentation:#