Skip to content

Shelly Binding ​

This Binding integrates Shelly devices developed by Allterco.

Allterco provides a rich set of smart home devices. All of them are WiFi enabled (2,4GHz, IPv4 only) and provide a documented API. The binding is officially acknowledged by Allterco and openHAB is listed as a reference and directly supports the openHAB community.

The binding controls the devices independently from the Allterco Shelly Cloud (in fact it can be disabled). The binding co-exists with Shelly App for Smartphones, Shelly Device Web UI, Shelly Cloud, MQTT and other 3rd party Apps.

The binding focuses on reporting the device status and device control. Initial setup and device configuration has to be performed using the Shelly Apps (Web UI or Smartphone App). The binding gets in sync with the next status refresh.

If you're upgrading, check the channel migration and deprecated-channel notes in the Channels section below.

Refer to Advanced Users for more information on openHAB Shelly integration, e.g. firmware update, network communication or log filtering.

Also check out the Shelly Manager, which

  • provides detailed information on your Shellys
  • helps to diagnose WiFi issues or device instabilities
  • includes some statistical data and common actions
  • simplifies firmware updates

Shelly Manager could also act as a firmware upgrade proxy - the device doesn't need to connect directly to the Internet, instead openHAB services as a download proxy, which improves device security.

Supported Devices ​

The binding supports both hardware generations

  • Generation 1: The original Shelly devices like the Shelly 1, Shelly 2.5, Shelly Flood etc.
  • Generation 2+3+4: Plus / Pro series of devices
  • Shelly Plus Mini: Shelly Plus devices in compact format (Gen 2+3+4)
  • Shelly BLU: Bluetooth based series of devices

The binding provides the same feature set across all devices as good as possible and depending on device specific features.

Note: Using BLU devices or the Plus/Pro Range Extender mode require some additional configuration steps. See section Discovery for details.

Generation 1 ​

thing-typeModelVendor ID
shelly1Shelly 1 Single Relay SwitchSHSW-1
shelly1lShelly 1L Single Relay SwitchSHSW-L
shelly1pmShelly Single Relay Switch with integrated Power MeterSHSW-PM
shelly2-relayShelly Double Relay Switch in relay modeSHSW-21
shelly2-rollerShelly2 in Roller ModeSHSW-21
shelly25-relayShelly 2.5 in Relay SwitchSHSW-25
shelly25-rollerShelly 2.5 in Roller ModeSHSW-25
shelly4proShelly 4x Relay SwitchSHSW-44
shellydimmerShelly DimmerSHDM-1
shellydimmer2Shelly Dimmer2SHDM-2
shellyix3Shelly ix3SHIX3-1
shellyuniShelly UNI, Shelly Plus UNISHUNI-1
shellyplugShelly PlugSHPLG-1, SHPLG2-1
shellyplugsShelly Plug-SSHPLG-S
shellyplugu1Shelly Plug U1SHPLG-U1, SHPLG-US
shellyemShelly EM with integrated Power MetersSHEM
shellyem3Shelly 3EM with 3 integrated Power MeterSHEM-3
shellyrgbw2-colorShelly RGBW2 Controller in Color ModeSHRGBW2
shellyrgbw2-whiteShelly RGBW2 Controller in White ModeSHRGBW2
shellybulb-colorShelly Bulb in Color ModeSHBLB-1
shellybulb-whiteShelly Bulb in White ModeSHBLB-1
shellybulbduoShelly Duo White / Duo White G10SHBDUO-1
shellycolorbulbShelly Duo Color G10SHCB-1
shellyvintageShelly Vintage (White Mode)SHVIN-1
shellyhtShelly Sensor (temperature+humidity)SHHT-1
shellyfloodShelly Flood SensorSHWT-1
shellysmokeShelly Smoke SensorSHSM-01
shellymotionShelly Motion Sensor, Shelly Motion Sensor 2SHMOS-01, SHMOS-02
shellygasShelly Gas SensorSHGS-1
shellydwShelly Door/WindowSHDW-1
shellydw2Shelly Door/Window 2SHDW-2
shellybutton1Shelly Button 1SHBTN-1
shellybutton2Shelly Button 2SHBTN-2
shellysenseShelly Motion and IR ControllerSHSEN-1
shellytrvShelly TRVSHTRV-01

Shelly Plus series (Generation 2+3+4) ​

thing-typeModelVendor ID
shellyplus1Shelly Plus 1 with 1x relaySNSW-001X16EU, S3SW-001X16EU, S4SW-001X16EU
shellyplus1lShelly Plus 1L with 1x relayS3SW-0A1X1EUL, S4SW-0A1X1EUL
shellyplus1pmShelly Plus 1PM with 1x relay + power meterSNSW-001P16EU, S3SW-001P16EU, S4SW-001P16EU
shellyplus2lShelly Plus 2L with 2x relayS3SW-0A2X4EUL, S4SW-0A2X4EUL
shellyplus2pm-relayShelly Plus 2PM with 2x relay + power meter, relay modeSNSW-002P16EU, SNSW-102P16EU, S3SW-002P16EU, SNSW-002P15UL, S4SW-002P16EU
shellyplus2pm-rollerShelly Plus 2PM with 2x relay + power meter, roller modeSNSW-002P16EU, SNSW-102P16EU, S3SW-002P16EU, SNSW-002P15UL, S4SW-002P16EU
shellyplusshutterShelly Plus Shutter for 1x rollerS3SH-0A2P4EU
shellyplusemShelly Plus EMS3EM-002CXCEU, S4EM-002CXCEU
shellyplus3em63Shelly Plus 3EM-63S3EM-003CXCEU63
shellyplusplugShelly Plug-SSNPL-00112EU, SNPL-10112EU, S3PL-00112EU
shellyplusplugShelly Plug-ITSNPL-00110IT
shellyplusplugShelly Plug-UKSNPL-00112UK
shellyplusplugShelly Plug-S Gen 3S3PL-00112EU
shellyplusplugShelly AZ PlugS3PL-10112EU
shellyplusplugShelly Outdoor Plug-SS3PL-20112EU
shellyplusplugShelly Plug M Gen3S3PL-30110EU
shellyplusplugusShelly Plug-USSNPL-00116US
shellyplugusg4Shelly Plug US Gen4S4PL-00116US
shellyplusplugcpmShelly Plus Plug CPM (EU C-type, Gen4)S4PL-00116EU
shellyplusplugpmShelly Plug PM Gen3 (power meter, no relay)S3PL-30116EU
shellyplusstripShelly Plus Power Strip 4S4PL-00416EU, S4PL-10416EU
shellyplusi4Shelly Plus i4 with 4x AC inputSNSN-0024X, S3SN-0024X, S4SN-0A24X
shellyplusi4dcShelly Plus i4 with 4x DC inputSNSN-0D24X
shellyplus10vShelly Plus Dimmer 0-10V (Gen 2) or 0/1-10V (Gen 3/4)SNDM-00100WW, SNGW-0A11WW010, S3DM-0010WW, S4DM-0010WW
shellyplusuniShelly Plus UNISNSN-0043X
shellyplushtShelly Plus HT with temperature + humidity sensorSNSN-0013A, S3SN-0U12A, S3SN-1U12A
shellyplussmokeShelly Plus Smoke sensorSNSN-0031Z
shellyplusfloodShelly Flood Gen4 / Flood S Gen4 water leak sensorS4SN-0071A, S4SN-0071Z
shellypluspresenceShelly Presence Gen4 mmWave radar sensorS4SN-0U61X
shellypluswdusShelly Plus Wall Dimmer USSNDM-0013US, S4DM-0A102US
shellyplusdimmerShelly Plus DimmerSNDM-0011EU, S3DM-0A101WWL, S4DM-0A101WWL
shellyplusdalidimmerShelly Plus DALI DimmerS3DM-0A1WW, S4DM-0A1WW
shellyplusrgbwpmShelly Plus RGBW PMSNDC-0D4P10WW
shellyprorgbwwpmShelly Pro RGBWW PMSPDC-0D5PE16EU
shellyplusduobulbShelly Duo Bulb E27 Gen3S3BL-D010009AEU
shellypluscolorbulbShelly Multicolor Bulb E27 Gen3S3BL-C010007AEU
shellywalldisplayShelly Plus Wall DisplaySAWD-0A1XX10EU1
shellywalldisplayShelly Wall Display X1i, X2, X2i, XLSAWD-6A1XX10EU0, SAWD-2A1XX10EU1, SAWD-5A1XX10EU0, SAWD-3A1XE10EU2
shellyblugwShelly BLU GatewaySNGW-BT01
shellyblugw3Shelly BLU Gateway 3S3GW-1DBT001

Shelly Plus Mini series (Generation 2+3+4) ​

thing-typeModelVendor ID
shelly1miniShelly Plus 1 Mini with 1x relaySNSW-001X8EU, S3SW-001X8EU, S4SW-001X8EU
shelly1pmminiShelly Plus 1PM Mini with 1x relay + power meterSNSW-001P8EU, S3SW-001P8EU, S4SW-001P8EU
shellypmminiShelly Plus PM Mini with 1x power meterSNPM-001PCEU16, S3PM-001PCEU16
shellyemminiShelly EM Mini / EM63 G4 with 1x power meterS4EM-001PXCEU16, S4EM-001CXCEU63

Shelly Pro Series (Generation 2+3) ​

thing-typeModelVendor ID
shellypro1Shelly Pro 1 with 1x relaySPSW-001XE16EU, SPSW-101XE16EU, SPSW-201XE16EU
shellypro1pmShelly Pro 1 PM with 1x relay + power meterSPSW-001PE16EU, SPSW-101PE16EU, SPSW-201PE16EU
shellyprocbShelly Pro 1CB/2CB/3CB/4CB Circuit Breaker with 1x breaker + 1-3x volt meterSPCB-01VENEU, SPCB-02VENEU, SPCB-03VENEU, SPCB-04VENEU
shellypro1cbShelly Pro 1 Circuit Breaker (legacy thing type, use shellyprocb for new things)SPCB-01VENEU
shellypro2-relayShelly Pro 2 with 2x relay, relay modeSPSW-002XE16EU, SPSW-102XE16EU, SPSW-202XE16EU
shellypro2pm-relayShelly Pro 2 PM with 2x relay + power meter, relay modeSPSW-002PE16EU, SPSW-102PE16EU, SPSW-202PE16EU
shellypro2pm-rollerShelly Pro 2 PM with 2x relay + power meter, roller modeSPSW-002PE16EU, SPSW-102PE16EU, SPSW-202PE16EU
shellypro3Shelly Pro 3 with 3x relay (dry contacts)SPSW-003XE16EU
shellypro4pmShelly Pro 4 PM with 4x relay + power meterSHPSW04P, SPSW-004PE16EU, SPSW-104PE16EU, SPSW-204PE16EU
shellyproem50Shelly Pro EM-50 - 2 channel, single phase energy meterSPEM-002CEBEU50
shellypro3emShelly Pro 3EM - 3-phase energy meterSPEM-003CEBEU, SPEM-003CEBEU120
shellypro3em3ct63Shelly Pro 3EM-3CT63 - single or three-phase energy meterSPEM-003CEBEU63
shellypro3em400Shelly Pro 3EM-400 - 3-phase energy meterSPEM-003CEBEU400
shellyprodimmer1pmShelly Pro Dimmer 1PM - Smart dimmer with power monitoringSPDM-001PE01EU
shellyprodm2pmShelly Pro Dimmer 2PM - Dual channel smart dimmer with power meterSPDM-002PE01EU
shellyprodimmer10vShelly Pro Dimmer 0/1-10V PM - 0/1-10V dimming driver controllerSPCC-001PE10EU

Shelly BLU ​

thing-typeModelVendor ID
shellyblubuttonShelly BLU Button 1, Shelly BLU ToughSBBT-002C
shellyblubuttonShelly BLU Tough ZBSBBT-102C
shellybluwallswitch4Shelly BLU Wallswitch 4SBBT-EU5027
shellyblurcbutton4Shelly BLU RC Button 4SBBT-004CUS
shellyblurcbutton4Shelly BLU RC Button 4 ZBSBBT-104CUS
shellybluhtShelly BLU H&TSBHT-003C
shellybluhtShelly BLU H&T ZBSBHT-203C
shellybluhtShelly BLU H&T Display ZBSBHT-103C
shellybludwShelly BLU Door/WindowsSBDW-002C
shellybludwShelly BLU Door/Window ZBSBDW-103C
shellyblumotionShelly BLU MotionSBMO-003Z
shellyblumotionShelly BLU Motion ZBSBMO-103Z
shellybludistanceShelly BLU DistanceSBDI-003E
shellybluremoteShelly BLU Remote ControlSBRC-005B
shellybluws90Ecowitt WS90 Weather Station (Shelly BLU)SBWS-90CM

Special Thing Types ​

thing-typeModelVendor ID
shellydeviceA password protected Shelly device or an unknown type
shellyunknownAn unknown Shelly device / model has been detected

Binding Configuration ​

The binding has the following configuration options:

Generation 1 ​

ParameterDescriptionMandatoryDefault
defaultUserIdDefault user id for HTTP authentication when not set in the Thingnoadmin
defaultPasswordDefault password for HTTP authentication when not set in the Thingnoadmin
autoCoIoTAuto-enable CoIoT events when firmware 1.6+ is enabled (Gen1 only).notrue

