Shelly Europe

How to Install Shelly 1PM Gen4 for Energy Monitoring: A Step-by-Step Guide

How to Install Shelly 1PM Gen4 for Energy Monitoring: A Step-by-Step Guide

By Shelly Europe | Published: 2026-07-27

Category: How-to Guides

Learn how to install Shelly 1PM Gen4 for accurate energy monitoring. Step-by-step wiring, configuration, and safety tips for home energy management.

Monitoring your home's energy consumption is a smart way to save money and reduce your carbon footprint. The Shelly 1PM Gen4 is a compact, Wi-Fi-enabled relay switch that not only controls electrical loads but also provides real-time energy monitoring. Whether you want to track a water heater, air conditioner, or lighting circuit, this guide will walk you through the installation process safely and effectively.

Before you begin, ensure you have the necessary tools: a voltage tester, screwdrivers, wire strippers, and the Shelly 1PM Gen4 device. Always turn off the main circuit breaker before working with electrical wiring. If you're unsure about any step, consult a licensed electrician.

Understanding the Shelly 1PM Gen4

The Shelly 1PM Gen4 is a single-channel relay with built-in energy metering. It can switch loads up to 16A and measures voltage, current, power, and energy consumption. The device connects to your home Wi-Fi and can be controlled via the Shelly Smart Control app, voice assistants, or home automation platforms. Its compact size (42x36x17mm) makes it easy to fit behind wall switches or inside junction boxes.

Key features include: overvoltage and undervoltage protection, firmware updates over the air, and compatibility with MQTT, HTTP, and WebSocket protocols. The Gen4 version offers improved accuracy and faster processing compared to previous generations.

  • Always use a certified electrician for mains voltage installations.
  • Check local electrical codes before starting.

Step 1: Safety First

Turn off the main circuit breaker and verify that power is off using a voltage tester. Work in a dry, well-lit area. Wear insulated gloves and avoid touching live wires. Keep the Shelly 1PM Gen4 away from water and heat sources.

Prepare the wiring area: strip the insulation from the wires about 8mm. Have a screwdriver ready for the terminal blocks. Ensure you have the correct wire gauge (typically 1.5mm² for lighting circuits, 2.5mm² for power outlets).

Step 2: Wiring the Shelly 1PM Gen4

The Shelly 1PM Gen4 has five terminals: L (live in), N (neutral in), O (switched live out), I (load neutral), and SW (switch input). For basic energy monitoring of a load, connect the live wire from the circuit breaker to L, neutral to N, and the load's live wire to O. Connect the load's neutral to I. The SW terminal is optional for connecting a physical switch.

If you are monitoring a device that already has a switch, you can wire the switch between L and SW to retain manual control. Ensure all connections are tight and no bare wires are exposed. Use wire nuts or terminal blocks for splices.

  • Double-check that L and N are not reversed.
  • Use a multimeter to confirm continuity before powering on.

Step 3: Power On and Initial Configuration

After wiring, turn the circuit breaker back on. The Shelly 1PM Gen4 will create a Wi-Fi access point named 'Shelly1PMG4-XXXX'. Connect to it using your smartphone, then open a browser and navigate to 192.168.33.1. Follow the on-screen instructions to join your home Wi-Fi network.

Once connected, update the firmware to the latest version via the device's web interface. This ensures you have the newest features and security patches. Then, configure the energy monitoring settings: set the load type (resistive, inductive, etc.) and calibration if needed.

  • Write down the device's IP address for future access.
  • Enable MQTT if you plan to integrate with Home Assistant.

Step 4: Setting Up Energy Monitoring in the App

Open the Shelly Smart Control app and add the device. You will see real-time power consumption in watts, daily energy usage in kWh, and historical data. Set up alerts for high power usage or if the load exceeds a threshold. You can also create schedules to turn off devices during peak hours.

For advanced monitoring, use the Shelly 1PM Gen4's built-in web interface to export data or integrate with platforms like Grafana. The device supports up to 100 data points per second, allowing precise analysis.

  • Label the device in the app for easy identification.
  • Use the 'Power on default' setting to keep the load on after a power outage.

Troubleshooting Common Issues

If the device does not power on, check the wiring and ensure the circuit breaker is on. If the Wi-Fi connection fails, reset the device by pressing the button on the side for 10 seconds. For inaccurate energy readings, verify that the load's neutral is connected to the I terminal and not shared with other devices.

If the relay clicks but the load does not turn on, measure voltage at the O terminal. If there is no voltage, the relay may be defective. Contact Shelly support for a replacement.

  • Factory reset: press and hold the button for 30 seconds.
  • Check for firmware updates regularly.

Installing the Shelly 1PM Gen4 for energy monitoring is a straightforward DIY project that gives you valuable insights into your home's electricity usage. By following this guide, you can safely wire and configure the device to track consumption, set alerts, and automate energy savings. For a complete smart home energy solution, consider pairing it with other Shelly products like the Shelly Plus AddOn +3DS for additional inputs. Start monitoring today and take control of your energy bills.

Shelly Plus AddOn +3DS
Shelly Plus AddOn +3DS

Shop Related Products

Shelly PRO 1CB

Shelly PRO 1CB

$39.00 $78.00

Shop Now
Pro CB

Pro CB

$55.00 $110.00

Shop Now
Shelly Pro 2CB C10A

Shelly Pro 2CB C10A

$43.50 $87.00

Shop Now
Shelly Duo List

Shelly Duo List

$7.50 $15.00

Shop Now