View Categories

Integration with Shelly

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.

  1. Connect to a network created by a Shelly module.
  2. Open the web UI in the web browser (see Shelly user manual for the default IP address).
  3. 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).
  4. 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

  1. Navigate Internet & Security -> Advanced – Developer Settings.
  2. Check the Enable MQTT option.
  3. Fill the following fields of the form:
    • Server – Enter the IP address of your Base module and the default MQTT port – 1883 separated 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.
  4. Click the Save button to save changes. To apply changes a reboot is required (you’ll be notified about that by the Shelly intefrace).
  5. Shelly module is now ready to use.

Gen. 2 devices

  1. Navigate Networks -> Mqtt.
  2. Enable the Enable option.
  3. 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 – 1883 separated with colon. Example: 192.168.1.100:1883
  4. Click on the Apply button to confirm the changes.
  5. 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. 1/1PM/1L
  2. 2/2.5
  3. Plug/PlugS
  4. Dimmer 1/2
  5. RGBW2 (only the White mode)
  6. Uni
  7. TRV
  8. Vintage
  9. H&T
  10. Smoke
  11. Flood
  12. Door/Window 1/2
  13. Motion
  14. Sense
  15. Button1
  16. I3
  17. Gas
  18. EM
  19. 3EM

Generation 2:

  1. Plus 1/1 PM
  2. Plus 2 PM
  3. Plus I4
  4. Pro 1/1 PM
  5. Pro 2/2 PM
  6. 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.00/offTurn off.
1/onTurn on.
toggleSwitch.
ConditionSHELLY.<nazwa>.relay.00-1Current relay status.
SHELLY.<nazwa>.input.00-1Current state of the binary input.
SHELLY.<nazwa>.longpush.00-1Long press button information.
SHELLY.<nazwa>.relay.0.power
(PM version only)
dowolna
liczba
Current power consumption.
SHELLY.<nazwa>.relay.0.energy
(PM version only)
dowolna
liczba
Energy consumption [W/m].
SHELLY.<nazwa>.temperature
(PM version only)
dowolna
liczba
Internal device temperature
SHELLY.<nazwa>.overtemperature
(PM version only)
0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.temperature_status
(PM version only)
normal/
high/
veryhigh
Device temperature status.
SHELLY.<nazwa>.overpower_value
(PM version only)
dowolna
liczba
If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/LInformation 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

IDValueDescription
CommandC.SHELLY.<nazwa>.roller.0upUp.
downDown.
stopStop.
rcRoller shutter calibration.
0-100Set the roller shutter to a specific position.
100 – fully open
0 – fully closed
ConditionSHELLY.<nazwa>.roller.0up/down/
stop
Current condition of the blind.
SHELLY.<nazwa>.roller.0.pos0-100Current 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-1Information about the state of the binary input.
SHELLY.<nazwa>.roller.0.powerdowolna
liczba
Current power consumption.
SHELLY.<nazwa>.roller.0.energydowolna
liczba
Energy consumption [W/m].
SHELLY.<nazwa>.temperaturedowolna
liczba
Internal temperature of the device.
SHELLY.<nazwa>.overtemperature0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.temperature_statusnormal/
high/
veryhigh
Device temperature status.
SHELLY.<nazwa>.voltagedowolna
liczba
Current module voltage.
EventsE.SHELLY.<nazwa>.reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/LInformation about the binary input being closed:
S – short
L – long
Only when the input is in Momentary

