Shelly Plug integration with the MQTT protocol

How to configure Shelly Plug devices with the MQTT protocol and integrate them into the Ilevia system via Ilevia Manager.

Introduction

This guide explains how to set up the MQTT protocol on the Shelly Plug device and use it in the Ilevia system.

You can find more information about the topics we will use on the Shelly website.

Web interface configuration

Step 1:

Connect to the device hotspot,

then enter the default IP address (192.168.33.1) in the browser address bar.

Connecting to the Shelly Plug device web interface

Step 2:

Go to the “Internet & security” menu, open the “WIFI MODE-CLIENT” section and enter your Wi-Fi credentials in the corresponding text fields.

Enabling Wi-Fi mode client in the Shelly Plug-S web interface

Step 3:

Enable the MQTT protocol in the “Advanced developer settings” section,

then enter your X1 server IP address.

Enabling Internet and security settings

Step 4:

Set Quality of Service (QoS) to 2 and click Save.

Setting the Quality of Service in the web interface

Topic configuration

Step 5:

Create a new gateway in the Ilevia Manager supervision software.

Here is the guide for creating it.

How to set up the MQTT protocol within the Ilevia automation system

Step 6:

Add a Switch component and change its gateway to the

MQTT broker gateway just created.

How to set up the MQTT protocol for the component within the home automation configuration software

Step 7:

Set the topics as shown in the image below;

you can also find the topics on the Shelly website.

Click this link to view the illustrated topic configuration.

Configuration of the Switch component topics in Ilevia Manager

Step 8:

Add the components to the user interface and upload the project to the X1 server.

Adding components to the user interface

Step 9:

Download and install the MQTT fx debug software; refer to this guide that explains how to configure it.

As you can see, the topics have been set correctly.

Testing the Shelly Plug in the Ilevia Control app

Troubleshooting

1. Make sure you have the latest available version of Ilevia Manager and the X1 server firmware.

2. Make sure the Shelly device is correctly connected to your network.

3. If you cannot connect to the broker, check that your X1 has been configured correctly.

Learn more about our dedicated solution for Shelly

Get in touch with us

Last updated: