
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.
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. If another system polls the device as well, increase the template poll intervals (1 s for the switch, 15 s for the meter by default) to reduce connection contention.