+39 (0)424 1660208 support@ilevia.com

SHELLY 4 PRO INTEGRATION WITH MQTT WITHIN THE ILEVIA SYSTEM

INTRODUCTION

Shelly 4 pro is a device that allow you to control the consumption of a light, four channel din that can control up to 4 separate channels.
This device has four channel din that can be mounted easily inside your electrical box.

WIRING

The wiring depends on your preferences on how many switches you want to control (up to 4 switches).
You can check the correct wiring in the shelly web site.

Web interface configurations

Step 1:

Connettiti al suo hotspot e entra nella sua interfaccia web, l’indirizzo IP predefinito è 192.168.33.1.

Clicca sulla sezione Internet and security setting dopo di che wifi mode client, seleziona la casella connect the shelly device to an existing wifi network e immetti le credenziali del tuo wifi.

Come impostare la modalità wifi client sul dispositivo shelly

Step 2:

To enable the MQTT in the shelly web interface: get to internet security settings, advanced developer settings and check the box enable action execution via MQTT.
Put your X1 server address and set the QoS to 2.

Come abilitare il protocollo MQTT all'interno della interfaccia web di shelly
Step 3:

Yuo will need the device’s id in order to set the topics.
We have a guide that show how to find this ID.

Step 4:

Next step will be the set up of the Eve manager project.
Create a new MQTT gateway, click on this guide that explane how to create a new gateway in order to proceed on this guide.
Add a switch component to the project and change the gateway in MQTT.

Come impostare i componenti all'interno del software di configurazione EVE manager

Step 5:

You can find the syntax of the topics on the api website of shelly.
If you are going to set more than one switch you must change the number of the after relay inside the topic.

By clicking this link you will be able to consult the topic configuration.

Come impostare i topic all'interno del software di configurazione EVE manager

Step 6:

Set up of the info component:
The info component will display the current wattage of a specific light.
Add the info component to your project, set the gateway to MQTT from the drop down menu.
To display the consumption value of the light, we need to subscribe to the power topic.
The topic this device is using is shellies/shelly4pro-deviceid/relay/<i>/power, the <i> stands for the channel you want to display up to 4 channels.

By clicking this link you will be able to consult the full Topic configuration.

Come impostare il componente info sul software di configurazione EVE manager
Step 7:

Seleziona l’unità di misura dal menù a discesa all’interno del componente, in questo caso andrà a mostrare i watt che la luce sta consumando.

Come cambiare la unità di misurazione sul software di configurazione EVE manager
Step 8:

Carica il progetto all’interno del X1 server e aspetta qualche secondo,
si potrà vedere che il componente info mostrerà il corretto consumo della lampada.

Valore all'interno del componente info
TROUBLE SHOOTING

1- Make sure to have the last version available for EVE manager and Eve X1 server firmware.

2- Make sure the shelly plug is connected in your network.

3- If you can’t connect to the broker check if the X1 server has been wired correctly.

Scopri molto altro riguardo alla nostra soluzione dedicata a shelly.

FAQ:

How to reset the shelly 4 pro device?

By clicking the button on the middle, click it once and then keep it hild for 10 seconds at least.