{"product_id":"shelly-2pm-gen4","title":"Shelly 2PM Gen4 – Dual in-wall switch with power metering","description":"\u003ch2\u003eDual in-wall switch with energy metering\u003c\/h2\u003e\n\n\u003cp\u003eSwitching 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.\u003c\/p\u003e\n\n\u003ch2\u003ePower supply and connectivity\u003c\/h2\u003e\n\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\n\u003ch2\u003eFunctionality and settings\u003c\/h2\u003e\n\n\u003cp\u003eEach 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.\u003c\/p\u003e\n\n\u003cp\u003eVia 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.\u003c\/p\u003e\n\n\u003ch2\u003eExpansion and accessories\u003c\/h2\u003e\n\n\u003cp\u003eThe Shelly 2PM Gen4 has a Shelly-proprietary serial add-on interface for expansions. Combine the module with other devices from the \u003ca href=\"\/en\/collections\/shelly\" title=\"Shelly collection\"\u003eShelly collection\u003c\/a\u003e 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 \u003ca href=\"\/en\/collections\/smart-home-usb-controller?sort_by=best-selling\u0026amp;filter.p.m.custom.protocol=Zigbee\" title=\"Zigbee USB controllers\"\u003eZigbee controllers\u003c\/a\u003e in the assortment.\u003c\/p\u003e\n\n\u003ch2\u003eSafety and reliability\u003c\/h2\u003e\n\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\n\u003ch2\u003eHome Assistant\u003c\/h2\u003e\n\n\u003cp\u003eThe Shelly 2PM Gen4 integrates with \u003ca href=\"\/en\/collections\/home-assistant\" title=\"Home Assistant collection\"\u003eHome Assistant\u003c\/a\u003e via WiFi, Zigbee, or Matter.\u003c\/p\u003e\n\n\u003ch3\u003eVia WiFi (Shelly integration, recommended)\u003c\/h3\u003e\n\u003cp\u003eThe Shelly integration automatically detects the module via mDNS as soon as it is on the same network.\u003c\/p\u003e\n\u003col\u003e\n  \u003cli\u003eGo to Settings \u003e Integrations and accept the automatically discovered Shelly 2PM Gen4, or enter the IP address manually.\u003c\/li\u003e\n  \u003cli\u003eAfter 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.\u003c\/li\u003e\n  \u003cli\u003eLocal control via the HTTP RPC API is confirmed. Cloud connection is optional and can be disabled.\u003c\/li\u003e\n\u003c\/ol\u003e\n\n\u003ch3\u003eVia Zigbee (ZHA or Zigbee2MQTT)\u003c\/h3\u003e\n\u003cp\u003ePress the button five times to switch the module to Zigbee mode. The module functions as a Zigbee Router.\u003c\/p\u003e\n\u003col\u003e\n  \u003cli\u003eZHA: add via Add Device in the ZHA integration.\u003c\/li\u003e\n  \u003cli\u003eZigbee2MQTT: pair using the permit_join method; the device is supported as a router in the Zigbee network.\u003c\/li\u003e\n\u003c\/ol\u003e\n\n\u003ch3\u003eVia Matter\u003c\/h3\u003e\n\u003cp\u003eIn 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.\u003c\/p\u003e\n\n\u003ch2\u003eHomey\u003c\/h2\u003e\n\n\u003cp\u003eThe Shelly 2PM Gen4 works with \u003ca href=\"\/en\/collections\/homey\" title=\"Homey collection\"\u003eHomey Pro\u003c\/a\u003e 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.\u003c\/p\u003e\n\n\u003ch2\u003eOther platforms\u003c\/h2\u003e\n\n\u003cul\u003e\n  \u003cli\u003eGoogle Home: compatible via Matter or Shelly cloud\u003c\/li\u003e\n  \u003cli\u003eAmazon Alexa: compatible via Shelly cloud or Matter\u003c\/li\u003e\n  \u003cli\u003eApple HomeKit: compatible via Matter, no separate bridge required\u003c\/li\u003e\n  \u003cli\u003eSamsung SmartThings: compatible via Matter or Shelly cloud\u003c\/li\u003e\n  \u003cli\u003eDomoticz: compatible via MQTT or the Shelly HTTP API\u003c\/li\u003e\n  \u003cli\u003eKNX: supported via KNXnet\/IP\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eAutomation examples\u003c\/h2\u003e\n\n\u003ch3\u003eAutomatically close roller shutters at sunset\u003c\/h3\u003e\n\u003col\u003e\n  \u003cli\u003eSet the Shelly 2PM Gen4 to cover mode via the web interface or Shelly app.\u003c\/li\u003e\n  \u003cli\u003eIn Home Assistant, create an automation with trigger: sun sets (offset: 0 minutes).\u003c\/li\u003e\n  \u003cli\u003eOptionally add a condition: only on weekdays.\u003c\/li\u003e\n  \u003cli\u003eAction: close the cover via the cover entity of channel 1 or 2.\u003c\/li\u003e\n  \u003cli\u003eSave and test manually via Developer Tools \u003e Actions.\u003c\/li\u003e\n\u003c\/ol\u003e\n\n\u003ch3\u003eActivate ventilation based on humidity sensor\u003c\/h3\u003e\n\u003col\u003e\n  \u003cli\u003eUse a \u003ca href=\"\/en\/collections\/slimme-temperatuursensoren\" title=\"Smart humidity sensors\"\u003ehumidity sensor\u003c\/a\u003e as a trigger source in Home Assistant.\u003c\/li\u003e\n  \u003cli\u003eTrigger: humidity rises above 75% for at least 3 minutes.\u003c\/li\u003e\n  \u003cli\u003eAction 1: switch on channel 1 via the switch entity of the Shelly 2PM Gen4 (fan).\u003c\/li\u003e\n  \u003cli\u003eAction 2: send a mobile notification via the HA Companion app: \"Ventilation started in bathroom.\"\u003c\/li\u003e\n  \u003cli\u003eAdd a second automation: switch off when humidity drops below 60%.\u003c\/li\u003e\n\u003c\/ol\u003e\n\n\u003ch2\u003ePoints of attention\u003c\/h2\u003e\n\n\u003cul\u003e\n  \u003cli\u003eSuitable for indoor use only (IP20).\u003c\/li\u003e\n  \u003cli\u003eIn cover mode, only use motors with electronic or mechanical limit switches; set them correctly before connection.\u003c\/li\u003e\n  \u003cli\u003e⚠️ The add-on interface is live when the device is powered. Always disconnect power before touching.\u003c\/li\u003e\n  \u003cli\u003eMatter is the default mode. You activate Zigbee mode separately with five button presses. Both modes simultaneously are not possible.\u003c\/li\u003e\n  \u003cli\u003eRequired circuit breaker: characteristic B or C, maximum 16 A, minimum 6 kA short-circuit current.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003ePackage contents\u003c\/h2\u003e\n\n\u003cul\u003e\n  \u003cli\u003e1x Shelly 2PM Gen4 module (S4SW-002P16EU)\u003c\/li\u003e\n  \u003cli\u003e1x Multilingual user and safety guide\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003ch2\u003eCompatibility\u003c\/h2\u003e\n\n\u003cp\u003eHome 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.\u003c\/p\u003e\n\n\u003ctable\u003e\n  \u003ctr\u003e\n\u003ctd\u003eArticle number\u003c\/td\u003e\n\u003ctd\u003eS4SW-002P16EU\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eEAN\u003c\/td\u003e\n\u003ctd\u003e3800238070748\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eBrand\u003c\/td\u003e\n\u003ctd\u003eShelly\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003ePower supply\u003c\/td\u003e\n\u003ctd\u003e110-240 V AC \/ 24 V DC (±10%)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eSelf-consumption\u003c\/td\u003e\n\u003ctd\u003e\u0026lt; 1.4 W\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMax. switching current per channel\u003c\/td\u003e\n\u003ctd\u003e10 A (AC and DC)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMax. total switching current\u003c\/td\u003e\n\u003ctd\u003e16 A (peak 18 A)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMax. switching voltage\u003c\/td\u003e\n\u003ctd\u003e240 V AC \/ 30 V DC\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eNumber of channels\u003c\/td\u003e\n\u003ctd\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eEnergy metering\u003c\/td\u003e\n\u003ctd\u003ePer channel (voltage, current, power)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eInternal temperature sensor\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eWiFi\u003c\/td\u003e\n\u003ctd\u003e802.11 b\/g\/n\/ax (WiFi 6), 2.4 GHz\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eBluetooth\u003c\/td\u003e\n\u003ctd\u003e5.0\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eZigbee\u003c\/td\u003e\n\u003ctd\u003e3.0 (802.15.4), Router\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMatter\u003c\/td\u003e\n\u003ctd\u003eVia WiFi (default mode)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eDimensions (H x W x D)\u003c\/td\u003e\n\u003ctd\u003e37 x 42 x 16 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eWeight\u003c\/td\u003e\n\u003ctd\u003e30 g\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMounting\u003c\/td\u003e\n\u003ctd\u003eFlush-mounted (junction box)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eIP rating\u003c\/td\u003e\n\u003ctd\u003eIP20\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eOperating temperature\u003c\/td\u003e\n\u003ctd\u003e-20 °C to +40 °C\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eHumidity\u003c\/td\u003e\n\u003ctd\u003e30-70% RH\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eSchedules\u003c\/td\u003e\n\u003ctd\u003e20\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eWebhooks\u003c\/td\u003e\n\u003ctd\u003e20 (max. 5 URLs per hook)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eScripting\u003c\/td\u003e\n\u003ctd\u003eYes (JavaScript-based)\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eMQTT\u003c\/td\u003e\n\u003ctd\u003eYes\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eKNX\u003c\/td\u003e\n\u003ctd\u003eVia KNXnet\/IP\u003c\/td\u003e\n\u003c\/tr\u003e\n  \u003ctr\u003e\n\u003ctd\u003eColor\u003c\/td\u003e\n\u003ctd\u003eBlack\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/table\u003e\n\n\u003ch2\u003eFrequently Asked Questions\u003c\/h2\u003e\n\n\u003ch3\u003eHow do I pair the Shelly 2PM Gen4 with Home Assistant?\u003c\/h3\u003e\n\u003cp\u003eConnect 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 \u003e 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 \u003ca href=\"\/en\/collections\/smart-home-usb-controller?sort_by=best-selling\u0026amp;filter.p.m.custom.protocol=Zigbee\" title=\"Zigbee USB controllers\"\u003eZHA or Zigbee2MQTT\u003c\/a\u003e. More information can be found in the \u003ca href=\"\/en\/collections\/home-assistant\" title=\"Home Assistant\"\u003eHome Assistant collection\u003c\/a\u003e.\u003c\/p\u003e\n\n\u003ch3\u003eDo I need a hub for the Shelly 2PM Gen4?\u003c\/h3\u003e\n\u003cp\u003eVia 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 \u003ca href=\"\/en\/collections\/smart-home-usb-controller?sort_by=best-selling\u0026amp;filter.p.m.custom.protocol=Zigbee\" title=\"Zigbee USB controllers\"\u003eZigbee controller\u003c\/a\u003e. Matter over WiFi does not require a separate hub.\u003c\/p\u003e\n\n\u003ch3\u003eAre batteries included?\u003c\/h3\u003e\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\n\u003ch3\u003eCan I expand the module with additional sensors?\u003c\/h3\u003e\n\u003cp\u003eThe 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 \u003ca href=\"\/en\/collections\/shelly\" title=\"Shelly collection\"\u003eShelly assortment\u003c\/a\u003e for compatible add-ons.\u003c\/p\u003e\n\n\u003ch3\u003eCan I control two roller shutters or screens independently?\u003c\/h3\u003e\n\u003cp\u003eYes. 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.\u003c\/p\u003e\n\n\u003ch3\u003eDoes the Shelly 2PM Gen4 also work locally without internet?\u003c\/h3\u003e\n\u003cp\u003eFully 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 \u003ca href=\"\/en\/collections\/home-assistant\" title=\"Home Assistant\"\u003eHome Assistant\u003c\/a\u003e, you also have access to all functions and automations without the Shelly cloud.\u003c\/p\u003e\n\n\u003ch3\u003eWhat is the difference with the Shelly 2PM Gen3?\u003c\/h3\u003e\n\u003cp\u003eThe 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.\u003c\/p\u003e\n\n\u003cp\u003e🔓 Order today at slimhuisje.nl and connect the Shelly 2PM Gen4 to Home Assistant within 5 minutes. Smart solution!\u003c\/p\u003e","brand":"Shelly","offers":[{"title":"Default Title","offer_id":53345207583062,"sku":null,"price":34.99,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0731\/5921\/3398\/files\/71k7_AeDgPL._AC_SL1500.jpg?v=1777500760","url":"https:\/\/slimhuisje.nl\/en\/products\/shelly-2pm-gen4","provider":"slimhuisje.nl","version":"1.0","type":"link"}