In DOMIQ we advocate for cable building automation installations, which ensures high reliability of data transmission
However, there are use cases, when making a cable installation is not (longer) possible. To face such situations we decided to add integration with Shelly devices.
1, Communication #
Shelly devices allows integration over HTTP API or using the MQTT standard. Considering the fact, that HTTP API requires constant data polling, we decided to use the MQTT which is bidirectional by default.
For the purposes of integration with Shelly, we made our own implementation of the MQTT broker. In its current form, the broker is partially compatible (not yet fully compatible) with the MQTT 3.1.1 standard. At this stage, it handles communication with QoS equal to 0 and requires the Clean Session option enabled for each connection. More information on the MQTT standard is available on the Internet.
1.2 Configuration #
The very first step is the correct configuration of Shelly modules.
1.2. Network Settings #
Shelly modules work in Access Point mode by default – so each module creates its own local WiFi. The first step is to disable Access Point mode and connect Shelly module to your local WiFi.
- Connect to a network created by a Shelly module.
- Open the web UI in the web browser (see Shelly user manual for the default IP address).
- In the Internet & Security (gen. 1 devices) or in the Networks section (gen. 2 devices) enter network settings that allow the module to connect to your local WiFi. We recommend setting a static IP address or creating IP bin- ding based on module’s MAC address (this has to be done in the router settings).
- Save settings and reopen web UI using the IP in your network.
1.3. MQTT Settings #
The next step is configuration of a MQTT server, to which the Shelly module will connect. The configuration description applies to the Shelly interface. The configuration is slightly different for Shelly 1st and 2nd generation devices, so we will describe configuration separately.
Gen. 1 Devices
- Navigate Internet & Security -> Advanced – Developer Settings.
- Check the Enable MQTT option.
- Fill the following fields of the form:
- Server – Enter the IP address of your Base module and the default MQTT port –
1883separated with colon. Example: 192.168.1.100:1883 - Enable the Use custom MQTT prefix option and in the field below enter a name of your Shelly module. The entered name must be unique in the entire installation.
- Enable the Clean Session option.
- Set the Max QoS to 0.
- Server – Enter the IP address of your Base module and the default MQTT port –
- Click the Save button to save changes. To apply changes a reboot is required (you’ll be notified about that by the Shelly intefrace).
- Shelly module is now ready to use.
Gen. 2 devices
- Navigate Networks -> Mqtt.
- Enable the Enable option.
- Fill the following fields of the form:
- Connection type: MQTT
- In the next field enter a name of your Shelly module. The entered name must be unique in the entire installation.
- Enable the RPC status notifcations over MQTT.
- In the textfield below, enter the IP address of your Base module and the default MQTT port –
1883separated with colon. Example: 192.168.1.100:1883
- Click on the Apply button to confirm the changes.
- Shelly module is now ready to use.
1.4. Additional Settings #
At this stage, the Shelly module is ready to be controlled by the DOMIQ/Base. Other settings such as input type, schedules, etc. should be configured as needed.
3. DOMIQ/Base configuration #
In DOMIQ/Base’s configurator navigate to the Settings tab and then enable MQTT and Shelly options. Next save the Settings tab and reboot the module.
After rebooting, Base is ready to control Shelly devices. Shelly modules will automatically connect to Base – no addi- tional actions are required. Parameters read from Shelly modules will automatically appear in the State tab.
4. Commands and State #
As mentioned before, there are two generations of Shelly devices. Apart from the hardware differences, they also use different integration protocol. The integration protocol used by the gen. 2 devices is unified for all modules, while the first generation of devices vary a lot in terms of parameters that can be read as well as commands that can be sent to modules. We have divided the description of the operation of modules of both generations into descriptions of individual devices.
4.1. General Guidelines #
- All the described commands and state identifiers represent a generalized syntax and contains fragments that have to be replaced with data specific for a particular Shelly module. Those fragments are enclosed in angle brackets:
<dowolna_nazwa>
Example:SHELLY.<nazwa>.relay.<0-1>=<komenda> - Relays numbering in Shelly starts at 0. So when a module has only one relay then its index is 0.
- The same rule applies to binary inputs. Binary inputs can be used to connect wall switches, motion sensors and other devices that are capable to control the input contacts.
In the Base module we implemented support for the following Shelly devices:
Generation 1:
- 1/1PM/1L
- 2/2.5
- Plug/PlugS
- Dimmer 1/2
- RGBW2 (only the White mode)
- Uni
- TRV
- Vintage
- H&T
- Smoke
- Flood
- Door/Window 1/2
- Motion
- Sense
- Button1
- I3
- Gas
- EM
- 3EM
Generation 2:
- Plus 1/1 PM
- Plus 2 PM
- Plus I4
- Pro 1/1 PM
- Pro 2/2 PM
- Pro 4 PM
4.2. Generation 1: #
4.2.1. 1/1PM/1L #
Actor module with one relay and one binary input. Shelly1PM also includes energy metering.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
| Condition | SHELLY.<nazwa>.relay.0 | 0-1 | Current relay status. |
SHELLY.<nazwa>.input.0 | 0-1 | Current state of the binary input. | |
SHELLY.<nazwa>.longpush.0 | 0-1 | Long press button information. | |
SHELLY.<nazwa>.relay.0.power (PM version only) | dowolna | Current power consumption. | |
SHELLY.<nazwa>.relay.0.energy (PM version only) | dowolna | Energy consumption [W/m]. | |
SHELLY.<nazwa>.temperature (PM version only) | dowolna | Internal device temperature | |
SHELLY.<nazwa>.overtemperature (PM version only) | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.temperature_status (PM version only) | normal/ | Device temperature status. | |
SHELLY.<nazwa>.overpower_value (PM version only) | dowolna | If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/L | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
4.2.2. 2.5 #
The module is equipped with two relays with power measurement and two binary inputs. It can operate in roller shutter mode or as two independent relays.
Roller shutter mode
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.roller.0 | up | Up. |
down | Down. | ||
stop | Stop. | ||
rc | Roller shutter calibration. | ||
0-100 | Set the roller shutter to a specific position. 100 – fully open 0 – fully closed | ||
| Condition | SHELLY.<nazwa>.roller.0 | up/down/ | Current condition of the blind. |
SHELLY.<nazwa>.roller.0.pos | 0-100 | Current roller shutter position. This option is only available after calibration. The -1 value indicates an incorrect position (no calibration). | |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Information about the state of the binary input. | |
SHELLY.<nazwa>.roller.0.power | dowolna | Current power consumption. | |
SHELLY.<nazwa>.roller.0.energy | dowolna | Energy consumption [W/m]. | |
SHELLY.<nazwa>.temperature | dowolna | Internal temperature of the device. | |
SHELLY.<nazwa>.overtemperature | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.temperature_status | normal/ | Device temperature status. | |
SHELLY.<nazwa>.voltage | dowolna | Current module voltage. | |
| Events | E.SHELLY.<nazwa>.reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/L | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
Relay mode
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.<0-1> | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
| Condition | SHELLY.<nazwa>.relay.<0-1> | 0-1 | Current relay status. |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Current state of the binary input. | |
SHELLY.<nazwa>.longpush.<0-1> | 0-1 | Long press button information. | |
SHELLY.<nazwa>.relay.<0-1>.power | dowolna | Current power consumption. | |
SHELLY.<nazwa>.relay.<0-1>.energy | dowolna | Energy consumption [W/m]. | |
SHELLY.<nazwa>.relay.<0-1>.overpower_value | dowolna | If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded. | |
SHELLY.<nazwa>.temperature | dowolna | Internal temperature of the device. | |
SHELLY.<nazwa>.overtemperature | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.temperature_status | normal/ | Device temperature status. | |
SHELLY.<nazwa>.voltage | dowolna | Current mains voltage of the module. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-1> | S/L | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
4.2.3. Plug/PlugS #
Controlled outlet with energy metering.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
| Condition | SHELLY.<nazwa>.relay.0 | 0-1 | Current relay status. |
SHELLY.<nazwa>.relay.0.power | dowolna | Current power consumption. | |
SHELLY.<nazwa>.relay.0.energy | dowolna | Energy consumption [W/m]. | |
SHELLY.<nazwa>.temperature | dowolna | Internal temperature of the device. | |
SHELLY.<nazwa>.overtemperature | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.overpower_value | dowolna | If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.4. Dimmer 1/2 #
Lighting control module with dimming option. The module is also equipped with a binary input.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.light.0 | 0-100 | Sets a specific brightness. |
on | Turn on. | ||
off | Turn off. | ||
toggle | Switch. | ||
<komenda>;ramp:<rampa> | All the above commands accept also the raml parameter. Ramp determines time of passing from curent brightness to target brightness. Maximum ramp is 5 seconds. | ||
| Condition | SHELLY.<nazwa>.light.0 | 0-100 | Dimming output value. |
SHELLY.<nazwa>.input.0 | 0-1 | Binary input state. | |
SHELLY.<nazwa>.longpush.0 | 0-1 | Long press button information. | |
SHELLY.<nazwa>.light.0.power | dowolna liczba | Current power consumption. | |
SHELLY.<nazwa>.light.0.energy | dowolna liczba | Energy consumption [W/m]. | |
SHELLY.<nazwa>.temperature | dowolna liczba | Internal device temperature | |
SHELLY.<nazwa>.overtemperature | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.overload | | Information about output overload (then value 1). | |
SHELLY.<nazwa>.loaderror | | Information about a problem with the dimmable output (then value 1). | |
SHELLY.<nazwa>.light.0.overpower_value | dowolna liczba | If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/L | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
C.SHELLY.salonsufit.light.0=100;ramp:3
Turn the light namedsalonsufiton to 100%. A fade time of 3 seconds will be used.
4.2.5. RGBW2 (only White mode) #
Four-channel LED driver (12/24V). Each channel can be controlled independently. Module is also equiped with a single binary input.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.white.<0-3> | 0-100 | Sets a specific brightness. |
| on | Turn on. | ||
off | Turn off. | ||
toggle | Switch. | ||
<komenda>;ramp:<rampa> | All the above commands accept also the raml parameter. Ramp determines time of passing from curent brightness to target brightness. Maximum ramp is 5 seconds. | ||
| Condition | SHELLY.<nazwa>.white.<0-3> | 0-100 | Dimming output value. |
SHELLY.<nazwa>.input.0 | 0-1 | Binary input state. | |
SHELLY.<nazwa>.longpush.0 | 0-1 | Long press button information. | |
SHELLY.<nazwa>.white.<0-3>.power | dowolna liczba | Current power consumption. | |
SHELLY.<nazwa>.white.<0-3>.energy | dowolna liczba | Energy consumption [W/m]. | |
SHELLY.<nazwa>.temperature | dowolna liczba | Internal device temperature | |
SHELLY.<nazwa>.overtemperature | 0-1 | Information about device overheating (then value 1). | |
SHELLY.<nazwa>.white.<0-3>.overpower | | Information about output overload (then value 1). | |
SHELLY.<nazwa>.loaderror | | Information about a problem with the dimmable output (then value 1). | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/L | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
4.2.6. Uni #
Module with two binary inputs and two potential-free outputs.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.<0-1> | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
| Condition | SHELLY.<nazwa>.relay.<0-1> | 0-1 | Output status. |
SHELLY.<nazwa>.input.<0-1> | | Binary input state. | |
| | Long press button information. | |
SHELLY.<nazwa>.adc.0 | wg zakresu przetwornika | The voltage value is measured by the built-in analog-to-digital converter. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-1> | | Information about the binary input being closed: S – short L – long Only when the input is in Momentary |
4.2.7. TRV #
Smart thermostatic radiator valve.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.thermostat.0.schedule | 0-1 | Enable/disable schedule control. |
C.SHELLY.nazwa>.thermostat.0.accelerated_heating | 0-1 | Enable/disable the accelerated heating function. | |
C.SHELLY.<nazwa>.thermostat.0.schedule_profile | 1-5 | Activate the heating schedule profile with the selected number. | |
C.SHELLY.<nazwa>.thermostat.0.target | 4-31 | Setting the desired temperature. | |
C.SHELLY.<nazwa>.thermostat.0.ext_t | dowolna | Sending the ambient temperature value measured by the external sensor to the thermostat head. | |
C.SHELLY.<nazwa>.thermostat.0.value_min_percent | 0-100 | Minimum valve opening value. | |
C.SHELLY.<nazwa>.thermostat.0.boost_minutes | 0-1440 | The time period for operating in accelerated heating mode. After this time, the heating will return to normal mode. | |
| Condition | | 0-100 | Battery charge status. |
| 4-31 | Set temperature value. | |
| 0-1 | Information about the activation of automatic radiator valve control. | |
| wg zakresu czujnika | Room temperature. | |
SHELLY.<nazwa>.thermostat.sensor.isvalid | | Information on whether the temperature sensor is working properly. | |
| | Radiator valve position. -1 means the valve is not calibrated. | |
| 0-1 | Information about schedule activation. | |
| | Information about the activated schedule number. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.8. Vintage #
Dimmable LED bulb.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.light.0 | 0-100 | Sets a specific brightness. |
| on | Turn on. | ||
off | Turn off. | ||
toggle | Switch. | ||
<komenda>;ramp:<rampa> | All of the above commands with the option to use a ramp. The ramp determines the transition time from one state to another. Maximum ramp value 5 [s]. | ||
| Condition | | 0-100 | Current brightness. |
SHELLY.<nazwa>.light.0.power | dowolna liczba | Current power consumption. | |
SHELLY.<nazwa>.light.0.energy | dowolna liczba | Energy consumption [W/m]. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.9. H&T #
Wireless air temperature and humidity sensor.
| ID | Value | Description | |
|---|---|---|---|
| Condition | | wg zakresu | Measured temperature. |
SHELLY.<nazwa>.sensor.humidity | 0-100 | Relative humidity. | |
SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. | |
SHELLY.<nazwa>.sensor.act_reasons | battery/button/periodic/poweron/sensor/alarm | Reason for sensor activation. | |
SHELLY.<nazwa>.sensor.ext_power | 0-1 | Information about connection to an external power source. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.10. Smoke #
Wireless smoke detector.
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.sensor.temperature | wg zakresu | Measured temperature. |
SHELLY.<nazwa>.sensor.smoke | 0-1 | Smoke detection status. | |
SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.11. Flood #
Wireless flood sensor.
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.sensor.temperature | wg zakresu | Measured temperature. |
SHELLY.<nazwa>.sensor.flood | 0-1 | Stan wykrycia zalania. | |
SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. | |
SHELLY.<nazwa>.sensor.act_reasons | battery/button/periodic/poweron/sensor/alarm | Reason for sensor activation. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.12. Door/Window 1/2 #
Wireless door/window opening sensor with sunlight measurement and motion detection (vibration measurement).
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.sensor.state | wg zakresu przetwornika | Window/door opening status. |
SHELLY.<nazwa>.sensor.tilt | 0-1 | Window/door opening angle. | |
SHELLY.<nazwa>.sensor.vibration | 0-1 | Information about vibration detection. | |
SHELLY.<nazwa>.sensor.act_reasons | battery/button/periodic/poweron/ | Reason for sensor activation. | |
SHELLY.<nazwa>.sensor.lux | wg zakresu przetwornika | Brightness level in lux. | |
SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. | |
SHELLY.<nazwa>.sensor.temperature | wg zakresu przetwornika | Measured temperature. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.13. Motion #
Wireless motion sensor with sunlight measurement.
| ID | Value | Description | |
|---|---|---|---|
| Condition | | | Motion detection information. |
SHELLY.<nazwa>.active | | Information about whether motion detection is activated. | |
SHELLY.<nazwa>.vibration | | Information about vibration detection. | |
SHELLY.<nazwa>.lux | wg zakresu | Brightness level in lux. | |
SHELLY.<nazwa>.battery | 0-100 | Battery charge status. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.14. Sense #
Wireless measuring device equipped with sensors: temperature, humidity, sunlight, motion detector. Additionally, it allows you to emit IR codes to any multimedia devices. IR code emission is not available via MQTT protocol integration, but is available via the Shelly application, HTTP API or device configuration interface.
| ID | Value | Description | |
|---|---|---|---|
| Condition | | | Motion detection information. |
SHELLY.<nazwa>.sensor.charger | | Information about connection to an external power source. | |
SHELLY.<nazwa>.sensor.temperature | wg zakresu | Room temperature. | |
SHELLY.<nazwa>.sensor.lux | wg zakresu | Brightness level in lux. | |
SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. | |
SHELLY.<nazwa>.sensor.humidity | 0-100 | Relative humidity [%]. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.15. Button1 #
Wireless button with 4 different press types: short, 2x short, 3x short, long. The button response time in battery mode is approximately 2s and approximately 100ms in USB power mode.
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.sensor.battery | 0-100 | Battery charge status. |
SHELLY.<nazwa>.sensor.charger | 0-1 | Information about connection to an external power source. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/SS/SSS/L | Button press information: S – short SS – 2x short SSS – 3x short L – long |
4.2.16. i3 #
Three-channel binary input module with detection of various types of button presses.
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.input.<0-2> | 0-1 | Input status. |
SHELLY.<nazwa>.temperature_status | normal/ | Device temperature status. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-2> | S/L/SS/SSS/SL/LS | Button press information: S – short SS – 2x short SSS – 3x short L – long SL – short-long sequence LS – long-short sequence |
4.2.17. Gas #
LPG or CNG gas detector.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.valve.0 | open | Open the valve. |
close | Close the valve. | ||
C.SHELLY.<nazwa>.sensor.0 | mute | Silencing the alarm. | |
unmute | Cancel alarm mute. | ||
test | Starting the detector testing procedure. | ||
| Condition | SHELLY.<nazwa>.sensor.operation | unknown/warmup/ | Detector status: unknown – Unstable state. warmup – Detector is warming up. normal – Normal detector operation. fault – Detector error. |
SHELLY.<nazwa>.sensor.gas | unknown/none/ | Detector alarm status: unknown – Unknown alarm status. none – No alarm. mild – Mild gas leak. heavy – Major gas leak. test – Status after performing a test procedure. | |
SHELLY.<nazwa>.sensor.self_test | not_completed/pending | Test procedure status: not_completed – Test procedure not completed. completed – Test procedure completed. running – Test procedure in progress. pending – Test procedure waiting to be started. | |
SHELLY.<nazwa>.sensor.concentration | 0-65535 | Gas concentration [particles/m3], -1 if error. | |
SHELLY.<nazwa>.valve.state | unknown/closed/failure/closing/opening/checking | Gas valve status: unknown – Unknown status. closed – Valve closed. opened – Valve open. not_connected – Valve not connected. failure – Valve failure detected. closing – Valve is closing. opening – Valve is opening. checking – Valve status is being checked. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.18. EM #
Dual-channel energy meter. The module is also equipped with a single low-current output.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | on | Turn on output. |
off | Turn off output. | ||
toggle | Switch output. | ||
C.SHELLY.<nazwa>.emeter.0 | reset | Reset all counter data. | |
clear_t | Deleting the consumed energy meter. | ||
clear_r | Resetting the counter of the returned item. | ||
| Condition | SHELLY.<nazwa>.emeter.0.energy | dowolna liczba | Consumed energy counter [W/min]. |
SHELLY.<nazwa>.emeter.0.returned_energy | | Energy output counter [W/min]. | |
SHELLY.<nazwa>.emeter.0.total | dowolna liczba | Total energy consumed [Wh]. | |
SHELLY.<nazwa>.emeter.0.total_returned | | Total value of energy released [Wh]. | |
SHELLY.<nazwa>.emeter.0.power | dowolna liczba | Active power [W]. | |
SHELLY.<nazwa>.emeter.0.reactive_power | dowolna liczba | Reactive power [W]. | |
SHELLY.<nazwa>.emeter.0.voltage | dowolna liczba | Voltage [V]. | |
SHELLY.<nazwa>.relay.0 | 0-1 | Output status. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.2.19. 3EM #
Three-phase electricity meter.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | on | Turn on output. |
off | Turn off output. | ||
toggle | Switch output. | ||
C.SHELLY.<nazwa>.emeter.<0-2> | reset | Reset all counter data. | |
clear_t | Deleting the consumed energy meter. | ||
clear_r | Resetting the counter of the returned item. | ||
| Condition | SHELLY.<nazwa>.emeter.<0-2>.energy | dowolna liczba | Consumed energy counter [W/min]. |
SHELLY.<nazwa>.emeter.<0-2>.returned_energy | | Energy output counter [W/min]. | |
SHELLY.<nazwa>.emeter.<0-2>.total | dowolna liczba | Total energy consumed [Wh]. | |
SHELLY.<nazwa>.emeter.<0-2>.total_returned | | Total value of energy released [Wh]. | |
SHELLY.<nazwa>.emeter.<0-2>.power | dowolna liczba | Active power [W]. | |
SHELLY.<nazwa>.emeter.<0-2>.reactive_power | dowolna liczba | Reactive power [W]. | |
SHELLY.<nazwa>.emeter.<0-2>.voltage | dowolna liczba | Voltage [V]. | |
SHELLY..emeter.<0-2>.pf | 0-1 | Power factor | |
SHELLY.<nazwa>.relay.0 | 0-1 | Output status. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
4.3. Generation 2 #
The “Plus” Series #
The Plus series consists of 2nd generation modules intended for installations in electrical boxes.
4.3.1. Plus 1/1 PM #
Actor module with one relay and one binary input. Shelly Plus 1PM also includes energy metering. Module 1 PM is additionally equipped with an energy meter.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | 0/off | Up. |
1/on | Down. | ||
toggle | Stop. | ||
on/off/ | Changes the state of a relay for a specified time interval. Examples are provided below the table. xx – command duration, can be a fractional value. | ||
| Condition | SHELLY.<nazwa>.relay.0 | | Relay status. |
SHELLY.<nazwa>.input.0 | 0-1 | Binary input state. | |
SHELLY.<nazwa>.relay.0.errors | overtemp/ | Information about module errors. | |
SHELLY.<nazwa>.relay.0.power (PM version only) | dowolna | Power consumption. | |
SHELLY.<nazwa>.relay.0.energy (PM version only) | dowolna | Energy consumption [W/m]. | |
SHELLY.<nazwa>.relay.0.temperature(PM version only) | dowolna | Internal temperature of the device. | |
SHELLY.<nazwa>.relay.0.voltage(PM version only) | | Measured voltage [V]. | |
SHELLY.<nazwa>.relay.0.current(PM version only) | | Measured current [A]. | |
SHELLY.<nazwa>.relay.0.pf(PM version only) | | Power factor | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.0 | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button | |
E.SHELLY.<nazwa>.longpush.0 | | Event for long input short circuit. Only when input is in Button |
C.SHELLY.test.relay.0=on;flip:0.1
The relay will be turned on for 100ms.C.SHELLY.test.relay.0=0;flip:2
The relay will be turned off for 2 seconds.
4.3.2. Plus 2 PM #
The module is equipped with two relays with power measurement and two binary inputs. It can operate in roller shutter mode or as two independent relays.
Roller shutter mode
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.roller.0 | up | Up. |
down | Down. | ||
stop | Stop. | ||
rc | Roller shutter calibration. | ||
0-100 | Set the roller shutter to a specific position. 100 – fully open 0 – fully closed | ||
rel:x | Change the blind’s position relative to the current position. x – change expressed in % in the range -100..100 The command uses the formula: pozycja_zadana = pozycja_aktualna +xIf the set position exceeds the range, then the maximum or minimum value is assumed. | ||
up;duration:x | Roller shutter movement up for a specified time x | ||
down;duration:x | Roller shutter down for a specified time x | ||
| Condition | SHELLY.<nazwa>.roller.0 | up/down/stop | Roller shutter movement status. |
SHELLY.<nazwa>.roller.0.pos | 0-100 | Current position. This option is only available after calibration. A value of -1 indicates an incorrect position (no calibration). | |
SHELLY.<nazwa>.roller.0.target | 0-100 | Set roller shutter position. | |
SHELLY.<nazwa>.roller.0.state | open/closed/opening/closing/stopped/calibrating | Status information: open – fully open; closed – fully closed; opening – opening in progress; closing – closing in progress; stopped – movement stopped in a position between fully open and closed; calibrating – calibration in progress; | |
SHELLY.<nazwa>.roller.0.power | dowolna liczba | Current power consumption. | |
SHELLY.<nazwa>.roller.0.energy | dowolna liczba | Energy consumption [W/h]. | |
SHELLY.<nazwa>.roller.0.temperature | dowolna liczba | Internal temperature of the device. | |
SHELLY.<nazwa>.roller.0.voltage | dowolna liczba | Measured voltage [V]. | |
SHELLY.<nazwa>.roller.0.pf | 0-1 | Power factor | |
SHELLY.<nazwa>.roller.0.current | dowolna liczba | Measured current [A]. | |
SHELLY.<nazwa>.roller.0.positioning | 0-1 | 0 – when the motor is not calibrated; 1 – when the motor is calibrated and positioning is possible; | |
SHELLY.<nazwa>.roller.0.errors | wg dokumentacji | Information about module errors. | |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Binary input state. | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.longpush.0 | | Event for long input short circuit. Only when input is in Button | |
E.SHELLY.<nazwa>.input_event.0 | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button |
Relay mode
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.<0-1> | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
on/off/ | Changes the state of a relay for a specified time interval. xx – duration of the command, can be a fractional value. Examples follow the table. | ||
| Condition | SHELLY.<nazwa>.relay.<0-1> | 0-1 | Relay status. |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Binary input state. | |
SHELLY.<nazwa>.relay.<0-1>.errors | overtemp/overpower/ | Information about module errors. | |
SHELLY.<nazwa>.relay.<0-1>.power | dowolna liczba | Power consumption. | |
SHELLY.<nazwa>.relay.<0-1>.energy | dowolna liczba | Energy consumption [W/h]. | |
SHELLY.<nazwa>.relay.<0-1>.temperature | dowolna liczba | Internal temperature of the device. | |
SHELLY.<nazwa>.relay.<0-1>.voltage | dowolna liczba | Measured voltage [V]. | |
SHELLY.<nazwa>.relay.<0-1>.current | dowolna liczba | Measured current [A]. | |
SHELLY.<nazwa>.relay.<0-1>.pf | 0-1 | Power factor | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-1> | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button | |
E.SHELLY.<nazwa>.longpush.0 | 0-1 | Event for long input short circuit. Only when input is in Button |
C.SHELLY.test.relay.0=on;flip:0.1
The relay will be turned on for 100ms.C.SHELLY.test.relay.0=0;flip:2
The relay will be turned off for 2 seconds.
4.3.3. l4 #
Four binary input module.
| ID | Value | Description | |
|---|---|---|---|
| Condition | SHELLY.<nazwa>.input.<0-3> | 0-1 | Binary input state. |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-3> | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button | |
E.SHELLY.<nazwa>.longpush.<0-3> | 0-1 | Event for long input short circuit. Only when input is in Button |
“Pro” Module Series #
The Pro series modules are designed for installation in distribution cabinets. They are equipped with WiFi wireless connectivity and an Ethernet connector.
4.3.4. Pro 1/Pro 1PM #
Distribution module equipped with one relay and two binary inputs. The PM version is also equipped with an electricity meter.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.0 | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
on/off/ | Changes the state of a relay for a specified time interval. Examples are provided below the table. xx – duration of the command, can be a fractional value. | ||
| Condition | SHELLY.<nazwa>.relay.0 | 0-1 | Relay status. |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Binary input state. | |
SHELLY.<nazwa>.relay.0.errors | overtemp/overpower/ | Information about module errors. | |
SHELLY.<nazwa>.relay.0.power(PM version only) | dowolna liczba | Power consumption. | |
SHELLY.<nazwa>.relay.0.energy(PM version only) | dowolna liczba | Energy consumption [W/h]. | |
SHELLY.<nazwa>.relay.0.temperature(PM version only) | dowolna liczba | Internal temperature of the device. | |
SHELLY.<nazwa>.relay.0.voltage(PM version only) | dowolna liczba | Measured voltage [V]. | |
SHELLY.<nazwa>.relay.0.current(PM version only) | dowolna liczba | Measured current [A]. | |
SHELLY.<nazwa>.relay.0.pf(PM version only) | 0-1 | Power factor | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-1> | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button | |
E.SHELLY.<nazwa>.longpush.<0-1> | 0-1 | Event for long input short circuit. Only when input is in Button |
C.SHELLY.test.relay.0=on;flip:0.1
The relay will be turned on for 100ms.C.SHELLY.test.relay.0=0;flip:2
The relay will be turned off for 2 seconds.
4.3.5. Pro 2 #
Distribution module equipped with two relays and two binary inputs.
| ID | Value | Description | |
|---|---|---|---|
| Command | C.SHELLY.<nazwa>.relay.<0-1> | 0/off | Turn off. |
1/on | Turn on. | ||
toggle | Switch. | ||
on/off/ | Changes the state of a relay for a specified time interval. Examples are provided below the table. xx – duration of the command, can be a fractional value. | ||
| Condition | SHELLY.<nazwa>.relay.<0-1> | 0-1 | Relay status. |
SHELLY.<nazwa>.input.<0-1> | 0-1 | Binary input state. | |
SHELLY.<nazwa>.relay.<0-1>.errors | overtemp/overpower/ | Information about module errors. | |
SHELLY.<nazwa>.relay.<0-1>.power(PM version only) | dowolna liczba | Power consumption. | |
SHELLY.<nazwa>.relay.<0-1>.energy(PM version only) | dowolna liczba | Energy consumption [W/h]. | |
SHELLY.<nazwa>.relay.<0-1>.temperature(PM version only) | dowolna liczba | Internal temperature of the device. | |
SHELLY.<nazwa>.relay.<0-1>.voltage(PM version only) | dowolna liczba | Measured voltage [V]. | |
SHELLY.<nazwa>.relay.<0-1>.current(PM version only) | dowolna liczba | Measured current [A]. | |
SHELLY.<nazwa>.relay.<0-1>.pf(PM version only) | 0-1 | Power factor | |
| Events | E.SHELLY.<nazwa>.<reszta_identyfikatora> | Patrz Stan | The Base module broadcasts events for changes to all parameters from the Status section. |
E.SHELLY.<nazwa>.input_event.<0-1> | S/SS/L | Binary input short circuit information: S – short SS – 2x short L – long Only when the input is in Button | |
E.SHELLY.<nazwa>.longpush.<0-1> | 0-1 | Event for long input short circuit. Only when input is in Button |
4.3.6. Pro 2 PM #
Din-mounted module with two relays with energy metering and two binary inputs. Module can operate in two distinct modes: Relay and Roller Shutter.
Commands, state parameters and events are identical as for Plus 2 PM module.
4.3.7. Pro 4 PM #
Din-mounted module with four relays with energy metering and four binary inputs. Each relay also has an electricity meter.
Commands, state parameters and events are identical as for Plus 1/1 PM module, with the difference that the numbering range of relays and inputs is from 0-3.