defaultUserId and defaultPassword: will be used by the binding if device protection is enabled. However, the Plus/Pro devices have a fixed user id admin`. Nevertheless the binding provide that option to allow a mixed operation of Gen 1 and 2 devices in the same installation having same defaults.

Generation 1: The binding defaults to CoIoT events when firmware 1.6 or newer is detected. CoIoT provides near-realtime updates on device status changes.

This mode also overrules event settings in the Thing configuration. Disabling this feature allows granular control, which event types will be used. This is also required when the Shelly devices are not located on the same IP subnet (e.g. using a VPN). In this case autoCoIoT should be disabled, CoIoT events will not work, because the underlying CoAP protocol is based on Multicast IP, which usually doesn't passes a VPN or routed network.

Firmware ​

Generation 1: The binding requires firmware version 1.9.2 or newer to enable all features. Generation 2+3 Those Shelly devices require firmware version 1.0.0 or newer (1.10.0+ is recommended). Shelly BLU series: Use the Shelly app to update to version 1.0+ of the firmware.

Some of the features are enabled dynamically or are not available depending on device type and firmware release. The Web UI of the Shelly device displays the current firmware version under Settings:Firmware and shows an update option when a newer version is available.

The current firmware version is reported in the Thing Properties. A dedicated channel indicates the availability of a newer firmware (device#updateAvailable, not available for BLU devices). Use the device's Web UI or the Shelly App to perform the update.

Check Advanced Users for information how to update your device.

Once you have updated the device you should delete and re-discover the openHAB Thing. This makes sure that the Thing is correctly initialized and all supported channels are created. openHAB will restore the channel/item linkage from the previous configuration, there is no need to re-create those manually.

Discovery ​

In general devices need to be active to be discovered by the binding. Battery powered devices need to wake up by pressing the button, they will stay active for a minute or so, which gives you enough time to start the discovery.

The binding uses mDNS to discover the Shelly devices. They periodically announce their presence, which is used by the binding to find them on the local network. Most devices announce themselves as a web server (_http._tcp), newer firmware releases use a Shelly-specific announcement (_shelly._tcp) instead. The binding listens to both, so no additional setup is required. Sometimes you need to run the manual discovery multiple times until you see all your devices.

Important for Generation 1 Devices: It's strongly recommended to enable CoIoT in the device settings for faster response times (event driven rather than polling). Open the device's Web UI, section "COIOT settings" and select "Enable COCIOT". It's recommended to switch the Shelly devices to CoAP peer mode if you have only your openHAB system controlling the device. This allows routing the CoIoT/CoAP messages across multiple IP subnets without special network setup required. You could use Shelly Manager (doc/ShellyManager.md) to easily do the setup (configuring the openHAB host as CoAP peer address). Keep Multicast mode if you have multiple hosts, which should receive the CoAP updates.

Discovery of BLU Devices ​

The BLU devices use Bluetooth Low Energy (BLE). The binding can't communicate directly with the device, so a Shelly Plus/Pro device is required with enabled Bluetooth to use those devices as a hub. The binding automatically installs a script on the Shelly Device (oh-blu-scanner.js), which forwards the BLU events to the binding.

Follow these steps to add the Shelly BLU Device to openHAB:

  • Make sure a Shelly is nearby the BLU device, and enable Bluetooth on this device (disabling the 'Bluetooth Gateway' mode in the Shelly app/UI is recommended).
  • Add this Thing to openHAB, make sure Thing gets online
  • Enable "BLU Gateway Support" in the Thing configuration of the Shelly device acting as gateway.
  • Now press the button on your BLU device, this wakes up the device and the script forwards this event to the binding
  • As a result the corresponding Thing should show up in the Inbox
  • Add the Thing (at this point no channels are created), the new Thing will show status CONFIG_PENDING
  • Click the device button again, the binding gets another event and creates the channels and Thing changes status to ONLINE
  • Finally link the channels to the equipment in the model

Note:

  • During initialization the script 'oh-blu-scanner.js' gets installed and activated on the Shelly Gateway device.
  • BLU devices don't report all values in every packet. A channel is created once the device reports its value for the first time, e.g. open/close the window or trigger the motion sensor.
  • Ecowitt WS90: The WS90 is solar-powered and broadcasts continuously — no button press is required to add it to the Inbox. It will appear automatically once it is within range of a configured BLU gateway.

Try moving the device to force status updates.

BLU Device does not show up in the Inbox ​

The script on a gateway only announces a BLU device the first time it sees it after the script has been started. If you deleted the Thing of a BLU device and want it back in the Inbox, start a manual scan in the Inbox. The binding restarts the script on every Shelly gateway with enabled "BLU Gateway Support", so the gateways announce the BLU devices again. Then wake the BLU device (press its button, open the door/window, or move in front of the motion sensor). The Thing shows up in the Inbox when the device sends its next packet, which can be after the scan indicator in the UI has finished.

Note: The gateway Thing must be ONLINE for the scan to restart the script.

Custom oh-blu-scanner.js ​

The binding automatically manages the installation of oh-blu-scanner.js on the gateway device. See Advanced Users for how to change the script's log level (DEBUG/TRACE) or override the installed script for prototyping.

Every time an event is received sensors#lastUpdate and channels are updated with the reported values. device#wifiSignal indicates the Bluetooth signal strength and gets updated when the device sends an event.

The binding supports multiple Shelly Plus/Pro as gateway devices unless they are added as Thing and are ONLINE. In this scenario the channel device#gatewayDevice will report the last hub device, which forwarded a status update.

Password Protected Devices ​

The Shelly devices can be configured to require authorization through a user id and password. In this case you need to set these values in the Thing configuration after approving the Inbox entry.

If you have multiple devices protected by the same credentials it's recommended to set the default user id and password in the binding configuration BEFORE running the discovery. In this case the binding could directly access the device to retrieve the required information using those credentials. Otherwise a Thing of type shellyprotected is created in the Inbox and you could set the credentials while adding the Thing. In this case the credentials are persisted as part of the Thing configuration.

Range Extender Mode ​

The Plus/Pro devices support the so-called Range Extender Mode (not available for Gen1). This allows connecting Shellys that are normally not reachable due to a lack of Wi-Fi signal. Once enabled the Shelly acts as a hub to the linked devices, like a WiFi repeater. The hub device enables the access point, which can be seen by the linked device. The binding can then access the secondary device using <hub Shelly IP>:<special port>. A special port on the hub device will be created for every linked device, so one hub device can support multiple linked devices.

The binding communicates with the Shelly hub device, which then forwards the request to the secondary device. Once the Thing for the primary Shelly goes online the binding detects the enabled range extender mode and adds all connected secondary devices to the Inbox. This means: The primary Shelly has to complete initialization before linked secondary devices are discovered.

  • Discover primary/hub Shelly
  • Add Thing and wait until it goes ONLINE
  • Check Inbox to find the secondary/linked devices
  • Add secondary device as usual

If you add another secondary device to the same hub device, suspend and resume the primary Thing; this will run a new initialization and add the new secondary device to the Inbox.

Dynamic creation of channels ​

The Shelly series of devices has many combinations of relays, meters (different versions), sensors etc. For this the binding creates various channels dynamically based on the status information provided by the device at initialization time. If a channel is missing make sure the Thing was discovered correctly and is ONLINE. If a channel is missing delete the Thing and re-discover it. Creation of those channels takes about 5-10sec, maybe you need to reload the page to update the browser status.

Important for battery powered devices ​

Make sure to wake up battery powered devices, so that they show up on the network. The Shelly Button 1 needs to be connected to USB, other devices like Flood have a push button inside. For those open the case, press that button and the LED starts flashing. Wait a moment and then start the discovery. The device should show up in the Inbox and can be added. Sometimes you need to run the discovery multiple times.

Roller Favorites ​

Firmware 1.9.2+ for Shelly 2.5 and 0.11+ for Plus 2PM in roller mode supports so called roller favorites for positions. You could use the Shelly App to setup 4 different positions (percentage) and assign id 1-4. The channel roller#rollerFav allows to select those from openHAB and the roller moves to the desired position. In the Thing configuration you could also configure an id when the roller#control channel receives UP or DOWN. Values 1-4 are selecting the corresponding favorite id in the Shelly App, 0 means no favorite.

Power / Energy Meters ​

There are different types of meters.

  • Standard relay and roller devices have Meters or Enhanced Meters - e.g. Shelly Plus 1PM, 2PM
  • There are various devices providing an Energy Meter like 3EM/EM-50, EM Mini etc. - those are specifically designed for energy management

The device dynamically detects which meter data is provided and creates channels representing the data. Each meter is represented by a meter channel group. Devices with a single meter only have the meter group, devices with more than one meter have meter1, meter2... channel groups.

Device familyMetersTotal energyReturned energyReactive powerApparent powerMinute energyFrequency
Gen1 relay-PM (Shelly 1PM, 2.5)1Yes———Yes—
Gen1 3EM3YesYesYes—Yes—
Plus 1PM / Plus 2PM (Gen2/Gen3)1–2Yes———Yes—
Plus 1PM Gen41Yes———YesYes
Plus Plug S1Yes———Yes—
Pro 3EM / 3EM-63 / 3EM-4003YesYes—YesYesYes
Pro EM-501–2YesYes—YesYesYes
Plus EM Mini Gen41YesYes—YesYesYes

The Pro 3EM monophase profile treats its three clamps as three independent single-phase meters rather than one 3-phase meter.

Channels are created depending on device generation / series (1..4, BLU), capabilities and firmware. Therefore, not all channels are available for all devices.

Minute Energy — Units and Conversion ​

The firmware reports the energy of the last complete minute in different raw units per generation. The binding converts both to Wh so the value is directly comparable across devices:

GenerationSource fieldRaw unitConversion
Gen1meters[].counters[0]Watt-minutes (W-min)value ÷ 60 → Wh
Gen2+aenergy.by_minute[0]Milliwatt-hours (mWh)value ÷ 1000 → Wh

This applies to Gen1 devices with a power meter (e.g. 1PM, Plug-S, Shelly 2/2.5, dimmers) and to Gen2+ relay, roller and PM devices. EM/3EM energy-meter devices of any generation (e.g. Shelly EM, 3EM, Plus EM, EM Mini, Pro 3EM, Pro EM-50) do not report per-minute energy at all, so energyHistMin1/2/3 and energyAvgLast3Min are never created for those devices.

Last-Minute Energy Samples and 3-Minute Average ​

The device firmware reports the energy of each of the previous 3 complete minutes as independent per-minute sums, not as a running average. energyHistMin1, energyHistMin2 and energyHistMin3 expose those raw per-minute totals (in Wh) unchanged — energyHistMin1 is the total for minute -1 (the most recently completed minute), energyHistMin2 for minute -2, and energyHistMin3 for minute -3. They only get created if the device actually reports that many per-minute samples — some devices only report the most recent minute.

energyAvgLast3Min (advanced channel) is computed by the binding as the average of energyHistMin1/2/3 (their sum divided by 3) and is only created once all three samples are available. It smooths out short spikes and dips, which is useful for automations that should react to a sustained load change rather than a single noisy sample.

Power Factor Range ​

Power factor is reported as a plain number between −1.0 and +1.0 (not a dimensionless quantity), consistent across all devices that report it (3EM, EM-50, EM Mini).

Returned (Fed-Back) Energy ​

Devices that measure bidirectional energy flow (3EM, EM-50, EM Mini, solar/grid-tie setups) report returned energy separately from consumed energy. Single-clamp devices (EM Mini, Pro EM-50 single clamp) report the clamp's own returned-energy total; the same value doubles as the device-level total when only one clamp is present. Three-phase devices (Pro 3EM) report returned energy per phase and an aggregated device-level total across all phases.

openHAB 5.2.1 renamed several meter-related channels; see Channel Migration and Deprecated Channels for the full old-to-new mapping.

Resetting Accumulated Energy ​

The resetTotals channel (type Switch) resets a device's accumulated energy counters when set to ON. Its placement depends on the device type:

  • Gen2+ devices with a meter (relay-PM, roller, PM, EM/EM1 clamp meters, EM-50, EM Mini) and the Gen1 EM expose resetTotals per meter group (meter#resetTotals, meter1#resetTotals, ...), resetting only that meter's counters.
  • Three-phase 3EM devices (Gen1 3EM, Plus 3EM-63, Pro 3EM) expose resetTotals once in the common device group; it resets all phases together.
  • Gen1 devices with a simple power meter (e.g. 1PM, Plug-S, Shelly 2/2.5, dimmers) have no reset API in the firmware, so no resetTotals channel is created for them.
  • The Duo Bulb G3 and Multicolor Bulb G3 meter on CCT/RGBCCT components, which likewise have no reset API in the firmware, so no resetTotals channel is created for them.
  • The Plus RGBW PM and Pro RGBWW PM expose resetTotals only for channels running as plain Light components (profile light, or the light channels of rgbx2light). Channels running as RGB/RGBW/CCT components have no reset API in the firmware, so no resetTotals channel is created for them.

Thing Status ​

The binding sets the following Thing status depending on the device status:

StatusDescription
INITIALIZINGThis is the default status while initializing the Thing. Once the initialization is triggered the Thing switches to Status ONLINE.CONFIGURATION_PENDING.
UNKNOWNIndicates that the status is currently unknown, which must not show a problem. Once the device is reachable and was initialized the Thing switches to status ONLINE.
CONFIGURATION_PENDINGDevice initialization in progress or pending (e.g., waiting for device wake-up).
ONLINEDevice is accessible and responding. Battery-powered devices stay ONLINE while in sleep mode. An integrated watchdog timer supervises the device. Switches to OFFLINE on communication errors.
OFFLINECommunication with the device failed. Check Thing status and openHAB logs for error details.
COMMUNICATION_ERRORCommunication with the device has reported an error, check detailed status. If the problem persists make sure to have stable WiFi, set the correct password etc. Try restarting OH or deleting and re-discovering the Thing.
FIRMWARE_UPDATINGDevice firmware is updating, just wait. The device should come back to ONLINE within 2 minutes.
DUTY_CYCLEThe device is re-initializing and reported a restart event, e.g. after a firmware update or manual reboot.

Note: For more details see Thing Concept in openHAB documentation.

Battery powered devices: If the device is in sleep mode and hasn't been initialized yet, the Thing will change into CONFIG_PENDING. Once the device wakes up, the Thing will perform initialization and the state will change to ONLINE. Afterwards the Thing stays ONLINE while the device sleeps, the watchdog detects a device that stops reporting (see below).

The first time a device is discovered and initialized successfully, the binding will be able to perform auto-initialization when OH is restarted. Waking up the device triggers the a status report (CoIoT packet for event url for Gen1 and WebSocket call for Gen2), which is processed by the binding and triggers initialization. Once a device is initialized, it is no longer necessary to manually wake it up after an openHAB restart unless you change the battery. In this case press the button and run the discovery again.

Device Watchdog ​

The binding supervises availability of the device once it becomes ONLINE by sending periodic status requests to the device. The watchdog is restarted when the device is responding properly.

Communication errors are handled depending on the device type:

  • regular power devices change to OFFLINE, because this status indicates an error
  • battery powered devices stay ONLINE, because usually the device is in sleep mode

The binding also monitors that the device is responding at least once within a given time period. The period is computed depending on the device type and configuration:

  • battery powered devices: <sleepPeriod from device config> + 10% + 1min, usually 12h → 13h13min (Smoke: another 30min). If the device doesn't provide its sleep period, the longest possible period of 24h is assumed.
  • else, if CoIoT or WebSocket is enabled: 3*<update Period from device settings>+10sec, usually3*15+10=45sec
  • else 2*60+10sec = 130sec

Once the timer expires the device switches to OFFLINE and the bindings starts to re-initialize the device periodically. A battery powered device is not polled while it sleeps, it switches back to ONLINE with its next report. If a battery powered device reports less often than configured, the binding learns the longer interval and extends the watchdog period accordingly. Buttons and remotes only report when a button is pressed, so they are never set OFFLINE by the watchdog. A BLU device set OFFLINE by the watchdog switches back to ONLINE with its next advertisement.

You could also create a rule to catch those status changes or device alarms (see rule examples).

Thing Configuration ​

ParameterDescriptionMandatoryDefault
deviceIpIP address of the Shelly deviceyesnone
userIdThe user id used for HTTP authenticationnonone
passwordPassword for HTTP authenticationnonone
brightnessAutoOntrue: Output will be activated when brightness > 0 is setnotrue
lowBatteryThreshold for battery level. Set alert when level is below.no20 (=20%), only for battery powered devices
updateIntervalInterval for the background status check in seconds.no1h for battery powered devices, 60s for all others
eventsButtontrue: register event "trigger when a button is pushed"nofalse
eventsPushtrue: register event "trigger on short and long push"nofalse
eventsSwitchtrue: register event "trigger of switching the relay output"notrue
eventsSensorReporttrue: register event "posted updated sensor data"notrue for sensor devices
eventsCoIoTtrue: Listen for CoIoT/COAP eventsnotrue for battery devices, false for others
eventsRollertrue: register event "trigger" when the roller updates statusnotrue for roller devices
favoriteUP0-4: Favorite id for UP (see Roller Favorites)no0 = no favorite id
favoriteDOWN0-4: Favorite id for DOWN (see Roller Favorites)no0 = no favorite id
enableBluGatewaytrue: Activate BLU gateway support (install script)nofalse
altitudeStation altitude (m) for sea-level pressure (WS90 only)no0 = use openHAB system location altitude

General Notes ​

Every device has a channel group device with the following channels:

GroupChannelTyperead-onlyDescription
devicedeviceNameStringyesDevice name as configured in the Shelly App
uptimeNumberyesNumber of seconds since the device was powered up
wakeupPeriodNumber:TimeyesBattery devices: Interval in which the device wakes up to report its status
restartReqSwitchyesON: a configuration change needs a device restart to take effect
wifiSignalNumberyesWiFi signal strength (4=excellent, 3=good, 2=not string, 1=unreliable, 0=none)
internalTempNumberyesInternal device temperature (when provided by the device)
selfTestStringyesResult from device self-test (pending/not_completed/running/completed/unknown)
alarmTriggeryesSelf-Test result not_completed/completed/running/pending
supplyVoltageNumberyesShelly 1PM, 1L, 2.5: Supply voltage (fixed or measured depending on device)
accumulatedPowerNumber:PoweryesTotal instantaneous active power across all meters of the device
totalEnergyNumber:EnergyyesTotal energy consumption of the device in kWh (device total or binding sum)
accumulatedReturnedEnergyNumber:EnergyyesAccumulated returned energy in kWh for the device (including all meters)
accumulatedApparentNumber:PoweryesAccumulated apparent power in VA for the device (including all meters)
resetTotalsSwitchr/w3EM devices only: Send ON to reset accumulated energy counters (all phases)
heartBeatDateTimeyesTimestamp of the last successful device communication
updateAvailableSwitchyesON: A firmware update is available
statusLedSwitchr/wON: Status LED is disabled, OFF: LED enabled
powerLedSwitchr/wON: Power LED is disabled, OFF: LED enabled
chargerSwitchyesON: USB charging cable is connected external power supply activated.
calibratedSwitchyesON: Device/sensor is calibrated (if supported by device).
deviceDebugSwitchr/wGen2+ mains-powered: ON streams the device debug log into openhab.log

Availability of channels is depending on the device type. The binding detects many of those channels on-the-fly (when Thing changes to ONLINE state) and adjusts the Thing's channel structure. The device must be discovered and ONLINE to successfully complete this process. The accumulated channels are only available for devices with more than 1 meter. accumulatedReturnedEnergy and accumulatedApparent are available for multi-meter EM devices (Gen1: Shelly EM, 3EM; Gen2: Plus EM, Plus 3EM-63, Pro 3EM, Pro EM-50). The LED channels are available for the Plug-S with firmware 1.6x and for various other devices with firmware 1.8 or newer. The binding detects them automatically. Switching deviceDebug ON arms the device's debug WebSocket and forwards each line to the org.openhab.binding.shelly logger; the openHAB logger for that package must also be at DEBUG for the lines to appear. The setting is stored on the device, so streaming resumes after a device restart or Thing re-initialization; it is switched off when the Thing is disabled or removed. The channel is available for mains-powered Gen2+ devices (not BLU).

Mains-powered devices with an attached battery-operated sensor (e.g. the Wall Display with an external H&T sensor) also report the battery of that sensor. In this case the binding adds the channels batteryLevel (Number, battery level in percent) and lowBattery (Switch, ON when the battery is low) to the sensors group. Those channels only appear while the device actually reports a battery for the attached sensor.

Events ​

Generation 1: Action URLs vs. CoIoT ​

Depending on the firmware release, Shelly devices support two different mechanisms to report sensor updates or events.

Action URLs Usually the binding polls the device to update the status and maps the returned values to the various channels. In addition the binding can register so-called Action URLs. Those events are triggered by the device to report special events. You need to disable autoCoIoT in the binding configuration to make specific selections for the Action events.

The following event types could be registered when enabled in the Thing configuration:

Event TypeDescription
eventsButtonThis event is triggered when the device is in button mode. The device reports the ON/OFF status of the button.
eventsSwitchThis event reports the status of the relay output. This could change by the button or API calls.
eventsPushThe device reports the short/longpush events when in button mode momentary, momentary_on_release, one_button or two_button
eventsSensorReportSensor devices (like H&T) provide sensor updates when this action URL is enabled.

Important: The binding defaults to CoIoT when firmware 1.6 or newer is detected. This has significant experience improvements and also prevents interfering with other applications, because the device only supports one set of Action URLs.

CoIoT / CoAP Starting with version 1.6 the devices reports most status values via the CoIoT protocol. CoIoT provides near-realtime updates and better event support. Firmware 1.7 adds additional status values, also supported by the binding. Version 1.8 introduces CoIoT version 2, which fixes various issues with version 1 and provides almost all relevant status updates.

If there is no specific reason you should enable CoIoT. Check section Network Settings for more information.

Enable the autoCoIoT option in the binding configuration or eventsCoIoT in the Thing configuration to activate CoIoT.

Generation 2: WebSockets ​

The Plus and Pro series of devices use WebSockets for device communication. Usually the binding establishes a WebSocket connection to the device (http port 80). However, battery powered devices like the Plus HT are not reachable while the device is in sleep mode. For those the binding sets up a so called "Outbound WebSocket" during device initialization. Afterwards the device wakes up and calls the configured URL, which is the processed by the binding. The device UI shows the URL when active. Battery powered devices could only report events to a single host, take care if you have multiple openHAB instances on the same network.

Button events ​

Various devices signal an event when the physical button is pressed. This could be a switch connected to the SW input of the relay or the Button 1 or 2.

The following trigger types are sent:

Event TypeDescription
SHORT_PRESSEDThe button was pressed once for a short time (lastEvent=S)
DOUBLE_PRESSEDThe button was pressed twice with short delay (lastEvent=SS)
TRIPLE_PRESSEDThe button was pressed three times with short delay (lastEvent=SSS)
LONG_PRESSEDThe button was pressed for a longer time (lastEvent=L)
SHORT_LONG_PRESSEDA short followed by a long button push (lastEvent=SL)
LONG_SHORT_PRESSEDA long followed by a short button push (lastEvent=LS)
HOLDINGButton held for at least 3 sec

Check the channel definitions for the various devices to see if the device supports those events. You could use the Shelly App to set the timing for those events.

If you want to use those events triggering a rule:

  • If a physical switch is connected to the Shelly use the input channel(input or input1/input2) to trigger a rule
  • For a momentary button use the button trigger channel as trigger, channels lastEvent and eventCount will provide details on the event

Alarms ​

The binding provides health monitoring functions for the device. When an alarm condition is detected the channel alarm gets triggered and provides one of the following alarm types: For Gen2+ devices the accumulated health counters are also exposed as channels, see Diagnostics.

A new alarm will be triggered on a new condition or every 5 minutes if the condition persists.

Non-battery powered devices ​

Event TypeDescription
RESTARTEDThe device has been restarted. This could be an indicator for a firmware problem.
WEAK_SIGNALAn alarm is triggered when RSSI is < -80, which indicates an unstable connection.
OVERTEMPThe device is overheating, check installation and housing.
OVERLOADAn over load condition has been detected, e.g. from the roller motor.
OVERPOWERMaximum allowed power was exceeded. The relay was turned off.
LOAD_ERRORDevice reported a load problem.
SENSOR_ERRORDevice reported a sensor problem.
VALVE_ERRORDevice reported a problem with the valve.
VIBRATIONDevice reported vibration.
LOW_BATTERYDevice reported low battery.
LORA_RECEIVEDA datagram has been received via LoRa protocol

Sensors ​

Event TypeDescription
POWERONDevice was powered on.
PERIODICPeriodic wakeup.
BUTTONButton was pressed, e.g. to wake up the device.
SENSORWake-up due to updated sensor data.
ALARMAlarm condition was detected, check status, could be OPENED for the DW, flood alarm, smoke alarm
BATTERYDevice reported an update to the battery status.
TEMP_UNDERBelow "temperature under" threshold
TEMP_OVERAbove "temperature over" threshold
VIBRATIONA vibration/tamper was detected (DW2 only)

Refer to section Full Example for examples how to catch alarm triggers in openHAB rules.

Channels ​

Depending on the device type and firmware release channels might be not available or stay with value NaN.

Channel Migration and Deprecated Channels ​

openHAB 5.2.1 renamed several meter- related channels for naming consistency. And openHAB 5.2.2 renamed several light- related channels for naming consistency, as well as promoting some channels to 'advanced'. The binding migrates existing Things automatically at startup (one-time, schema-versioned); no re-discovery is required. Old channel IDs stay active as deprecated, advanced channels and keep receiving updates, so existing item links and rules keep working; move to the new channel ID at your convenience since deprecated channels will be removed in a future release.

Old channel IDNew channel IDNotes
meterN#currentWattsmeterN#currentPowerunit unchanged (W)
meterN#totalKWHmeterN#totalEnergyunit unchanged (kWh)
meterN#returnedKWHmeterN#returnedEnergyunit unchanged (kWh)
meterN#reactiveWattsmeterN#reactivePowerold channel keeps its W unit, new channel reports VAR
meterN#lastPower1meterN#energyHistMin1old channel reports average power in W, new channel reports energy in Wh
device#accumulatedWattsdevice#accumulatedPowerunit unchanged (W)
device#accumulatedReturneddevice#accumulatedReturnedEnergyunit unchanged (kWh)
device#accumulatedWTotaldevice#totalEnergyold channel reported incorrect values; use the new channel
device#totalKWHdevice#totalEnergyunit unchanged (kWh)
nmeter#nmTreshholdnmeter#nmThresholdunit unchanged (A)
channelN#...lightN#...channel group prefix changed for better understanding of the meaning
color#hsbcolor#hsbunchanged but becomes the primary light control channel under the OH light convention
control#powercontrol#powerpromoted to advanced channel type for lights using the OH light convention (see below)
control#modecontrol#modepromoted to advanced channel type for lights using the OH light convention (see below)
color#fullcolor#fullpromoted to advanced channel type for lights using the OH light convention (see below)
color#redcolor#redpromoted to advanced channel type for lights using the OH light convention (see below)
color#greencolor#greenpromoted to advanced channel type for lights using the OH light convention (see below)
color#bluecolor#bluepromoted to advanced channel type for lights using the OH light convention (see below)
color#whitecolor#whitepromoted to advanced channel type for lights using the OH light convention (see below)
color#gaicolor#gainpromoted to advanced channel type for lights using the OH light convention (see below)
color#effectcolor#effectpromoted to advanced channel type for lights using the OH light convention (see below)
white#brightnesswhite#brightnesspromoted to advanced channel type on combined color/white devices
white#temperaturewhite#temperaturechanged from a hybrid Dimmer / Number:Temperature to pure Number:Temperature
white#temperature-pctnew channel for pure Dimmer percent-based white temperature control
lightN#brightnesslightN#brightnessrefreshed for light-model based white/light profiles
lightN#temperaturelightN#temperaturechanged from a hybrid Dimmer / Number:Temperature to pure Number:Temperature
lightN#temperature-pctnew channel for pure Dimmer percent-based white temperature control

meterN#powerFactor additionally changed type from Number:Dimensionless to plain Number (range −1.0 to +1.0). This is an in-place type change on the same channel ID, not a rename, so there is no dual-write; items statically linked as Number:Dimensionless need relinking.

white#temperature and lightN#temperature were hybrid hybrid Dimmer and Number:Temperature channels and are now pure Number:Temperature only. So Dimmer type items that were linked to ...#temperature need to be relinked to the counterpart ...#temperature-pct channels.

Also the brightnessAutoOn configuration parameter is removed. A brightness value greater than 0 now always switches the light ON. A value of 0 switches it OFF.

Extra Channels Features for Lights according to openHAB Light Control Convention ​

The Shelly lighting ecosystem exposes different mixes of channels for different light models according to their different capabilities. In previous binding versions the channels were "orthogonal" where each channel was distinctly responsible for one specific light attribute e.g. on-off, brightness, color, etc. So three distinct commands were required to turn on a light with a specific color and brightness. By contrast the openHAB Light Control Convention expects integrated channels which are responsible for multiple light attributes; and one command covers all such attributes. So the current binding version extends the channels so that they also can follow the openHAB Light Control Convention, as described in the following chapters.

Extra Features for HSB (was ColorPicker) Channels (*) ​

Full color lights have a color#hsb channel. This is now the single main control entry point for lights that support rgb(w) outputs, or rgb(w) and color temperature combined. This color#hsb channel is no longer just a color picker; it can be linked to many Item types as follows, marked with (*) in the tables below:

  • It can be linked to Color Items in which case the H(ue) and S(aturation) parts control the color rgb or rgbw as appropriate, the B(rightness) part controls the brightness, and depending if the B part is zero or not, also the on-off state. The HS parts are always dynamically updated to reflect the real actual state of the light, so if it is in color mode the HS parts show the color being produced by the rgb(w) LEDs, and if it is in white mode they show the effective "color" of the cool or warm output.

  • It can also be linked to Dimmer Items in which case the slider controls the brightness, and depending if it is zero or not, also the On-Off state. The brightness (and the B part of the HSB above) are always dynamically updated to reflect the real actual state of the light, so if it is in color mode it shows the gain, and if it is in white mode it shows the brightness. And if the light is off then the brightness (and the B part of the HSB above) are zero.

  • It can also be linked to RollerShutter Items in which case the up/down buttons increase or decrease the brightness, and depending if the resulting brightness is zero or not, also the On-Off state.

  • It can also be linked to Switch Items in which case the switch controls the On-Off state.

Extra Features for Brightness Channels (*) ​

White only lights have a white#brightness channel. This is the single main control entry point for lights that support white only output. The white#brightness is not just an intensity control; it can be linked to several Item types as follows, marked with (*) in the tables below:

  • It can be linked to Dimmer Items in which case the slider controls the brightness, and depending if it is zero or not, also the On-Off state.

  • It can also be linked to RollerShutter Items in which case the up/down buttons control the brightness, and depending if the resulting brightness is 0 or not, also the On-Off state.

  • It can also be linked to Switch Items in which case the switch controls the On-Off state.

Extra Features for Color Temperature Channels (*) ​

Some lights have white#temperature and white#temperature-pct channels, as follows:

  1. The white#temperature-pct channel represents the color temperature in percent from "cool" to "warm".

    • This can be linked to Dimmer Items in which case the slider controls the color temperature in percent.
    • This can also be linked to RollerShutter Items in which case the up/down buttons increase or decrease the color temperature percent.
  2. The white#temperature channel represents the color temperature in Kelvin. This can be linked to Number:Temperature Items in which case it displays and controls the color temperature in Kelvin.

Extra Features on Secondary Channels ​

Some hybrid light devices have a main rgb ir rgbw light plus one or more secondary cct or light lights. Such secondary lights have extra features as follows:

  • The lightN#brightness channels behave as the white#brightness channel above.
  • The lightN#temperature channels behave as the white#temperature channel above.
  • The lightN#temperature-pct channels behave as the white#temperature-pct channel above.

LoRa Add-On (Channel Group: lora) ​

Two LoRa add-on variants are supported:

  • Shelly LoRa Add-On (standard form factor): attaches to Gen3 and Gen4 devices — 1, 1PM, 2PM, Shutter, EM, and Dimmer 0/1-10V PM Gen3/Gen4. Requires firmware 1.6 or later. Gen2 Plus devices and the Shelly Wall Dimmer Gen3 do not support this add-on.
  • Shelly Pro LoRa Add-On (DIN-rail): attaches to Pro series devices supported by this binding — Pro 1, Pro 1PM, Pro 2, Pro 2PM, Pro 3EM, Pro EM-50, Pro Dimmer 1PM, Pro Dimmer 2PM, Pro Dimmer 0/1-10V PM, and Pro RGBWW PM. Requires firmware 2.0 or later.

The binding detects the LoRa Add-On automatically and keeps the lora channel group in sync with the device configuration: the channels are created when the add-on is installed, the RX channels follow the add-on's RX-enable setting, and all channels are removed when the add-on is removed. No thing configuration is required. Both raw LoRa datagrams (LoRa.SendBytes) and SheLR datagrams (LoRa.Send, AES-CCM encrypted) received by the add-on are reported on the RX channels; sending uses raw LoRa datagrams. The add-on firmware version is shown in the Thing property addonFirmware; the device reports it asynchronously, so the property appears shortly after the Thing goes online.

GroupChannelTyperead-onlyDescription
loradataRxStringyesReceived LoRa datagram decoded as UTF-8 text. Use the LORA_RECEIVED trigger event.
dataRxRawStringyesReceived LoRa datagram, BASE64-encoded raw payload.
bytesRxNumber:DataAmountyesNumber of bytes received from LoRa network so far.
dataTxStringr/wSend a UTF-8 text string; the binding encodes it as BASE64 before transmitting.
dataTxRawStringr/wSend a BASE64-encoded datagram directly to the LoRa network.
bytesTxNumber:DataAmountyesNumber of bytes sent to the LoRa network so far.
errorsTxNumberyesNumber of failed transmissions to the LoRa network.
rssiNumber:PoweryesRSSI (received signal strength in dBm) of the last received packet.
snrNumber:DimensionlessyesSNR (signal-to-noise ratio in dB) of the last received packet.
airtimeNumber:TimeyesTransmission air time of the LoRa Add-On during the last 60 minutes.

Diagnostics (Channel Group: diagnostics) ​

Gen2+ devices (Plus, Pro, Gen3, Gen4; not BLU) expose a diagnostics channel group. It provides device utilization data read from the device plus health counters the binding accumulates while the Thing is online. All channels are advanced and read-only. Counters survive device restarts and reconnects; they reset when the Thing is restarted or its configuration changes.

GroupChannelTyperead-onlyDescription
diagnosticstotalMemNumber:DataAmountyesTotal RAM on the device.
freeMemNumber:DataAmountyesCurrently free RAM.
totalFSNumber:DataAmountyesTotal size of the device's internal filesystem.
freeFSNumber:DataAmountyesCurrently free filesystem space.
restartsNumberyesUnexpected device restarts detected since the Thing was initialized.
timeoutErrorsNumberyesAPI request timeouts since the Thing was initialized.
alarmsNumberyesAlarms triggered since the Thing was initialized.
lastAlarmStringyesMessage and timestamp of the last alarm.
protocolErrorsNumberyesProtocol errors (e.g. malformed WebSocket messages) since the Thing was initialized.
maxInternalTempNumber:TemperatureyesHighest internal device temperature measured since the Thing was initialized.

Shelly 1 (thing-type: shelly1) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
sensorstemperature1NumberyesTemperature value of external sensor #1 (if connected to temp/hum addon)
temperature2NumberyesTemperature value of external sensor #2 (if connected to temp/hum addon)
temperature3NumberyesTemperature value of external sensor #3 (if connected to temp/hum addon)
humidityNumberyesHumidity in percent (if connected to temp/hum addon)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)
input1ContactyesStatus of the reed contact (OPEN/CLOSE), only with external switch add-on

Shelly 1L (thing-type: shelly1l) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for channel 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
lastUpdateDateTimeyesTimestamp of the last measurement
sensorstemperature1NumberyesTemperature value of external sensor #1 (if connected to temp/hum addon)
temperature2NumberyesTemperature value of external sensor #2 (if connected to temp/hum addon)
temperature3NumberyesTemperature value of external sensor #3 (if connected to temp/hum addon)
humidityNumberyesHumidity in percent (if connected to temp/hum addon)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)
input1ContactyesStatus of the reed contact (OPEN/CLOSE), only with external switch add-on

Note: The meter for the Shelly 1L is kind of fake. It doesn't have a real power meter, but you could setup an estimated consumption in the Shelly App, e.g. 60W if you have attached a good old light bulb to the output channel. In this case the is no real measurement based on power consumption, but the Shelly reports the configured value when the relay is ON.

Shelly 1PM (thing-type: shelly1pm) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
frequencyNumberyesGrid frequency (Hz) - Gen4 only
lastUpdateDateTimeyesTimestamp of the last measurement
sensorstemperature1NumberyesTemperature value of external sensor #1 (if connected to temp/hum addon)
temperature2NumberyesTemperature value of external sensor #2 (if connected to temp/hum addon)
temperature3NumberyesTemperature value of external sensor #3 (if connected to temp/hum addon)
humidityNumberyesHumidity in percent (if connected to temp/hum addon)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)
input1ContactyesStatus of the reed contact (OPEN/CLOSE), only with external switch add-on

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly EM (thing-type: shellyem) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly 3EM (thing-type: shellyem3) ​

Note: The product is called Shelly 3EM whereas the device propagates the service under shellyem3. The Thing id is derived from the service name, so that's the reason why the Thing is named shellyem3 and not shelly3em.

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter3currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
nmeterncurrentNumberyesNeutral current based on N clamp (requires calibration)
ixsumNumberyesMeasured current over all phases
nmismatchSwitchyesON: abs(ncurrent-ixsum) is greater than nmThreshold
nmThresholdNumberyesThreshold (delta) before nMismatch goes ON

Note:

  • totalEnergy might reset on restart depending on device type and firmware version
  • You should calibrate the device if you want to use "neutral current" measurements.
  • Check the Shelly documentation for details.

Shelly 2 - relay mode (thing-type: shelly2-relay) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
lastUpdateDateTimeyesTimestamp of the last measurement
returnedEnergyNumberyesTotal returned energy, kWh

Note: totalEnergy might reset on restart depending on device type and firmware version

GroupChannelTyperead-onlyDescription
rollercontrolRollershutterr/wcan be open (0%), stop, or close (100%); could also handle ON (open) and OFF (close)
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
eventTriggeryesRoller event/trigger with payload ROLLER_OPEN / ROLLER_CLOSE / ROLLER_STOP
rollerposNumberr/wRoller position: 100%=open...0%=closed; gets updated when the roller stops, see Notes
rollerFavNumberr/wSelect roller position favorite (1-4, 0=no), see Notes
stateStringyesRoller state: open/close/stop
stopReasonStringyesLast stop reasons: normal, safety_switch or obstacle
safetySwitchyesIndicates status of the Safety Switch, ON=problem detected, powered off
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
lastUpdateDateTimeyesTimestamp of the last measurement

Note: The Roller should be calibrated using the device Web UI or Shelly App, otherwise the position can't be set.

The roller positioning calibration has to be performed using the Shelly Web UI or App before the position can be set in percent. Refer to Smartify Roller Shutters with openHAB and Shelly for more information on roller integration.

totalEnergy might reset on restart depending on device type and firmware version

Shelly 2.5 - relay mode (thing-type: shelly25-relay) ​

The Shelly 2.5 includes 2 meters, one for each channel. Firmware 1.9.2 or newer is required to use the roller position favorites, which are defined in the Shelly App.

GroupChannelTyperead-onlyDescription
relay1See group relay1 for Shelly 2
relay2See group relay1 for Shelly 2
meter1See group meter1 for Shelly 2
meter2See group meter1 for Shelly 2

Shelly 2.5 - roller mode (thing-type: shelly25-roller) ​

The Shelly 2.5 includes 2 meters, one for each channel. However, it doesn't make sense to differ power consumption for the roller moving up vs. moving down. For this the binding aggregates the power consumption of both relays and includes the values in "meter1".

GroupChannelTyperead-onlyDescription
rollercontrolRollershutterr/wcan be open (0%), stop, or close (100%); could also handle ON (open) and OFF (close)
rollerposDimmerr/wRoller position: 100%=open...0%=closed; gets updated when the roller stopped
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
stateStringyesRoller state: open/close/stop
stopReasonStringyesLast stop reasons: normal, safety_switch or obstacle
safetySwitchyesIndicates status of the Safety Switch, ON=problem detected, powered off
eventTriggeryesRoller event/trigger with payload ROLLER_OPEN / ROLLER_CLOSE / ROLLER_STOP
meter1See group meter1 for Shelly 2
meter2See group meter1 for Shelly 2

The roller positioning calibration has to be performed using the Shelly Web UI or App before the position can be set in percent. Refer to Smartify Roller Shutters with openHAB and Shelly for more information on roller integration.

Shelly 4Pro (thing-type: shelly4pro) ​

The Shelly 4Pro provides 4 relays and 4 power meters.

GroupChannelTyperead-onlyDescription
relay1See group relay1 for Shelly 2
relay2See group relay1 for Shelly 2
relay3See group relay1 for Shelly 2
relay4See group relay1 for Shelly 2
meter1See group meter1 for Shelly 2
meter2See group meter1 for Shelly 2
meter3See group meter1 for Shelly 2
meter4See group meter1 for Shelly 2

Shelly Plug-S (thing-type: shellyplugs) ​

GroupChannelTyperead-onlyDescription
relaySee group relay1 for Shelly 2
meterSee group meter1 for Shelly 2

Shelly Dimmer 1 + 2 (thing-type: shellydimmer, shellydimmer2) ​

GroupChannelTyperead-onlyDescription
relaybrightnessDimmerr/wCurrently selected brightness.
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for channel 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
lastUpdateDateTimeyesTimestamp of the last measurement

Note: The Dimmer should be calibrated using the device Web UI or Shelly App.

Using the Thing configuration option brightnessAutoOn you could decide if the light is turned on when a brightness > 0 is set. true: Brightness will be set and device output is powered = light turns on with the new brightness false: Brightness will be set, but output stays unchanged so light will not be switched on when it's currently off.

totalEnergy might reset on restart depending on device type and firmware version

Shelly ix3 (thing-type: shellyix3) ​

GroupChannelTyperead-onlyDescription
status1inputSwitchyesState of Input 1
buttonTriggeryesEvent trigger: Event trigger, see section Button Events
lastEventStringyesS/SS/SSS for 1/2/3x Shortpush or L for Longpush
eventCountNumberyesCounter gets incremented every time the device issues a button event.
status2Same for Input 2
status3Same for Input 3

Channels lastEvent and eventCount are only available if input type is set to momentary button

Shelly UNI, Shelly Plus UNI (thing-type: shellyuni) ​

GroupChannelTyperead-onlyDescription
relay1See group relay1 for Shelly 2, no autoOn/autoOff/timerActive channels
relay2See group relay1 for Shelly 2, no autoOn/autoOff/timerActive channels
sensorstemperature1NumberyesTemperature value of external sensor #1 (if connected to temp/hum addon)
temperature2NumberyesTemperature value of external sensor #2 (if connected to temp/hum addon)
temperature3NumberyesTemperature value of external sensor #3 (if connected to temp/hum addon)
humidityNumberyesHumidity in percent (if connected to temp/hum addon)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)
voltageNumberyesADCS voltage
statusinput1SwitchyesState of Input 1
input2SwitchyesState of Input 2
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesS/SS/SSS for 1/2/3x Shortpush or L for Longpush
eventCountNumberyesCounter gets incremented every time the device issues a button event.

Shelly Bulb (thing-type: shellybulb) ​

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
modeSwitchr/wyesColor mode: color or white
autoOnNumberr/wSets a timer to turn the device ON after every OFF; in sec
autoOffNumberr/wSets a timer to turn the device OFF after every ON: in sec
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b,w"
redDimmerr/wyesRed brightness: 0..100% or 0..255 (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% or 0..255 (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% or 0..255 (control only the blue channel)
whiteDimmerr/wyesWhite brightness: 0..100% or 0..255 (control only the white channel)
gainDimmerr/wyesGain setting: 0..100% or 0..100
effectNumberr/wPuts the light into effect mode: 0..6 0=No effect, 1=Meteor Shows, 2=Gradual Change, 3=Breath 4=Flash, 5=On/Off Gradual, 6=Red/Green Change
whitebrightnessDimmerr/wyesBrightness: 0..100%
temperature-pctMultiple (*)r/wMain color temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention

Note: The openHAB color picker has only values for red/green/blue (RGB), not for white as supported by the RGBW2. Beside channel hsb the binding also offers the white channel (hsb as only RGB values). Or control each color separately with channels red, blue, green (those are advanced channels).

Shelly Duo (thing-type: shellybulbduo) ​

This information applies to the Shelly Duo-1 as well as the Duo White for the G10 socket.

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
autoOnNumberr/wSets a timer to turn the device ON after every OFF; in sec
autoOffNumberr/wSets a timer to turn the device OFF after every ON: in sec
timerActiveSwitchyesON: An auto-on/off timer is active
whitebrightnessMultiple (*)r/wMain dimming control according to openHAB Light Control Convention
temperature-pctMultiple (*)r/wMain color temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Vintage (thing-type: shellyvintage) ​

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
autoOnNumberr/wSets a timer to turn the device ON after every OFF; in sec
autoOffNumberr/wSets a timer to turn the device OFF after every ON: in sec
timerActiveSwitchyesON: An auto-on/off timer is active
whitebrightnessMultiple (*)r/wMain dimming control according to openHAB Light Control Convention
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Duo Color (thing-type: shellycolorbulb) ​

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b,w"
redDimmerr/wyesRed brightness: 0..100% or 0..255 (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% or 0..255 (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% or 0..255 (control only the blue channel)
whiteDimmerr/wyesWhite brightness: 0..100% or 0..255 (control only the white channel)
gainDimmerr/wyesGain setting: 0..100% or 0..100
effectNumberr/wPuts the light into effect mode: 0=No effect, 1=Meteor Shower, 2=Gradual Change, 3=Flash
whitebrightnessMultiple (*)r/wMain dimming control according to openHAB Light Control Convention
temperature-pctMultiple (*)r/wMain color temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage energy per minute over minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Shelly Duo RGBW Color Bulb (thing-type: shellycolorbulb) ​

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b,w"
redDimmerr/wyesRed brightness: 0..100% or 0..255 (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% or 0..255 (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% or 0..255 (control only the blue channel)
whiteDimmerr/wyesWhite brightness: 0..100% or 0..255 (control only the white channel)
gainDimmerr/wyesGain setting: 0..100% or 0..100
effectNumberr/wPuts the light into effect mode: 0..3
0=No effect, 1=Meteor Shower, 2=Gradual Change, 3=Flash
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage energy per minute over minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Shelly RGBW2 in Color Mode (thing-type: shellyrgbw2-color) ​

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b,w"
redDimmerr/wyesRed brightness: 0..100% or 0..255 (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% or 0..255 (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% or 0..255 (control only the blue channel)
whiteDimmerr/wyesWhite brightness: 0..100% or 0..255 (control only the white channel)
gainDimmerr/wyesGain setting: 0..100% or 0..100
effectNumberr/wPuts the light into effect mode: 0..3 0=No effect, 1=Meteor Shower, 2=Gradual Change, 3=Flash
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly RGBW2 in White Mode (thing-type: shellyrgbw2-white) ​

GroupChannelTyperead-onlyAdvancedDescription
controlinputSwitchyesState of Input
light1brightnessMultiple (*)r/wLight 1: Main dimming control according to openHAB Light Control Convention
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light2brightnessMultiple (*)r/wLight 2: Main dimming control according to openHAB Light Control Convention
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light3brightnessMultiple (*)r/wLight 3: Main dimming control according to openHAB Light Control Convention
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light4brightnessMultiple (*)r/wLight 4: Main dimming control according to openHAB Light Control Convention
buttonTriggeryesEvent trigger, see section Button Events
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts (all channels)
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

Note: channel1..channel4 are deprecated, use light1..light4 instead (same channels, without the button trigger). Already-discovered Things get the light1..light4 channels created automatically; channel1..channel4 are kept for backward compatibility.

Please note that the settings of channel group color are only valid in color mode and vice versa for white mode. The current firmware doesn't support the timestamp report for the meters. The binding emulates this by using the system time on every update.

In white mode each RGBW2 channel is defined as DimmableLight. This means that the brightness channel has 2 functions

  • Sending ON/OFF (OnOffType) to power on/off the channel
  • Sending a Number to set the brightness (percentage 0..100)

Sending brightness 0 will automatically turn off the channel if it's currently on. Sending brightness > 0 will automatically turn on the channel if it's currently off. You can define 2 items (1 Switch, 1 Number) mapping to the same channel, see example rules.

Shelly Duo Bulb E27 Gen3 (thing-type: shellyplusduobulb) ​

GroupChannelTyperead-onlyAdvancedDescription
controlautoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
whitebrightnessMultiple (*)r/wMain dimming control according to openHAB Light Control Convention
temperature-pctMultiple (*)r/wMain color temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage energy per minute over minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

The Duo Bulb Gen3 is a tunable-white (CCT) bulb only, like the Gen1 Shelly Duo - it has no RGB color output. It has power metering hardware and reports current power and energy consumption.

Shelly Multicolor Bulb E27 Gen3 (thing-type: shellypluscolorbulb) ​

GroupChannelTyperead-onlyAdvancedDescription
controlautoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b"
redDimmerr/wyesRed brightness: 0..100% or 0..255 (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% or 0..255 (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% or 0..255 (control only the blue channel)
whitebrightnessDimmerr/wyesBrightness: 0..100% or 0..100; also controls power (ON/OFF)
temperature-pctMultiple (*)r/wMain color temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
energyHistMin1NumberyesyesTotal energy consumed during the previous minute, minute -1 (Wh)
energyHistMin2NumberyesyesTotal energy consumed during minute -2 (Wh)
energyHistMin3NumberyesyesTotal energy consumed during minute -3 (Wh)
energyAvgLast3MinNumberyesyesAverage energy per minute over minutes -1 to -3 (Wh)
lastUpdateDateTimeyesyesTimestamp of the last measurement

The Multicolor Bulb Gen3 has both full RGB color output and a tunable white (CCT) mode, like the Gen1 Shelly Color Bulb, but the two modes share the same LEDs: only one is active at a time, and there is no dedicated mode channel. Sending a color (color#hsb, color#red/green/blue switches to color mode; sending white#temperature, or white#temperature-pct switches back to white mode. It has power metering hardware and reports current power and energy consumption in both modes.

Shelly H&T (thing-type: shellyht) ​

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesTemperature, unit is reported by tempUnit
humidityNumberyesRelative humidity in %
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Note: If you have connected an USB cable to the H&T, but channel charger is off make sure that "Use external power supply" settings is activated in the Shelly App's device settings.

Shelly Flood (thing-type: shellyflood) ​

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesTemperature, unit is reported by tempUnit
floodSwitchyesON: Flooding condition detected, OFF: no flooding
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly Door/Window (thing-type: shellydw, shellydw2) ​

GroupChannelTyperead-onlyDescription
sensorsstateContactyesOPEN: Contact is open, CLOSED: Contact is closed
luxNumberyesBrightness in Lux
illuminationStringyesCurrent illumination: dark/twilight/bright
tiltNumberyesTilt in ° (angle), -1 indicates that the sensor is not calibrated
vibrationSwitchyesON: Vibration detected
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
lastErrorStringyesLast device error.
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicealarmTriggeryesWill receive trigger VIBRATION if DW2 detects vibration

Shelly Motion (thing-type: shellymotion) ​

Note: You might need to restart the device to enable the discovery mode for 3 minutes(use the Web UI). As an alternativ you could press the reset button shortly (refer to the manual to locate the reset button). While the device is in low power mode (usual operation) it will not respond to discovery requests

GroupChannelTyperead-onlyDescription
sensorsmotionSwitchyesON: Motion was detected
motionTimestampDateTimeyesTime when motion started/was detected
luxNumberyesBrightness in Lux
illuminationStringyesCurrent illumination: dark/twilight/bright
vibrationSwitchyesON: Vibration detected
chargerSwitchyesON: USB charging cable is connected external power supply activated.
motionActiveSwitchyesON: Motion detection is currently active
sensorSleepTimeNumbernoSpecifies the number of sec the sensor should not report events
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Use case for the 'sensorSleepTime': You have a Motion controlling your light. You switch off the light and want to leave the room, but the motion sensor immediately switches light back on. Using 'sensorSleepTime' you can suppress motion events while leaving the room (e.g., for 5 seconds) so the light doesn't switch on.

Shelly Motion 2 (thing-type: shellymotion) ​

GroupChannelTyperead-onlyDescription
sensorsmotionSwitchyesON: Motion was detected
motionTimestampDateTimeyesTime when motion started/was detected
luxNumberyesBrightness in Lux
illuminationStringyesCurrent illumination: dark/twilight/bright
temperatureNumberyesTemperature measured by the sensor
vibrationSwitchyesON: Vibration detected
chargerSwitchyesON: USB charging cable is connected external power supply activated.
motionActiveSwitchyesON: Motion detection is currently active
sensorSleepTimeNumbernoSpecifies the number of sec the sensor should not report events
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly TRV (thing-type: shellytrv) ​

Note: You might need to reboot the device to enable the discovery mode for 3 minutes(use the Web UI). As an alternative you could press the reset button shortly (refer to the manual to locate the reset button). While the device is in low power mode (usual operation) it will not respond to discovery requests

You should calibrate the valve using the device Web UI or Shelly App before starting to control it using openHAB.

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesCurrent Temperature in °C
stateContactyesValve status: OPEN or CLOSED (position = 0)
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
controltargetTempNumbernoTemperature in °C: 4=Low/Min; 5..30=target temperature;31=Hi/Max
positionDimmernoSet valve to manual mode (0..100%) disables auto-temp
modeStringnoSwitch between manual and automatic mode
selectedProfileStringnoSelect profile Id: "0"=disable, "1"-"n": profile index
boostNumbernoEnable/disable boost mode (full heating power)
boostTimerNumbernoNumber of minutes to heat at full power while boost mode is enabled
scheduleSwitchyesON: Schedule is active
batterybatteryLevelNumberyesBattery Level in %
batteryAlertSwitchyesLow battery alert

Shelly Button 1 or 2 (thing-type: shellybutton1 / shellybutton2) ​

GroupChannelTyperead-onlyDescription
statuslastEventStringyesS/SS/SSS for 1/2/3x Shortpush or L for Longpush
eventCountNumberyesCounter gets incremented every time the device issues a button event.
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
buttonTriggeryesEvent trigger with payload SHORT_PRESSED, DOUBLE_PRESSED...
lastUpdateDateTimeyesTimestamp of the last update (any value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly Smoke (thing-type: shellysmoke) ​

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesTemperature, unit is reported by tempUnit
smokeNumberyesON: Smoke detected
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
lastErrorStringyesLast device error.
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly Gas (thing-type: shellygas) ​

GroupChannelTyperead-onlyDescription
sensorsppmNumberyesGas concentration (ppm)
sensorStateStringyesSensor state: unknown/warmup/normal/fault
alarmStateStringyesAlarm state: unknown/none/mild/heavy/test
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)

Shelly Sense (thing-type: shellysense) ​

GroupChannelTyperead-onlyDescription
controlkeyStringr/wSend an IR key to the sense. There a 3 different types supported
Stored key: send the key code defined by the App , e.g. 123_1_up
Pronto hex: send a Pronto Code in hex format, e.g. 0000 006C 0022 ...
Pronto base64: in base64 format, will be send 1:1 to the Sense
motionTimeNumberr/wDefine the number of seconds when the Sense should report motion
motionLEDSwitchr/wControl the motion LED: ON when motion is detected or OFF
chargerSwitchyesON: charger connected, OFF: charger not connected.
sensorstemperatureNumberyesTemperature in °C
humidityNumberyesRelative humidity in %
luxNumberyesBrightness in Lux
motionSwitchyesON: Motion detected, OFF: No motion (check also motionTime)
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
batteryAlertSwitchyesLow battery alert

Shelly Plus Series ​

Shelly Plus 1 (thing-type: shellyplus1, shellyplus1l) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events

If the Shelly Add-On is installed:

GroupChannelTyperead-onlyDescription
sensorstemperature1NumberyesTemperature value of external sensor #1
temperature2NumberyesTemperature value of external sensor #2
temperature3NumberyesTemperature value of external sensor #3
temperature4NumberyesTemperature value of external sensor #4
temperature5NumberyesTemperature value of external sensor #5
humidityNumberyesRelative Humidity in percent
voltageNumberyesMeasured voltage
analogInputNumberyesPercentage of reference voltage (VREF) at analogous input
digitalInputSwitchyesState of digital input (ON/OFF)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)

Shelly Plus 1PM (thing-type: shellyplus1pm) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

If the Shelly Add-On is installed:

GroupChannelTyperead-onlyDescription
sensorstemperature1NumberyesTemperature value of external sensor #1
temperature2NumberyesTemperature value of external sensor #2
temperature3NumberyesTemperature value of external sensor #3
temperature4NumberyesTemperature value of external sensor #4
temperature5NumberyesTemperature value of external sensor #5
humidityNumberyesRelative Humidity in percent
voltageNumberyesMeasured voltage
analogInputNumberyesPercentage of reference voltage (VREF) at analogous input
digitalInputSwitchyesState of digital input (ON/OFF)
lastUpdateDateTimeyesTimestamp of the last sensor update (heartbeat)

Shelly Plus 2PM - relay mode (thing-type: shellyplus2pm-relay) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
meter1currentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
meter2currentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus 2L (thing-type: shellyplus2l) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events

Shelly Plus 2PM - roller mode (thing-type: shellyplus2pm-roller) ​

GroupChannelTyperead-onlyDescription
rollercontrolRollershutterr/wcan be open (0%), stop, or close (100%); could also handle ON (open) and OFF (close)
rollerPosDimmerr/wRoller position: 100%=open...0%=closed; gets updated when the roller stopped
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
stateStringyesRoller state: open/close/stop
stopReasonStringyesLast stop reasons: normal, safety_switch or obstacle
safetySwitchyesIndicates status of the Safety Switch, ON=problem detected, powered off
eventTriggeryesRoller event/trigger with payload ROLLER_OPEN / ROLLER_CLOSE / ROLLER_STOP
meterSee group meter description

The roller positioning calibration has to be performed using the Shelly Web UI or App before the position can be set in percent. Refer to Smartify Roller Shutters with openHAB and Shelly for more information on roller integration.

Shelly Plus Shutter (thing-type: shellyplusshutter) ​

GroupChannelTyperead-onlyDescription
rollercontrolRollershutterr/wcan be open (0%), stop, or close (100%); could also handle ON (open) and OFF (close)
rollerPosDimmerr/wRoller position: 100%=open...0%=closed; gets updated when the roller stopped
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
stateStringyesRoller state: open/close/stop
stopReasonStringyesLast stop reasons: normal, safety_switch or obstacle
safetySwitchyesIndicates status of the Safety Switch, ON=problem detected, powered off
eventTriggeryesRoller event/trigger with payload ROLLER_OPEN / ROLLER_CLOSE / ROLLER_STOP
meterSee group meter description

The roller positioning calibration has to be performed using the Shelly Web UI or App before the position can be set in percent. Refer to Smartify Roller Shutters with openHAB and Shelly for more information on roller integration.

Shelly Plus Plug-S/IT/UK/US/CPM/USG4 (thing-type: shellyplusplug, shellyplusplugus, shellyplusplugcpm, shellyplugusg4) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus Power Strip 4 (thing-type: shellyplusstrip) ​

GroupChannelTyperead-onlyDescription
relay1r/wRelay #1 with control options and status values
relay2r/wRelay #2 with control options and status values
relay3r/wRelay #3 with control options and status values
relay4r/wRelay #4 with control options and status values
meter1r/wPower Meter #1 with measurement values
meter2r/wPower Meter #1 with measurement values
meter3r/wPower Meter #1 with measurement values
meter4r/wPower Meter #1 with measurement values

Shelly Plus EM (thing-type: shellyplusem) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus 3EM-63 (thing-type: shellyplus3em63) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter3currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
nmeterncurrentNumberyesNeutral current based on N clamp (requires calibration)
ixsumNumberyesMeasured current over all phases
nmismatchSwitchyesON: abs(ncurrent-ixsum) is greater than nmThreshold
nmThresholdNumberyesThreshold (delta) before nMismatch goes ON

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus Dimmer / 10V / DALI Dimmer (thing-type: shellyplusdimmer, shellyplus10v, shellyplusdalidimmer) ​

GroupChannelTyperead-onlyDescription
relaybrightnessDimmerr/wCurrently selected brightness.
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for channel 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
daliDeviceCountNumberyesDALI Dimmer only: Number of control gears (devices) found on the DALI bus
daliScanActiveSwitchyesDALI Dimmer only: ON: A scan of the DALI bus is currently in progress
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: The Dimmer should be calibrated using the device Web UI or Shelly App.

Using the Thing configuration option brightnessAutoOn you could decide if the light is turned on when a brightness > 0 is set. true: Brightness will be set and device output is powered = light turns on with the new brightness false: Brightness will be set, but output stays unchanged so light will not be switched on when it's currently off.

totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus i4, i4DC (thing-types: shellyplusi4, shellyplusi4dc) ​

GroupChannelTyperead-onlyDescription
status1inputSwitchyesState of Input 1
buttonTriggeryesEvent trigger: Event trigger, see section Button Events
lastEventStringyesS/SS/SSS for 1/2/3x Shortpush or L for Longpush
eventCountNumberyesCounter gets incremented every time the device issues a button event.
status2Same for Input 2
status3Same for Input 3
status4Same for Input 4

Channels lastEvent and eventCount are only available if input type is set to momentary button

Shelly Plus HT (thing-type: shellyplusht) ​

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesTemperature, unit is reported by tempUnit
humidityNumberyesRelative humidity in %
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly Plus Smoke (thing-type: shellyplussmoke) ​

GroupChannelTyperead-onlyDescription
sensorssmokeSwitchyesON: Smoke detected
muteSwitchnoON: Alarm muted
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
lastErrorStringyesLast device error.
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly Flood Gen4 (thing-type: shellyplusflood) ​

The Shelly Flood Gen4 (S4SN-0071A) and Shelly Flood S Gen4 (S4SN-0071Z) are battery-powered water-leak sensors with a configurable alarm mode. The Flood Gen4 uses a cable-connected sensor probe; if the cable is unplugged, the lastError channel is updated and a SENSOR_ERROR event is posted to device#alarm. The Flood S Gen4 instead uses integrated stainless-steel sensor pads.

Note: The alarmMode and reportHoldoff channels are writable but only take effect while the sensor is online (awake and connected). There is no API to mute a flood alarm remotely, only the physical button on the device; the mute state is reported via an ALARM_MUTED event on device#alarm rather than a dedicated channel.

The alarmMode channel reflects the Shelly app's Alarm Mode screen:

  • Rain mode (rain): rain detection only — the flood alarm is inactive.
  • Flood mode, Intense (intense): loud acoustic alarm triggered by flooding (mute via physical button on device).
  • Flood mode, Normal (normal): acoustic alarm triggered by flooding (mute via physical button on device).
  • Flood mode, Silent (disabled): flood detection only, no acoustic alarm.
GroupChannelTyperead-onlyDescription
sensorsfloodSwitchyesON: Water/flooding detected, OFF: dry
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
lastErrorStringyesLast device error (e.g. cable_unplugged)
controlalarmModeStringnoAlarm mode: rain, intense, normal, disabled (see note above)
reportHoldoffNumber:TimenoMinimum time (s) between consecutive flood reports
batterybatteryLevelNumberyesBattery level in %
lowBatterySwitchyesON: Low battery alert (< 20%)
devicealarmTriggeryesTrigger: FLOOD on flood alarm, SENSOR_ERROR on cable fault, ALARM_MUTED when muted via the physical button

Shelly Presence Gen4 (thing-type: shellypluspresence) ​

Mains-powered (USB-C) mmWave radar occupancy sensor. presence and objectCount are pushed in real time when the device reports a change and are also refreshed on every poll cycle. The remaining channels are updated on the poll cycle. The device supports up to 10 detection zones. The binding reports the zone that is selected as main zone in the Shelly App, which is the same zone the device uses for its own presence indication. Readings from the other zones are not published.

GroupChannelTyperead-onlyDescription
sensorspresenceSwitchyesON: Occupancy detected in the main detection zone
objectCountNumberyesNumber of persons/objects currently detected in the main zone
luxNumber:IlluminanceyesBrightness in Lux (see note below)
illuminationStringyesAmbient light class (dark / twilight / bright)
lastUpdateDateTimeyesTimestamp of the last update
controlsensorEnableSwitchr/wEnable or disable the mmWave radar sensor

Real Presence Gen4 hardware never reports a numeric lux value, only the illumination class - lux stays NULL/undefined.

Shelly Plus Wall Dimmer US (thing-type: shellypluswdus) ​

GroupChannelTyperead-onlyDescription
relaybrightnessDimmerr/wCurrently selected brightness.
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L)
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Shelly Pro Dimmer 1PM (thing-type: shellyprodimmer1pm) ​

GroupChannelTyperead-onlyDescription
relaybrightnessDimmerr/wCurrently selected brightness.
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for input 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note:Calibration required: The output must be calibrated using the Shelly App or device Web UI before brightness commands can be used. Until calibration is complete the device rejects all brightness and transition commands. When a brightness command is rejected the device may still turn on at full brightness (100%) — this is device behaviour, not a binding issue. Use the brightnessAutoOn configuration option to control whether brightness > 0 turns the light on. totalEnergy might reset on restart depending on device type and firmware version.

Shelly Pro Dimmer 2PM (thing-type: shellyprodm2pm) ​

The Pro Dimmer 2PM is a dual-channel dimmer. Each channel uses its own relay group (relay1/relay2) and power meter group (meter1/meter2).

GroupChannelTyperead-onlyDescription
relay1brightnessDimmerr/wChannel 1: Currently selected brightness.
outputNameStringyesLogical name of channel 1 output as configured in the Shelly App
input1SwitchyesON: Input/Button for channel 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for channel 1 input
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wSets a timer to turn channel 1 ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn channel 1 OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active for channel 1
relay2Same channels as relay1, controlling channel 2
meter1currentPowerNumberyesChannel 1: Current power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
meter2Same channels as meter1, for channel 2 power measurement

Note:Calibration required: The output must be calibrated using the Shelly App or device Web UI before brightness commands can be used. Until calibration is complete the device rejects all brightness and transition commands. When a brightness command is rejected the device may still turn on at full brightness (100%) — this is device behaviour, not a binding issue. Use the brightnessAutoOn configuration option to control whether brightness > 0 turns the light on. totalEnergy might reset on restart depending on device type and firmware version.

Shelly Pro Dimmer 0/1-10V PM (thing-type: shellyprodimmer10v) ​

GroupChannelTyperead-onlyDescription
relaybrightnessDimmerr/wCurrently selected brightness (0-100%).
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for input 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: The Pro Dimmer 0/1-10V PM controls external dimmable ballasts or LED drivers via a 0-10V or 1-10V control signal. Calibration required: The output must be calibrated using the Shelly App or device Web UI before brightness commands can be used. Until calibration is complete the device rejects all brightness and transition commands. When a brightness command is rejected the device may still turn on at full brightness (100%) — this is device behaviour, not a binding issue. Use the brightnessAutoOn configuration option to control whether brightness > 0 turns the light on. totalEnergy might reset on restart depending on device type and firmware version.

Shelly Plus RGBW PM (thing-type: shellyplusrgbwpm) ​

The active device profile (rgbw, rgb or light) is selected in the Shelly App/device settings and determines which channel groups below are populated. Changing the profile requires deleting and re-discovering the Thing.

In rgbw or rgb profile (color mode):

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
brightnessMultiple (*)r/wyesDimming control according to openHAB Light Control Convention
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b,w"
redDimmerr/wyesRed brightness: 0..100% (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% (control only the blue channel)
whiteDimmerr/wyesWhite brightness: 0..100% (control only the white channel)
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
lastUpdateDateTimeyesTimestamp of the last measurement

In light profile (white mode), each of the 4 LED output channels is exposed as its own group:

GroupChannelTyperead-onlyAdvancedDescription
light1brightnessMultiple (*)r/wLight 1: Main dimming control according to openHAB Light Control Convention
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light2Same for LED light 2
light3Same for LED light 3
light4Same for LED light 4
meterSame as color mode, see above

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Pro RGBWW PM (thing-type: shellyprorgbwwpm) ​

The active device profile (light, rgbcct, cctx2 or rgbx2light) is selected in the Shelly App/device settings and determines which channel groups below are populated. Changing the profile requires deleting and re-discovering the Thing.

In rgbcct or rgbx2light profile, the RGB component is exposed as the color component (color mode):

GroupChannelTyperead-onlyAdvancedDescription
controlpowerSwitchr/wyesSwitch light ON/OFF
brightnessMultiple (*)r/wyesDimming control according to openHAB Light Control Convention
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
colorhsbMultiple (*)r/wMain full color control according to openHAB Light Control Convention
fullStringr/wyesValid settings: "red", "green", "blue", "yellow", "white" or "r,g,b"
redDimmerr/wyesRed brightness: 0..100% (control only the red channel)
greenDimmerr/wyesGreen brightness: 0..100% (control only the green channel)
blueDimmerr/wyesBlue brightness: 0..100% (control only the blue channel)
meter1currentPowerNumberyesCurrent power consumption in Watts
energyAvg1MinNumberyesEnergy consumed in the previous minute (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
lastUpdateDateTimeyesTimestamp of the last measurement

Note: rgbcct and rgbx2light combine the RGB component above with additional CCT (rgbcct) or Light (rgbx2light) components. Each additional component is exposed as its own light1/light2 group (same layout as the light profile below) with its own independent meter (meter2/meter3). Since every profile has more than one meter, the device also gets the aggregated device#accumulatedPower/device#totalEnergy channels described in the general notes on channels above.

In light profile (white mode), each of the 5 LED output channels is exposed as its own group:

GroupChannelTyperead-onlyAdvancedDescription
light1brightnessMultiple (*)r/wLight 1: Main dimming control according to openHAB Light Control Convention
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light2Same for LED light 2
light3Same for LED light 3
light4Same for LED light 4
light5Same for LED light 5
meter1Meter for LED light 1, see meter group in color mode above
meter2Meter for LED light 2 (if configured)
meter3Meter for LED light 3 (if configured)
meter4Meter for LED light 4 (if configured)
meter5Meter for LED light 5 (if configured)

In cctx2 profile (dual color-temperature mode), the device exposes two independent CCT components (CCT:0 and CCT:1), each controlling its own warm/cold white pair; they are each exposed as their own channel group, with its own independent meter:

GroupChannelTyperead-onlyAdvancedDescription
light1brightnessMultiple (*)r/wLight 1: Main dimming control according to openHAB Light Control Convention
temperature-pctMultiple (*)r/wColor temperature percent control according to openHAB Light Control Convention
temperatureNumber:Temperaturer/wyesAbsolute color temperature (K) control according to openHAB Light Control Convention
autoOnNumberr/wSets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wSets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesON: An auto-on/off timer is active
light2Same for CCT light 2
meter1Meter for CCT light 1, see meter group above
meter2Meter for CCT light 2, see meter group above

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus Mini Series ​

Shelly Plus 1 Mini (thing-type: shelly1mini) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events

Shelly Plus 1PM Mini (thing-type: shelly1pmmini) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
frequencyNumberyesGrid frequency in Hertz (Hz)

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plus PM Mini (thing-type: shellypmmini) ​

GroupChannelTyperead-onlyDescription
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
frequencyNumberyesGrid frequency in Hertz (Hz)

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Plug PM Gen3 (thing-type: shellyplusplugpm) ​

The Plug PM Gen3 measures power only, it has no relay to switch.

GroupChannelTyperead-onlyDescription
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
voltageNumberyesVoltage in Volt (V)
currentNumberyesCurrent in Ampere (A)
frequencyNumberyesGrid frequency in Hertz (Hz)

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly EM Mini (thing-type: shellyemmini) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see general notes on channels
buttonTriggeryesEvent trigger, see section Button Events
lastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh since the device powered up (resets on restart)
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
frequencyNumberyesGrid frequency (Hz)
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh since the device powered up (resets on restart)
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
frequencyNumberyesGrid frequency (Hz)
lastUpdateDateTimeyesTimestamp of the last measurement

Shelly Pro Series ​

Shelly Pro 1 (thing-type: shellypro1) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for channel 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active

Shelly BLU Gateway, BLU Gateway 3 (thing-type: shellyblugw) ​

There are no additional channels besides the device group.

Shelly Pro 1 PM (thing-type: shellypro1pm) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
input1SwitchyesON: Input/Button for input 1 is powered, see general notes on channels
button1TriggeryesEvent trigger, see section Button Events
lastEvent1StringyesLast event type (S/SS/SSS/L) for input 1
eventCount1NumberyesCounter gets incremented every time the device issues a button event.
input2SwitchyesON: Input/Button for channel 2 is powered, see general notes on channels
button2TriggeryesEvent trigger, see section Button Events
lastEvent2StringyesLast event type (S/SS/SSS/L) for input 2
eventCount2NumberyesCounter gets incremented every time the device issues a button event.
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Pro CB (thing-type: shellyprocb, shellypro1cb) ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
metervoltageNumberyesRMS voltage, Volts

All models have a single circuit breaker in group relay. A model with one voltmeter reports the voltage in group meter, a model with several voltmeters uses meter1..meter3. New things are created as shellyprocb, existing shellypro1cb things keep working.

Shelly Pro 2 (thing-type: shellypro2-relay) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events

Shelly Pro 2 PM - relay mode (thing-type: shellypro2pm-relay) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Pro 2 PM - roller mode (thing-type: shellypro2pm-roller) ​

GroupChannelTyperead-onlyDescription
rollercontrolRollershutterr/wcan be open (0%), stop, or close (100%); could also handle ON (open) and OFF (close)
rollerPosDimmerr/wRoller position: 100%=open...0%=closed; gets updated when the roller stopped
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
stateStringyesRoller state: open/close/stop
stopReasonStringyesLast stop reasons: normal, safety_switch or obstacle
safetySwitchyesIndicates status of the Safety Switch, ON=problem detected, powered off
eventTriggeryesRoller event/trigger with payload ROLLER_OPEN / ROLLER_CLOSE / ROLLER_STOP
metercurrentPowerNumberyesCurrent power consumption in Watts
energyHistMin1NumberyesTotal energy consumed during the previous complete minute, minute -1 (Wh)
energyHistMin2NumberyesTotal energy consumed during the complete minute 2 minutes ago, minute -2 (Wh)
energyHistMin3NumberyesTotal energy consumed during the complete minute 3 minutes ago, minute -3 (Wh)
energyAvgLast3MinNumberyesAverage of the total energy per minute over the previous 3 complete minutes, minutes -1 to -3 (Wh)
totalEnergyNumberyesTotal energy consumption in kWh
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Pro 3 (thing-type: shellypro3) ​

GroupChannelTyperead-onlyDescription
relay1outputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay2outputSwitchr/wRelay #2: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #2: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #2: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #2: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
relay3outputSwitchr/wRelay #3: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #3: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #3: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #3: ON: An auto-on/off timer is active
buttonTriggeryesRelay #3: Event trigger, see section Button Events

Shelly Pro 3EM (thing-type: shellypro3em) ​

GroupChannelTyperead-onlyDescription
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement
meter3currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
lastUpdateDateTimeyesTimestamp of the last measurement

Shelly Pro EM-50 (thing-type: shellyproem50) ​

GroupChannelTyperead-onlyDescription
meter1currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
meter2currentPowerNumberyesCurrent power consumption in Watts
totalEnergyNumberyesTotal energy consumption in kWh
returnedEnergyNumberyesTotal returned energy, kWh
reactivePowerNumber:PoweryesInstantaneous reactive power (VAR)
apparentPowerNumber:PoweryesInstantaneous apparent power (VA)
voltageNumberyesRMS voltage, Volts
currentNumberyesCurrent in A
powerFactorNumberyesPower factor (-1.0 to 1.0)
resetTotalsSwitchr/wSend ON to reset the accumulated energy counters for this meter
lastUpdateDateTimeyesTimestamp of the last measurement
relayoutputSwitchr/wRelay #1: Controls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events

Note: totalEnergy might reset on restart depending on device type and firmware version

Shelly Pro 4PM (thing-type: shellypro4pm) ​

GroupChannelTyperead-onlyDescription
relay1r/wRelay #1 with control options and status values
relay2r/wRelay #2 with control options and status values
relay3r/wRelay #3 with control options and status values
relay4r/wRelay #4 with control options and status values
meter1r/wPower Meter #1 with measurement values
meter2r/wPower Meter #2 with measurement values
meter3r/wPower Meter #3 with measurement values
meter4r/wPower Meter #4 with measurement values

Shelly BLU Devices ​

Shelly BLU Button 1 (thing-type: shellyblubutton) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
statuslastEventStringyesLast event type (S/SS/SSS/L)
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU Wall Switch 4 (thing-type: shellybluwallswitch4) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
status1lastEventStringyesLast event type (S/SS/SSS/L/H) for button 1
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status2lastEventStringyesLast event type (S/SS/SSS/L/H) for button 2
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status3lastEventStringyesLast event type (S/SS/SSS/L/H) for button 3
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status4lastEventStringyesLast event type (S/SS/SSS/L/H) for button 4
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU RC Button 4 (thing-type: shellyblurcbutton4) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
status1lastEventStringyesLast event type (S/SS/SSS/L/H) for button 1
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status2lastEventStringyesLast event type (S/SS/SSS/L/H) for button 2
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status3lastEventStringyesLast event type (S/SS/SSS/L/H) for button 3
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
status4lastEventStringyesLast event type (S/SS/SSS/L/H) for button 4
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last measurement
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU Door/Window Sensor (thing-type: shellybludw) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorsstateContactyesOPEN: Contact is open, CLOSED: Contact is closed
luxNumberyesBrightness in Lux
tiltNumberyesTilt in ° (angle), -1 indicates that the sensor is not calibrated
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU Motion Sensor (thing-type: shellyblumotion) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorsmotionSwitchyesON: Motion detected
luxNumberyesBrightness in Lux
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU H&T (thing-type: shellybluht) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorstemperatureNumberyesTemperature, unit is reported by tempUnit
humidityNumberyesRelative humidity in %
eventCountNumberyesCounter gets incremented every time the device issues a button event.
buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)

Shelly BLU Distance (thing-type: shellybludistance) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorsdistanceNumberyesDistance in mm
vibrationSwitchyesON: Vibration detected
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Shelly BLU Remote (thing-type: shellybluremote) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorschannelNumberyesSelected channel
stepsNumberyesNumber of steps the wheel was moved
rotationXNumberyesRotation X axis
rotationYNumberyesRotation Y axis
rotationZNumberyesRotation Z axis
directionNumberyesup / down
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
status1buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastEventStringyesLast event type (S/SS/SSS/L/H) for button 1
eventCountNumberyesCounter gets incremented every time the device issues a button event.
status2buttonTriggeryesEvent trigger with payload, see SHORT_PRESSED or LONG_PRESSED
lastEventStringyesLast event type (S/SS/SSS/L/H) for button 1
eventCountNumberyesCounter gets incremented every time the device issues a button event.
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet

Ecowitt WS90 Weather Station (Shelly BLU) (thing-type: shellybluws90) ​

See notes on discovery of Shelly BLU devices above.

GroupChannelTyperead-onlyDescription
sensorstemperatureNumber:TemperatureyesTemperature in degrees Celsius
humidityNumber:DimensionlessyesRelative humidity in %
uvIndexNumberyesUV Index (dimensionless, 0-11+)
luxNumber:IlluminanceyesBrightness in Lux (created once the device reports a value)
windSpeedNumber:SpeedyesWind speed in m/s
windDirectionNumber:AngleyesWind direction in degrees (0-360)
windDirectionStrStringyesWind direction as 16-point compass rose label (N, NNE, NE, ...)
gustSpeedNumber:SpeedyesWind gust speed in m/s
pressureNumber:PressureyesAtmospheric pressure in hPa
seaLevelPressureNumber:PressureyesAtmospheric pressure reduced to sea level using the altitude configuration
dewPointNumber:TemperatureyesDew point in degrees Celsius
apparentTempNumber:TemperatureyesPerceived ("feels like") temperature from temperature, humidity and wind (Steadman)
rainStatusSwitchyesON: It's raining, OFF: It's not raining
precipitationNumber:LengthyesAccumulated rainfall in mm (monotonic total since sensor reset)
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batterybatteryLevelNumberyesBattery Level in %
lowBatterySwitchyesLow battery alert (< 20%)
capacitorVoltageNumber:ElectricPotentialyesVoltage of the internal energy storage capacitor charged by the solar panel in V
devicegatewayDeviceStringyesShelly forwarded last status update (BLU gateway), could vary from packet to packet
firmwareStringyesFirmware version (may be empty — not all firmware versions report it)

The rainStatus channel latches ON for a while after it has actually stopped raining, a hardware behavior of the WS90's piezo rain sensor rather than a binding issue.

The WS90 reports additional metrics (hourly/24h rainfall totals, all-time high/low records) that are not exposed as channels. These are cumulative statistics tracked by the sensor itself rather than live measurements, and are better handled with openHAB's own persistence/rules (e.g. via rrd4j or influxdb on precipitation/temperature) than duplicated as binding channels.

See WS90 Weather Station: Setup and Rain Automation with openHAB for a tutorial covering setup, this firmware behavior, and example rules for reliable rain detection and deriving 1h/24h rainfall totals via openHAB persistence.

A debounced "is it raining" switch (holding ON for a while after rainStatus turns OFF) can be built with a small rule instead of a binding feature:

rules
rule "WS90 Rain Switch with hold-off"
when
    Item ShellyWS90_RainStatus changed
then
    if (ShellyWS90_RainStatus.state == ON) {
        RainSwitch.postUpdate(ON)
    } else {
        createTimer(now.plusMinutes(10), [ | RainSwitch.postUpdate(OFF) ])
    }
end

Shelly Wall Displays ​

GroupChannelTyperead-onlyDescription
relayoutputSwitchr/wControls the relay's output channel (on/off)
outputNameStringyesLogical name of this relay output as configured in the Shelly App
inputSwitchyesON: Input/Button is powered, see General Notes on Channels
autoOnNumberr/wRelay #1: Sets a timer to turn the device ON after every OFF command; in seconds
autoOffNumberr/wRelay #1: Sets a timer to turn the device OFF after every ON command; in seconds
timerActiveSwitchyesRelay #1: ON: An auto-on/off timer is active
buttonTriggeryesEvent trigger, see section Button Events
sensorstemperatureNumberyesTemperature reported by the integrated sensor
humidityNumberyesRelative Humidity in percent reported by the integrated sensor
luxNumberyesBrightness in Lux reported by the integrated sensor
lastUpdateDateTimeyesTimestamp of the last update (any sensor value changed)
batteryLevelNumberyesBattery level of an attached battery-operated sensor in percent
lowBatterySwitchyesON: Battery of the attached sensor is low
devicerelayInThermostatSwitchyesON: The relay output is used by a thermostat/climate profile
sensorInThermostatSwitchyesON: The temperature sensor input is used by a thermostat/climate profile
mediamediaControlPlayerr/wControl media playback (PLAY/PAUSE/NEXT/PREVIOUS)
volumeDimmerr/wMedia player volume in percent (0-100%)
titleStringyesTitle of the currently playing media
artistStringyesArtist of the currently playing media
albumStringyesAlbum of the currently playing media
mediaTypeStringyesType of the currently playing media, e.g. AUDIO, RADIO
playMediaIdNumberr/wStart playback of a media library item by its id
playRadioFavIdNumberr/wStart playback of a radio favorite by its id
controlthermostatEnableSwitchr/wEnable or disable the Wall Display thermostat
targetTempNumberr/wThermostat target temperature in °C
scheduleSwitchr/wON: The thermostat follows its schedule
selectedProfileStringr/wId of the active schedule profile, the profile names are offered as options

The media group is only available while the media player is configured on the Wall Display. Media library and radio favorite ids can be looked up in the Shelly app; there is no channel to browse them. title, artist, album and mediaType are UNDEF while nothing is playing. Enabling the media player in the Shelly app adds these channels with the next status update, so the Thing doesn't need to be re-created.

The control group is labeled Thermostat Control on the Wall Display. Its thermostatEnable and targetTemp channels are only available while the thermostat is enabled in the Shelly app. The thermostat's current temperature and controlled output are shown by the existing sensors#temperature and relay#output channels. Enabling or disabling the thermostat in the Shelly app adds or removes these channels with the next status update, so the Thing doesn't need to be re-created.

The schedule and selectedProfile channels are available when the thermostat reports a schedule. selectedProfile accepts the id or the name of a profile. The ids and names of the profiles configured in the Shelly app are offered as options (for a Selection widget). Profiles and schedule rules themselves can only be edited in the Shelly app. The list of profiles is read when the Thing is initialized, and again when the device reports a profile that is not in the list yet. Renamed profiles are picked up when the Thing is initialized again, e.g. after a device restart.

The sensors group's batteryLevel and lowBattery channels are only available while a battery-operated sensor is attached to the Wall Display. Pairing a sensor after the Thing was created adds them with the next status update, unpairing the sensor removes them again.

Full Example ​

shelly.things ​

dsl
/* Shelly 2.5 Roller */
Thing shelly:shelly25-roller:XXXXX1 "Shelly 25 Roller XXXXX1" @ "Home Theater" [deviceIp="x.x.x.x", userId="", password=""]
Thing shelly:shelly25-roller:XXXXX2 "Shelly 25 Roller XXXXX2" @ "Living Room"  [deviceIp="x.x.x.x", userId="admin", password="secret"]

/* Shelly 2.5 Relays */
Thing shelly:shelly25-relay:XXXXX3 "Shelly 25 Relay XXXXX3" @ "Hall Way" [deviceIp="x.x.x.x", userId="", password=""]
Thing shelly:shelly25-relay:XXXXX4 "Shelly 25 Relay XXXXX4" @ "Dining Room" [deviceIp="x.x.x.x", userId="", password=""]
Thing shelly:shelly25-relay:XXXXX5 "Shelly 25 Relay XXXXX5" @ "Bed Room" [deviceIp="x.x.x.x", userId="", password=""]

/* Other *
Thing shelly:shellyht:e01691 "ShellyChimenea" @ "lowerground" [ deviceIp="10.0.55.101", userId="", password="", lowBattery=15 , eventsCoIoT=true ]
Thing shelly:shellyht:e01681 "ShellyDormitorio" @ "upperground" [ deviceIp="10.0.55.102", userId="", password="", lowBattery=15 , eventsCoIoT=true ]
Thing shelly:shellyflood:XXXXXX "ShellyFlood" @ "cellar" [ deviceIp="10.0.0.103", userId="", password="", lowBattery=15, eventsSwitch=true, eventsButton=true, eventsCoIoT=true ]

shelly.items ​

dsl
/* Relays */
Switch Shelly_XXXXX3_Relay        "Garage Light"                  {channel="shelly:shelly1:XXXXX3:relay#output"}
Number Shelly_XXXXX3_AutoOnTimer  "Garage Light Auto On Timer"    {channel="shelly:shelly1:XXXXX3:relay#autoOn"}
Number Shelly_XXXXX3_AutoOffTimer "Garage Light Auto Off Timer"   {channel="shelly:shelly1:BA2F18:relay#autoOff"}
Switch Shelly_XXXXX3_Relay        "Garage Light"                  {channel="shelly:shelly1:XXXXX3:relay#output"}
Switch Shelly_XXXXX3_Input        "Garage Switch (Input)"         {channel="shelly:shelly1:XXXXX3:relay#input"}

/* Sensors */
Number ShellyHT_Dormitorio_Temp  "Dormitorio Temperature" <temperature> {channel="shelly:shellyht:e01681:sensors#temperature"}
Number ShellyHT_Dormitorio_Humid "Dormitorio Humidity"    <humidity>    {channel="shelly:shellyht:e01681:sensors#humidity"}
Number ShellyHT_Dormitorio_Batt  "Dormitorio Battery"     <battery>     {channel="shelly:shellyht:e01681:battery#batteryLevel"}
Number ShellyHT_Chimenea_Temp    "Chimenea Temperature"   <temperature> {channel="shelly:shellyht:e01691:sensors#temperature"}
Number ShellyHT_Chimenea_Humid   "Chimenea Humidity"      <humidity>    {channel="shelly:shellyht:e01691:sensors#humidity"}
Number ShellyHT_Chimenea_Batt    "Chimenea Battery"       <battery>     {channel="shelly:shellyht:e01691:battery#batteryLevel"}
Number ShellyF_Sotano_Temp       "Sotano Temperature"     <temperature> {channel="shelly:shellyflood:764fe0:sensors#temperature"}
Number ShellyF_Sotano_Batt       "Sotano Battery"         <battery>     {channel="shelly:shellyflood:764fe0:battery#batteryLevel"}
Switch ShellyF_Sotano_Flood      "Sotano Flood Alarm"     <alarm>       {channel="shelly:shellyflood:764fe0:sensors#flood"}

/* Dimmer */
Switch DimmerSwitch     "Light on/off"                       {channel="shelly:shellydimmer:XXX:relay#brightness"}
Dimmer DimmerBrightness "Garage Light Brightness"            {channel="shelly:shellydimmer:XXX:relay#brightness"}
Dimmer DimmerIncDec     "Garage Light +/-"                   {channel="shelly:shellydimmer:XXX:relay#brightness"}

Number Shelly_Power     "Bath Room Light Power"                {channel="shelly:shelly1:XXXXXX:meter#currentPower"} /* Power Meter */

shelly.rules ​

Catch alarms ​

rules
rule "Monitor Shelly Restart"
when
    Channel "shelly:shelly2-relay:XXXXXX:device#alarm" triggered OVERTEMP
then
        logInfo("Shelly1", "Device is getting to hot!!")
end

Trigger scene with Button-1 ​

rules
rule "Button-1 SHORT_PRESSED"
when
    Channel "shelly:shellybutton1:d8f15bXXXXXX:status#button" triggered SHORT_PRESSED
then
    logInfo("Button", "Shelly Button reported SHORT_PRESSED")
    if (MyTV.state != OFF) {
        logInfo("Button", "   switch TV OFF")
        sendCommand(MyTV, "OFF")
    } else {
        logInfo("Button", "   switch TV to ON")
        sendCommand(MyTV, ON)
    }
end

rule "Button-1 TRIPLE_PRESSED"
when
    Channel "shelly:shellybutton1:d8f15bXXXXXX:status#button" triggered TRIPLE_PRESSED
then
    logInfo("Button", "Shelly Button reported TRIPLE_PRESSED")
end

Observe battery status ​

pre-requisites:

  • Install Send Mail Action
  • Define a group called gBatteries 'Group gBattery "Batterien" <battery> (All)'
  • Link battery channel for all your Shelly battery powered devices
  • Add battery items to group gBattery
rules
val String mailTo     = "alarm@openhab.me"

/* ------------- Battery Monitor ----------- */

rule "Battery Monitor"
when
    System started or
    Time cron "0 0 10 * * ?"
then
    logInfo("BatteryMon", "Check Battery state")

    if (! gBattery.allMembers.filter([state < lowBatteryThreshold]).empty) {
        message = "Battery levels:\n"

        var report = gBattery.allMembers.filter([ state instanceof DecimalType ]).sortBy([ state instanceof DecimalType ]).map[
        name + ": " + state.format("%d%%\n") ]
        message = message + report

        message = message + "\nBattery Level:\n"
        gBattery?.allMembers.forEach([sw|
            message = message + sw.name + ": " + state.format("%d%%\n")
        ])

        sendMail(mailTo, "Home: LOW Battery Alert!", message)
    }
    logInfo("BatteryMon", "Batteries checked.")
end

Control CCT LED stripes ​

Usage & Requirements:

  • 4 Items per Thing required. Example:
dsl
Group     gCCT_LED        "All CCT LEDs"
Dimmer    LED1_brightness     "Brightness"    (gCCT_LED)
Dimmer    LED1_temperature    "Temperature"   (gCCT_LED)
Dimmer    LED1_cw         "cold white Channel"
Dimmer    LED1_ww         "warm white Channel"
  • Items "LED1" and "LED1_temperature" are proxy items and to be used in sitemaps. Both have to be a member of group "gCCT_LED"
  • Items "LED1_cw" and "LED_ww" are items linked to Thing channel. Not required in sitemaps. Do NOT include in this group
  • Prefix: needs to be constant per Thing.
rules
val String strSuffixSeparator = "_"             //Separator: 1 unique separator
val String strSuffixBrightness = "brightness"           //Suffix: at your choice
val String strSuffixTemperature = "temperature"         //Suffix: at your choice

rule "CCT_LED"
when
    Member of gCCT_LED changed
then
    logInfo("CCT_LED", "Item '{}' received command {}",triggeringItem.name,triggeringItem.state)
    var Number iNewCwState     //New value for cold white channel
    var Number iNewWwState     //New value for warm white channel
    val String strThing = triggeringItem.name.toString.split(strSuffixSeparator).get(0)     //Get Name of "Thing", i.e. LED1 or LED2 or...
    val String strType = triggeringItem.name.toString.split(strSuffixSeparator).get(1)      //Get Type (brightness oder temperature)

    if ((strType == strSuffixBrightness) && (triggeringItem.state as Number) == 0) {        //no math required. just switch off
        iNewCwState = 0
        iNewWwState = 0
    }
    else {
        var iBrightness = gCCT_LED.members.findFirst[ t | t.name == strThing+strSuffixSeparator+strSuffixBrightness ].state as Number
        var iColor = gCCT_LED.members.findFirst[ t | t.name == strThing+strSuffixSeparator+strSuffixTemperature ].state as Number
        logInfo("CCT_LED", "Setting 'Brightness' to {} and 'White Color' to {}",iBrightness,iColor)
        iNewWwState = Math::round ((iColor / 100 * iBrightness).intValue)
        iNewCwState = iBrightness - iNewWwState
    }
    logInfo("CCT_LED", "Changing channel 'Cold White' to {} and 'Warm White' to {}",iNewCwState,iNewWwState)
    sendCommand(strThing + "_cw", iNewCwState.toString)
    sendCommand(strThing + "_ww", iNewWwState.toString)
end

Reading Colors from Color Picker ​

rules
import org.openhab.core.library.types.*

rule "Get input change from garage light"
when
    Item Shelly_XXXXX3_Input changed to ON
then
    logInfo("Garage", "Light input is ON")
    BackDoorLight.sendCommand(ON)
end

rule "Momentary Switch events"
when
    Channel "shelly:shellydevice:XXXXXX:relay1#button" triggered SHORT_PRESSED
then
    logInfo("Relay", "A short push was detected")
end


rule "Shelly alarms"
when
    Channel "shelly:shellydevice:XXXXXX:device#alarm"       triggered or
    Channel "shelly:shelly25-roller:XXXXXX:device#alarm"    triggered
then
    if (receivedEvent !== null) { // A (channel) event triggered the rule
        eventSource = triggeredChannel
        eventType = receivedEvent
        ...
    }
end

rule "Color changed"
when
    Item ShellyColor changed
then
    var HSBType hsbValue = ShellyColor.state as HSBType
    var int redValue = hsbValue.red.intValue
    var int greenValue = hsbValue.green.intValue
    var int blueValue = hsbValue.blue.intValue
end

shelly.sitemap ​

dsl
sitemap demo label="Home"
{
        Frame label="Dimmer" {
            Switch   item=DimmerSwitch
            Slider   item=DimmerBrightness
            SetPoint item=DimmerIncDec

            Number   item=ShellyHT_Dormitorio_Temp
            Number   item=ShellyHT_Chimenea_Humid
            Number   item=ShellyF_Sotano_Batt
            Number   item=Shelly_Power
        }
}


<EditPageLink/>