Relay mode

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.<0-1>0/offTurn off.
1/onTurn on.
toggleSwitch.
ConditionSHELLY.<nazwa>.relay.<0-1>0-1Current relay status.
SHELLY.<nazwa>.input.<0-1>0-1Current state of the binary input.
SHELLY.<nazwa>.longpush.<0-1>0-1Long press button information.
SHELLY.<nazwa>.relay.<0-1>.power dowolna
liczba
Current power consumption.
SHELLY.<nazwa>.relay.<0-1>.energy dowolna
liczba
Energy consumption [W/m].
SHELLY.<nazwa>.relay.<0-1>.overpower_valuedowolna
liczba
If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded.
SHELLY.<nazwa>.temperaturedowolna
liczba
Internal temperature of the device.
SHELLY.<nazwa>.overtemperature 0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.temperature_statusnormal/
high/
veryhigh
Device temperature status.
SHELLY.<nazwa>.voltagedowolna
liczba
Current mains voltage of the module.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-1>S/LInformation 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.00/offTurn off.
1/onTurn on.
toggleSwitch.
ConditionSHELLY.<nazwa>.relay.00-1Current relay status.
SHELLY.<nazwa>.relay.0.power dowolna
liczba
Current power consumption.
SHELLY.<nazwa>.relay.0.energydowolna
liczba
Energy consumption [W/m].
SHELLY.<nazwa>.temperature dowolna
liczba
Internal temperature of the device.
SHELLY.<nazwa>.overtemperature 0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.overpower_valuedowolna
liczba
If there is a relay overload, this parameter contains information about how many watts the limit has been exceeded.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.light.00-100Sets a specific brightness.
onTurn on.
offTurn off.
toggleSwitch.
<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.
ConditionSHELLY.<nazwa>.light.00-100Dimming output value.
SHELLY.<nazwa>.input.00-1Binary input state.
SHELLY.<nazwa>.longpush.00-1Long press button information.
SHELLY.<nazwa>.light.0.power dowolna liczbaCurrent power consumption.
SHELLY.<nazwa>.light.0.energy dowolna liczbaEnergy consumption [W/m].
SHELLY.<nazwa>.temperaturedowolna liczbaInternal device temperature
SHELLY.<nazwa>.overtemperature 0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.overload0-1Information about output overload (then value 1).
SHELLY.<nazwa>.loaderror0-1Information about a problem with the dimmable output (then value 1).
SHELLY.<nazwa>.light.0.overpower_valuedowolna liczbaIf there is a relay overload, this parameter contains information about how many watts the limit has been exceeded.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/LInformation 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 named salonsufit on 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.white.<0-3>0-100Sets a specific brightness.
onTurn on.
offTurn off.
toggleSwitch.
<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.
ConditionSHELLY.<nazwa>.white.<0-3>0-100Dimming output value.
SHELLY.<nazwa>.input.00-1Binary input state.
SHELLY.<nazwa>.longpush.00-1Long press button information.
SHELLY.<nazwa>.white.<0-3>.power dowolna liczbaCurrent power consumption.
SHELLY.<nazwa>.white.<0-3>.energydowolna liczbaEnergy consumption [W/m].
SHELLY.<nazwa>.temperaturedowolna liczbaInternal device temperature
SHELLY.<nazwa>.overtemperature 0-1Information about device overheating (then value 1).
SHELLY.<nazwa>.white.<0-3>.overpower0-1Information about output overload (then value 1).
SHELLY.<nazwa>.loaderror0-1Information about a problem with the dimmable output (then value 1).
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/LInformation 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.<0-1>0/offTurn off.
1/onTurn on.
toggleSwitch.
ConditionSHELLY.<nazwa>.relay.<0-1>0-1Output status.
SHELLY.<nazwa>.input.<0-1> 0-1Binary input state.
SHELLY.<nazwa>.longpush.<0-1>0-1Long press button information.
SHELLY.<nazwa>.adc.0 wg zakresu przetwornikaThe voltage value is measured by the built-in analog-to-digital converter.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-1>S/LInformation 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.thermostat.0.schedule0-1Enable/disable schedule control.
C.SHELLY.nazwa>.thermostat.0.accelerated_heating0-1Enable/disable the accelerated heating function.
C.SHELLY.<nazwa>.thermostat.0.schedule_profile1-5Activate the heating schedule profile with the selected number.
C.SHELLY.<nazwa>.thermostat.0.target4-31Setting the desired temperature.
C.SHELLY.<nazwa>.thermostat.0.ext_tdowolnaSending the ambient temperature value measured by the external sensor to the thermostat head.
C.SHELLY.<nazwa>.thermostat.0.value_min_percent0-100Minimum valve opening value.
C.SHELLY.<nazwa>.thermostat.0.boost_minutes0-1440The time period for operating in accelerated heating mode. After this time, the heating will return to normal mode.
ConditionSHELLY.<nazwa>.thermostat.battery0-100Battery charge status.
SHELLY.<nazwa>.thermostat.target4-31Set temperature value.
SHELLY.<nazwa>.thermostat.enabled0-1Information about the activation of automatic radiator valve control.
SHELLY.<nazwa>.thermostat.sensorwg zakresu czujnikaRoom temperature.
SHELLY.<nazwa>.thermostat.sensor.isvalid0-1Information on whether the temperature sensor is working properly.
SHELLY.<nazwa>.thermostat.pos0-100Radiator valve position. -1 means the valve is not calibrated.
SHELLY.<nazwa>.thermostat.schedule0-1Information about schedule activation.
SHELLY.<nazwa>.thermostat.profile1-5Information about the activated schedule number.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.8. Vintage #

