Shelly 2PM Gen4 – Dual in-wall switch with power metering
Pickup available at Dynamodz
Usually ready in 2-4 days
Shipping information
Shipping information
Orders placed on weekdays before 4:00 PM and in stock will be shipped the same day . In most cases, your order will be delivered the next day. More details can be found in our shipping policy .
Description
Description
Dual in-wall switch with energy metering
Switching two circuits from a single 37 x 42 x 16 mm in-wall module: that is the core of the Shelly 2PM Gen4. The module fits into a standard junction box and is suitable for both lighting and electrically operated roller shutters, screens, and blinds. Thanks to built-in energy metering per channel, you can see exactly what each circuit consumes.
Power supply and connectivity
The Shelly 2PM Gen4 operates on 110-240 V AC or 24 V DC (±10%) and consumes less than 1.4 W itself. Connectivity is multiprotocol: WiFi 6 (802.11 b/g/n/ax), Zigbee 3.0 (802.15.4), Bluetooth 5.0, and Matter via WiFi. The module operates in Matter mode by default. Pressing the button five times switches to Zigbee mode, after which the device is in pairing mode for three minutes. As a mains-powered device, the Shelly 2PM Gen4 functions as a Zigbee Router, thereby extending the Zigbee range in the home.
Functionality and settings
Each channel switches independently up to 10 A (AC and DC), with a combined maximum of 16 A (peak 18 A). The built-in energy metering records voltage, current, and power per channel separately, including an internal temperature sensor. In cover mode, you control motor-driven roller shutters or Venetian blinds, including calibration for precise end positions and slat management.
Via scripting (JavaScript-based) and webhooks, the module is extensively customizable. Up to 20 schedules and 20 webhooks (each with a maximum of 5 URLs) can be configured. The web interface offers direct access for configuration without an app.
Expansion and accessories
The Shelly 2PM Gen4 has a Shelly-proprietary serial add-on interface for expansions. Combine the module with other devices from the Shelly collection for a broader smart home network. Physical switches can be connected to the S1 and S2 inputs for local control in addition to the app or home automation platform. Want to expand your Zigbee network? Check out the Zigbee controllers in the assortment.
Safety and reliability
The module has built-in protection against overheating, overvoltage, overcurrent, and overload. In cover mode, obstacle detection and a safety switch are active. The housing is IP20 rated and suitable for indoor use at temperatures from -20 °C to +40 °C. ⚠️ External protection requires a circuit breaker with characteristic B or C, a maximum of 16 A, and a minimum 6 kA short-circuit current.
Home Assistant
The Shelly 2PM Gen4 integrates with Home Assistant via WiFi, Zigbee, or Matter.
Via WiFi (Shelly integration, recommended)
The Shelly integration automatically detects the module via mDNS as soon as it is on the same network.
- Go to Settings > Integrations and accept the automatically discovered Shelly 2PM Gen4, or enter the IP address manually.
- After pairing, two switch entities (or cover in roller shutter mode), two power and energy sensors per channel, a voltage sensor, and an internal temperature sensor will appear.
- Local control via the HTTP RPC API is confirmed. Cloud connection is optional and can be disabled.
Via Zigbee (ZHA or Zigbee2MQTT)
Press the button five times to switch the module to Zigbee mode. The module functions as a Zigbee Router.
- ZHA: add via Add Device in the ZHA integration.
- Zigbee2MQTT: pair using the permit_join method; the device is supported as a router in the Zigbee network.
Via Matter
In the default Matter mode, you add the module via the HA Matter integration using the QR code on the device. Matter over WiFi does not require a Thread Border Router. The default Matter profile is Switch.
Homey
The Shelly 2PM Gen4 works with Homey Pro via the official Shelly app from the Homey App Store. WiFi connection is direct and local. Zigbee pairing is done via the Homey Pro's built-in Zigbee radio. Matter is supported on Homey Pro 2023 and newer. Via Homey Bridge, only cloud-based WiFi pairing is possible, without local integration or Zigbee.
Other platforms
- Google Home: compatible via Matter or Shelly cloud
- Amazon Alexa: compatible via Shelly cloud or Matter
- Apple HomeKit: compatible via Matter, no separate bridge required
- Samsung SmartThings: compatible via Matter or Shelly cloud
- Domoticz: compatible via MQTT or the Shelly HTTP API
- KNX: supported via KNXnet/IP
Automation examples
Automatically close roller shutters at sunset
- Set the Shelly 2PM Gen4 to cover mode via the web interface or Shelly app.
- In Home Assistant, create an automation with trigger: sun sets (offset: 0 minutes).
- Optionally add a condition: only on weekdays.
- Action: close the cover via the cover entity of channel 1 or 2.
- Save and test manually via Developer Tools > Actions.
Activate ventilation based on humidity sensor
- Use a humidity sensor as a trigger source in Home Assistant.
- Trigger: humidity rises above 75% for at least 3 minutes.
- Action 1: switch on channel 1 via the switch entity of the Shelly 2PM Gen4 (fan).
- Action 2: send a mobile notification via the HA Companion app: "Ventilation started in bathroom."
- Add a second automation: switch off when humidity drops below 60%.
Points of attention
- Suitable for indoor use only (IP20).
- In cover mode, only use motors with electronic or mechanical limit switches; set them correctly before connection.
- ⚠️ The add-on interface is live when the device is powered. Always disconnect power before touching.
- Matter is the default mode. You activate Zigbee mode separately with five button presses. Both modes simultaneously are not possible.
- Required circuit breaker: characteristic B or C, maximum 16 A, minimum 6 kA short-circuit current.
Package contents
- 1x Shelly 2PM Gen4 module (S4SW-002P16EU)
- 1x Multilingual user and safety guide
Compatibility
Home Assistant (WiFi, Zigbee, Matter), Homey Pro, Google Home, Amazon Alexa, Apple HomeKit, Samsung SmartThings, Domoticz, HomeSeer, IFTTT, KNX (KNXnet/IP), Shelly Smart Control (iOS and Android), Zigbee2MQTT, ZHA, MQTT, local HTTP API.
| Article number | S4SW-002P16EU |
| EAN | 3800238070748 |
| Brand | Shelly |
| Power supply | 110-240 V AC / 24 V DC (±10%) |
| Self-consumption | < 1.4 W |
| Max. switching current per channel | 10 A (AC and DC) |
| Max. total switching current | 16 A (peak 18 A) |
| Max. switching voltage | 240 V AC / 30 V DC |
| Number of channels | 2 |
| Energy metering | Per channel (voltage, current, power) |
| Internal temperature sensor | Yes |
| WiFi | 802.11 b/g/n/ax (WiFi 6), 2.4 GHz |
| Bluetooth | 5.0 |
| Zigbee | 3.0 (802.15.4), Router |
| Matter | Via WiFi (default mode) |
| Dimensions (H x W x D) | 37 x 42 x 16 mm |
| Weight | 30 g |
| Mounting | Flush-mounted (junction box) |
| IP rating | IP20 |
| Operating temperature | -20 °C to +40 °C |
| Humidity | 30-70% RH |
| Schedules | 20 |
| Webhooks | 20 (max. 5 URLs per hook) |
| Scripting | Yes (JavaScript-based) |
| MQTT | Yes |
| KNX | Via KNXnet/IP |
| Color | Black |
Frequently Asked Questions
How do I pair the Shelly 2PM Gen4 with Home Assistant?
Connect the module to your home network via WiFi using the Shelly app or web interface. Home Assistant will automatically detect the device via mDNS. Go to Settings > Integrations and accept the notification for the Shelly 2PM Gen4. If you prefer to use Zigbee, press the button five times to switch to Zigbee mode and pair via ZHA or Zigbee2MQTT. More information can be found in the Home Assistant collection.
Do I need a hub for the Shelly 2PM Gen4?
Via WiFi, the module works completely without a hub. You manage the device locally via the web interface, the Shelly app, or directly from Home Assistant. For Zigbee, you need a Zigbee controller. Matter over WiFi does not require a separate hub.
Are batteries included?
The Shelly 2PM Gen4 operates on 110-240 V AC or 24 V DC and is directly connected to the fixed wiring. Batteries are not applicable and not included.
Can I expand the module with additional sensors?
The Shelly 2PM Gen4 has a Shelly-proprietary serial add-on interface for expansions. ⚠️ This interface is live when the device is powered; always switch off the power before connecting. See the full Shelly assortment for compatible add-ons.
Can I control two roller shutters or screens independently?
Yes. In cover mode, each channel controls a separate motor. Roller shutter 1 and roller shutter 2 can be opened, closed, and positioned completely independently. Venetian blinds are supported, including slat control. Only use motors with electronic or mechanical limit switches and set these before connection.
Does the Shelly 2PM Gen4 also work locally without internet?
Fully local operation is possible via WiFi on the home network, the built-in web interface, MQTT, or the local HTTP API. Cloud connection is optional and can be disabled in the settings. Via Home Assistant, you also have access to all functions and automations without the Shelly cloud.
What is the difference with the Shelly 2PM Gen3?
The Shelly 2PM Gen4 has a faster processor, more memory, and WiFi 6 (802.11ax) compared to the Gen3. New is the Zigbee 3.0 radio, which allows the device to function as a Zigbee Router and strengthen the network. Matter support via WiFi has also been added.
🔓 Order today at slimhuisje.nl and connect the Shelly 2PM Gen4 to Home Assistant within 5 minutes. Smart solution!
Payment convenience: pay the way you want







