Shelly and the ioBroker

Shelly devices are popular because they are easy to install and use. Integrating them with ioBroker is straightforward: install the Shelly adapter.

Created: February 2021

Reviewed: September 2026

Requirement: An installed ioBroker server.

Shelly devices work with Amazon Alexa and Google Home and can also be used with Android and iOS.

Shelly devices come with factory-installed firmware, but alternative firmware can also be installed. They can work through a cloud service or on a local network without using the cloud.

Requirements

First, we need a working ioBroker server. When this article was reviewed in September 2026, the Shelly adapter required at least Node.js 22, Admin 8.0.11 and js-controller 7.2.2.

If you have not installed ioBroker yet, this guide will help you get started.

Installing the Shelly adapter

Once ioBroker is ready, open the “Adapters” page, find the Shelly adapter and click “+” to install an instance.

After installation, the settings page for the Shelly instance opens.

Configuring the Shelly adapter

On the “General Settings” tab of the Shelly adapter, choose a communication protocol. The adapter can communicate with devices through MQTT, which is recommended, or through CoAP/CoIoT. CoAP/CoIoT is compatible only with Gen1 devices. For Gen2 and newer Shelly devices, select and configure MQTT.

Selecting the protocol on the Shelly adapter General Settings tab
Select the protocol on the Shelly adapter’s “General Settings” tab.

CoAP protocol

CoAP is compatible only with Gen1 Shelly devices.

If we use Shelly with CoAP, no additional protocol configuration is needed in the adapter. If we choose MQTT instead, we must configure it both in the ioBroker Shelly adapter and on the Shelly devices. The Shelly devices and the ioBroker server need to be on the same network for the CoAP/CoIoT setup described here.

For additional security, we can assign a username and password to the Shelly devices. Enter the same credentials on the “General Settings” tab of the Shelly adapter in ioBroker.

Assigning a username and password to a Shelly device
A username and password can be assigned to the Shelly device.
Entering the Shelly device username and password in the ioBroker Shelly adapter settings
Enter the same username and password in the Shelly adapter settings in ioBroker.

Enter the ioBroker server’s IP address and port 5683 as the CoIoT server address. For example: 192.168.1.23:5683

Enabling CoIoT in the Shelly device web interface
Enable CoIoT in the Shelly device’s web interface.

CoAP/CoIoT uses multicast UDP packets, so the Shelly devices need to be on the same network as the ioBroker server.

MQTT protocol

Select MQTT on the Shelly adapter’s “General Settings” tab.

For this adapter configuration, the Shelly devices cannot connect through an existing MQTT broker. The Shelly adapter starts its own MQTT broker on port 1882 to avoid conflicts with other brokers. The standard MQTT port is 1883. Other MQTT clients, such as MQTT Explorer, cannot connect to the Shelly adapter’s internal broker.

Selecting MQTT on the Shelly adapter General Settings tab
Select MQTT on the Shelly adapter’s “General Settings” tab.

To use MQTT, enable it on the Shelly device as well. Open the device’s web interface in a browser and turn on MQTT support.

Important: do this in the Shelly device’s web interface, not in the Shelly app.

Shelly Gen1 devices

Open Internet & Security Settings / Advanced – Developer Settings. Enable MQTT and enter a username and password, the ioBroker server’s IP address and port 1882. Do not change the custom MQTT prefix. The adapter needs it to identify the Shelly device type.

MQTT settings for a Shelly Gen1 device in its web interface
MQTT settings for a Shelly Gen1 device

Shelly Gen2 and newer devices

In the Shelly device’s web interface, open Settings → MQTT. Enable MQTT, then enter a username and password, the ioBroker server’s IP address and port 1882. Do not change the custom MQTT prefix. For Gen2 and newer devices, enable all RPC options.

MQTT settings for a Shelly Gen3 device in its web interface
MQTT settings for a Shelly Gen3 device

Enter the username and password in the Shelly adapter settings as well.

Entering the MQTT username and password in the Shelly adapter settings
Enter the username and password in the Shelly adapter settings as well.

That’s it. Our Shelly devices are ready to use.


← More ioBroker articles