
The Shelly 1PM is a compact Wi-Fi relay switch with built-in power metering. It fits behind a standard wall switch and can control one circuit up to 16 A (3500 W at 230 V). TapHome communicates with the device over HTTP on the local network — no cloud connection is required.
The template provides relay control and an energy meter that reads real-time power consumption and cumulative energy usage.
Configuration
The Shelly 1PM connects over Wi-Fi. During TapHome template import, enter the device’s IP address (default placeholder 192.168.0.1).
This device supports mDNS discovery. You can use the hostname
shelly1pm-{MAC}.localinstead of an IP address when configuring TapHome. Replace{MAC}with the device’s MAC address (uppercase hex, no colons). Using a hostname prevents connectivity issues when the device’s IP address changes.
Open the TapHome app and use the IP Scanner (Settings → Network → Scan). The scanner will discover devices on your network and show both the IP address and the mDNS hostname (e.g., shelly1pm-AABBCCDDEE.local). Use the hostname instead of the IP address for a more reliable connection.
Device capabilities
Relay control
The template exposes the relay as a switch device. The relay state is read from the /status response (relays[0].ison) and controlled via the /relay/0 endpoint with turn=on or turn=off.
Power metering
The built-in energy meter reads two values from the /status response:
- Real-time power —
meters[0].powerreported in watts, converted to kW by the template - Total consumption —
meters[0].totalreported in watt-minutes, converted to kWh by the template
The meter is read-only — it updates automatically with every poll cycle.
Service diagnostics
The template exposes 13 service attributes for device monitoring:
- Device info — hostname, MAC address, device time, uptime, RAM usage
- Thermal protection — internal temperature (°C), temperature status (Normal / High / Very High), overtemperature flag
- Connectivity — cloud enabled/connected, MQTT connected, firmware update available
- Power protection — current max power limit (reads from
/settings)
Service actions
Three service actions are available:
- Set power protection — sets the maximum power limit (1–3500 W). The relay automatically turns off if consumption exceeds this value.
- Enable cloud — enables or disables Shelly Cloud connectivity
- Reboot — triggers a device reboot
Additional capabilities
The Shelly 1PM also exposes line voltage, reactive power, physical input state, and WiFi signal strength in its /status response. An auto-off timer is available on the relay endpoint. These capabilities can be added in a future template update.
Troubleshooting
Device not responding
- Verify the Shelly is connected to Wi-Fi and has a valid IP address
- Try using the mDNS hostname (
shelly1pm-AABBCCDDEE.local) instead of the IP address — the IP may have changed after a DHCP renewal - Open
http://{device-ip}/shellyin a browser — if it responds, the device is reachable - Check that TapHome CCU and Shelly are on the same network / VLAN
Power readings show zero
- Confirm the load is connected through the Shelly relay (not bypassed)
- Check that the relay is turned on — the meter only reads when current flows through the relay
- Poll
/statusmanually and verifymeters[0].powerreturns a non-zero value
Overtemperature warning
The Shelly 1PM has internal thermal protection. If the device temperature exceeds safe limits, the temperature_status changes to “High” or “Very High” and overtemperature becomes true. Ensure adequate ventilation around the device, especially when switching high loads.
Gen1 Shelly devices support only 2 concurrent HTTP connections. If TapHome and another system (e.g., Home Assistant) poll the same device simultaneously, communication may become unreliable. Use a poll interval of 10–30 seconds.