Dimmable LED bulb.

IDValueDescription
CommandC.SHELLY.<nazwa>.light.00-100Sets a specific brightness.
onTurn on.
offTurn off.
toggleSwitch.
<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].
ConditionSHELLY.<nazwa>.light.00-100Current brightness.
SHELLY.<nazwa>.light.0.powerdowolna liczbaCurrent power consumption.
SHELLY.<nazwa>.light.0.energydowolna liczbaEnergy consumption [W/m].
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.9. H&T #

Wireless air temperature and humidity sensor.

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.temperaturewg zakresu
przetwornika
Measured temperature.
SHELLY.<nazwa>.sensor.humidity0-100Relative humidity.
SHELLY.<nazwa>.sensor.battery0-100Battery charge status.
SHELLY.<nazwa>.sensor.act_reasonsbattery/button/periodic/
poweron/sensor/alarm
Reason for sensor activation.
SHELLY.<nazwa>.sensor.ext_power0-1Information about connection to an external power source.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.10. Smoke #

Wireless smoke detector.

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.temperaturewg zakresu
przetwornika
Measured temperature.
SHELLY.<nazwa>.sensor.smoke0-1Smoke detection status.
SHELLY.<nazwa>.sensor.battery0-100Battery charge status.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.11. Flood #

Wireless flood sensor.

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.temperaturewg zakresu
przetwornika
Measured temperature.
SHELLY.<nazwa>.sensor.flood0-1Stan wykrycia zalania.
SHELLY.<nazwa>.sensor.battery0-100Battery charge status.
SHELLY.<nazwa>.sensor.act_reasonsbattery/button/periodic/
poweron/sensor/alarm
Reason for sensor activation.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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).

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.statewg zakresu przetwornikaWindow/door opening status.
SHELLY.<nazwa>.sensor.tilt0-1Window/door opening angle.
SHELLY.<nazwa>.sensor.vibration0-1Information about vibration detection.
SHELLY.<nazwa>.sensor.act_reasonsbattery/button/periodic/poweron/
sensor/movement/temperature/light
Reason for sensor activation.
SHELLY.<nazwa>.sensor.luxwg zakresu przetwornikaBrightness level in lux.
SHELLY.<nazwa>.sensor.battery0-100Battery charge status.
SHELLY.<nazwa>.sensor.temperaturewg zakresu przetwornikaMeasured temperature.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.13. Motion #

Wireless motion sensor with sunlight measurement.

IDValueDescription
ConditionSHELLY.<nazwa>.motion0-1Motion detection information.
SHELLY.<nazwa>.active0-1Information about whether motion detection is activated.
SHELLY.<nazwa>.vibration0-1Information about vibration detection.
SHELLY.<nazwa>.luxwg zakresu
przetwornika
Brightness level in lux.
SHELLY.<nazwa>.battery0-100Battery charge status.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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.

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.motion0-1Motion detection information.
SHELLY.<nazwa>.sensor.charger0-1Information about connection to an external power source.
SHELLY.<nazwa>.sensor.temperaturewg zakresu
przetwornika
Room temperature.
SHELLY.<nazwa>.sensor.luxwg zakresu
przetwornika
Brightness level in lux.
SHELLY.<nazwa>.sensor.battery0-100Battery charge status.
SHELLY.<nazwa>.sensor.humidity0-100Relative humidity [%].
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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.

IDValueDescription
ConditionSHELLY.<nazwa>.sensor.battery0-100Battery charge status.
SHELLY.<nazwa>.sensor.charger0-1Information about connection to an external power source.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/SS/SSS/LButton 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.

