SHELLY MOTION INTEGRATION WITH ILEVIA
INTRODUCTION
The Motion is a device from the first generation of Shelly devices. This device other than notifying that a motion is dected, can either report if a vibration is detected as well as the lux value and much more. In this guide is explained how to integrate all these information with your Ilevia server.
Web interface configurations
Step 1:
Connect to your Shelly web interface by opening a browser web, type the IP Address of the Shelly device on the URL bar then click Enter.
Enter the menu “Internet & Security“, then open the MQTT setting menu.
Check “Enable MQTT” and insert the IP address of your Ilevia server inside the “Server” text, then set the Qos to 1, finally click Save.
EVE Manager project configuration
Step 4:
1. Open EVE manager and create a new gateway, 2. set the protocol to MQTT brocker, 3. set the address parameter inserting localhost as address, 4. finally Quolity of service a “At most once“.
1. Head to the Components tab in EVE Manager, 2. Open the Basic component section within the “Components library“. 3. Add a new Color Info component within the project. Finally, make sure the component is set with the MQTT gateway created early.
The next step will be setting up the Event Topic. This component will display the value of the Motion sensor coming from the Shelly device. The topic to configure is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with your Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
Add a second Color info into the project. This component will display the value of the Tamper sensor coming from the shelly device. The topic that will be set is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with your Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
Add a new Info component into the project. This component will display the value of the ambient temperature where the device is placed in. The topic is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
Add a new info component into the project. This component will display the value of the Lux value where the device is placed in. The topic is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
Add a new Info component into the project. This component will display the Battery level. The topic is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
Add a new info component info. This component will display the value of the Luminance of the place where the device is placed in. The topic is the following: shellies/shellymotion2-<device-ID>/status, where <device-ID> must be replaced with Shelly device ID. Finally add the script to parse the payload coming from the Shelly device.
Click the following link to consult the topic and the script configuration.
INTERFACE VISUALIZATION
Here you can see some examples of how the component could look like within the Ilevia app EVE Remote Plus (Classic and Map style)