Skip to content

Power control

Turn a smart plug on or off. The plug runs Tasmota firmware, so you can drive it directly over HTTP — no broker required.

Tasmota exposes a command endpoint at /cm. Address the plug by its IP or mDNS hostname (<plug-host>) — no broker needed.

Turn on / off / toggle

curl "http://<plug-host>/cm?cmnd=Power%20On"
curl "http://<plug-host>/cm?cmnd=Power%20Off"
curl "http://<plug-host>/cm?cmnd=Power%20Toggle"

Query current state

curl "http://<plug-host>/cm?cmnd=Power"

Each call returns JSON, e.g. {"POWER":"ON"}.

Password-protected plugs

If the plug's web admin has a password, add credentials as query parameters — over a trusted network only:

http://<plug-host>/cm?user=admin&password=<password>&cmnd=Power%20On

Coming soon

MCP tools for smart plug control are on the roadmap.