IDValueDescription
ConditionSHELLY.<nazwa>.input.<0-2>0-1Input status.
SHELLY.<nazwa>.temperature_statusnormal/
high/
veryhigh
Device temperature status.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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/LSButton 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.valve.0openOpen the valve.
closeClose the valve.
C.SHELLY.<nazwa>.sensor.0muteSilencing the alarm.
unmuteCancel alarm mute.
testStarting the detector testing procedure.
ConditionSHELLY.<nazwa>.sensor.operationunknown/warmup/
normal/fault
Detector status:
unknown – Unstable state.
warmup – Detector is warming up.
normal – Normal detector operation.
fault – Detector error.
SHELLY.<nazwa>.sensor.gasunknown/none/
mild/heavy/test
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_testnot_completed/
completed/running/

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.concentration0-65535Gas concentration [particles/m3], -1 if error.
SHELLY.<nazwa>.valve.stateunknown/closed/
opened/not_connected/

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.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.0onTurn on output.
offTurn off output.
toggleSwitch output.
C.SHELLY.<nazwa>.emeter.0resetReset all counter data.
clear_tDeleting the consumed energy meter.
clear_rResetting the counter of the returned item.
ConditionSHELLY.<nazwa>.emeter.0.energydowolna liczbaConsumed energy counter [W/min].
SHELLY.<nazwa>.emeter.0.returned_energydowolna liczbaEnergy output counter [W/min].
SHELLY.<nazwa>.emeter.0.totaldowolna liczbaTotal energy consumed [Wh].
SHELLY.<nazwa>.emeter.0.total_returneddowolna liczbaTotal value of energy released [Wh].
SHELLY.<nazwa>.emeter.0.powerdowolna liczbaActive power [W].
SHELLY.<nazwa>.emeter.0.reactive_powerdowolna liczbaReactive power [W].
SHELLY.<nazwa>.emeter.0.voltagedowolna liczbaVoltage [V].
SHELLY.<nazwa>.relay.00-1Output status.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.

4.2.19. 3EM #

Three-phase electricity meter.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.0onTurn on output.
offTurn off output.
toggleSwitch output.
C.SHELLY.<nazwa>.emeter.<0-2>resetReset all counter data.
clear_tDeleting the consumed energy meter.
clear_rResetting the counter of the returned item.
ConditionSHELLY.<nazwa>.emeter.<0-2>.energydowolna liczbaConsumed energy counter [W/min].
SHELLY.<nazwa>.emeter.<0-2>.returned_energydowolna liczbaEnergy output counter [W/min].
SHELLY.<nazwa>.emeter.<0-2>.totaldowolna liczbaTotal energy consumed [Wh].
SHELLY.<nazwa>.emeter.<0-2>.total_returneddowolna liczbaTotal value of energy released [Wh].
SHELLY.<nazwa>.emeter.<0-2>.powerdowolna liczbaActive power [W].
SHELLY.<nazwa>.emeter.<0-2>.reactive_powerdowolna liczbaReactive power [W].
SHELLY.<nazwa>.emeter.<0-2>.voltagedowolna liczbaVoltage [V].
SHELLY..emeter.<0-2>.pf0-1Power factor
SHELLY.<nazwa>.relay.00-1Output status.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.00/offUp.
1/onDown.
toggleStop.
on/off/
1/0;flip:xx
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.
ConditionSHELLY.<nazwa>.relay.00-1Relay status.
SHELLY.<nazwa>.input.00-1Binary input state.
SHELLY.<nazwa>.relay.0.errorsovertemp/
overpower/
overvoltage
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/m].
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-1Power factor
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.0S/SS/LBinary input short circuit information:
S – short
SS – 2x short
L – long
Only when the input is in Button
E.SHELLY.<nazwa>.longpush.00-1Event 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

IDValueDescription
CommandC.SHELLY.<nazwa>.roller.0upUp.
downDown.
stopStop.
rcRoller shutter calibration.
0-100Set the roller shutter to a specific position.
100 – fully open
0 – fully closed
rel:xChange 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 +x
If the set position exceeds the range, then
the maximum or minimum value is assumed.
up;duration:xRoller shutter movement up for a specified time x
down;duration:xRoller shutter down for a specified time x
ConditionSHELLY.<nazwa>.roller.0up/down/stopRoller shutter movement status.
SHELLY.<nazwa>.roller.0.pos0-100Current position. This option is only available after calibration. A value of -1 indicates an incorrect position (no calibration).
SHELLY.<nazwa>.roller.0.target0-100Set roller shutter position.
SHELLY.<nazwa>.roller.0.stateopen/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.powerdowolna liczbaCurrent power consumption.
SHELLY.<nazwa>.roller.0.energydowolna liczbaEnergy consumption [W/h].
SHELLY.<nazwa>.roller.0.temperaturedowolna liczbaInternal temperature of the device.
SHELLY.<nazwa>.roller.0.voltagedowolna liczbaMeasured voltage [V].
SHELLY.<nazwa>.roller.0.pf0-1Power factor
SHELLY.<nazwa>.roller.0.currentdowolna liczbaMeasured current [A].
SHELLY.<nazwa>.roller.0.positioning0-10 – when the motor is not calibrated; 1 – when the motor is calibrated and positioning is possible;
SHELLY.<nazwa>.roller.0.errorswg dokumentacji
urządzenia
Information about module errors.
SHELLY.<nazwa>.input.<0-1>0-1Binary input state.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.longpush.00-1Event for long input short circuit. Only when input is in Button
E.SHELLY.<nazwa>.input_event.0S/SS/LBinary input short circuit information:
S – short
SS – 2x short
L – long
Only when the input is in Button

