
The Shelly Plug S is a compact Wi-Fi smart plug with built-in power metering. It plugs directly into a wall outlet and can switch loads up to 10 A (2300 W at 230 V). TapHome communicates with the device over HTTP on the local network — no cloud connection is required.
The template provides on/off relay control, an energy meter that reads real-time power consumption and cumulative energy usage, and internal temperature monitoring.
Configuration
The Shelly Plug S communicates over HTTP on port 80. No special protocol setup is required — enter the device’s IP address as the connection endpoint in TapHome.
This device supports mDNS discovery. You can use the hostname
shellyplug-s-{MAC}.localinstead of an IP address when configuring TapHome. Replace{MAC}with the last 6 characters of 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., shellyplug-s-AABBCC.local). Use the hostname instead of the IP address for a more reliable connection.
Device capabilities
Relay control
The template exposes the plug relay as a switch device. The relay state is read from /settings/relay/0 (ison field) and controlled via the /relay/0 endpoint with turn=on or turn=off. The poll interval for the switch is 1 second.
The template reads the switch state from
/settings/relay/0(persistent configuration) rather than/status(live state). Both return the same value under normal conditions, but/settingsmay have slightly stale data after rapid toggling.
Power metering
The built-in energy meter reads two values from the /meter/0 endpoint:
- Real-time power —
powerfield reported in watts, converted to kW by the template - Total consumption —
totalfield reported in watt-minutes, converted to kWh by the template
The meter is read-only and updates every 15 seconds (configurable poll interval).
Temperature monitoring
The Switch device includes a service attribute that reads the internal temperature of the plug from the /status endpoint. This allows monitoring the device temperature directly in TapHome without additional configuration.
Additional capabilities
The Shelly Plug S API also exposes an overtemperature flag (automatic relay shutdown at ~95 °C), LED control, configurable overpower protection threshold (default 2300 W), auto-off timer, WiFi signal strength (RSSI), and a device reboot endpoint. These 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 (
shellyplug-s-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 appliance plugged into the Shelly Plug S is turned on
- Check that the relay is switched on — the meter only reads when current flows
- Poll
/meter/0manually and verify thepowerfield returns a non-zero value
Overtemperature shutdown
The Shelly Plug S has internal thermal protection. If the device temperature exceeds ~95 C, the relay automatically shuts off. Ensure adequate ventilation around the plug, especially when switching high-wattage appliances.
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 to reduce connection contention.