Relay mode

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.<0-1>0/offTurn off.
1/onTurn on.
toggleSwitch.
on/off/
1/0;flip:xx
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.
ConditionSHELLY.<nazwa>.relay.<0-1>0-1Relay status.
SHELLY.<nazwa>.input.<0-1>0-1Binary input state.
SHELLY.<nazwa>.relay.<0-1>.errorsovertemp/overpower/
overvoltage
Information about module errors.
SHELLY.<nazwa>.relay.<0-1>.powerdowolna liczbaPower consumption.
SHELLY.<nazwa>.relay.<0-1>.energydowolna liczbaEnergy consumption [W/h].
SHELLY.<nazwa>.relay.<0-1>.temperaturedowolna liczbaInternal temperature of the device.
SHELLY.<nazwa>.relay.<0-1>.voltagedowolna liczbaMeasured voltage [V].
SHELLY.<nazwa>.relay.<0-1>.currentdowolna liczbaMeasured current [A].
SHELLY.<nazwa>.relay.<0-1>.pf0-1Power factor
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-1>S/SS/LBinary input short circuit information:
S – short
SS – 2x short
L – long
Only when the input is in Button
E.SHELLY.<nazwa>.longpush.00-1Event 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.

IDValueDescription
ConditionSHELLY.<nazwa>.input.<0-3>0-1Binary input state.
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-3>S/SS/LBinary 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-1Event 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.00/offTurn off.
1/onTurn on.
toggleSwitch.
on/off/
1/0;flip:xx
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.
ConditionSHELLY.<nazwa>.relay.00-1Relay status.
SHELLY.<nazwa>.input.<0-1>0-1Binary input state.
SHELLY.<nazwa>.relay.0.errorsovertemp/overpower/
overvoltage
Information about module errors.
SHELLY.<nazwa>.relay.0.power
(PM version only)
dowolna liczbaPower consumption.
SHELLY.<nazwa>.relay.0.energy
(PM version only)
dowolna liczbaEnergy consumption [W/h].
SHELLY.<nazwa>.relay.0.temperature
(PM version only)
dowolna liczbaInternal temperature of the device.
SHELLY.<nazwa>.relay.0.voltage
(PM version only)
dowolna liczbaMeasured voltage [V].
SHELLY.<nazwa>.relay.0.current
(PM version only)
dowolna liczbaMeasured current [A].
SHELLY.<nazwa>.relay.0.pf
(PM version only)
0-1Power factor
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-1>S/SS/LBinary 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-1Event 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.

IDValueDescription
CommandC.SHELLY.<nazwa>.relay.<0-1>0/offTurn off.
1/onTurn on.
toggleSwitch.
on/off/
1/0;flip:xx
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.
ConditionSHELLY.<nazwa>.relay.<0-1>0-1Relay status.
SHELLY.<nazwa>.input.<0-1>0-1Binary input state.
SHELLY.<nazwa>.relay.<0-1>.errorsovertemp/overpower/
overvoltage
Information about module errors.
SHELLY.<nazwa>.relay.<0-1>.power
(PM version only)
dowolna liczbaPower consumption.
SHELLY.<nazwa>.relay.<0-1>.energy
(PM version only)
dowolna liczbaEnergy consumption [W/h].
SHELLY.<nazwa>.relay.<0-1>.temperature
(PM version only)
dowolna liczbaInternal temperature of the device.
SHELLY.<nazwa>.relay.<0-1>.voltage
(PM version only)
dowolna liczbaMeasured voltage [V].
SHELLY.<nazwa>.relay.<0-1>.current
(PM version only)
dowolna liczbaMeasured current [A].
SHELLY.<nazwa>.relay.<0-1>.pf
(PM version only)
0-1Power factor
EventsE.SHELLY.<nazwa>.<reszta_identyfikatora>Patrz StanThe Base module broadcasts events for changes to all parameters from the Status section.
E.SHELLY.<nazwa>.input_event.<0-1>S/SS/LBinary 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-1Event 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.

Powered by BetterDocs