# HTTP action tutorials
These tutorials show specific use cases for HTTP actions.
# Turn on/off shelly plug
The shelly plug has a built-in wifi access point or can connect itself to a wifi access point. Furthermore, it runs a webserver and provides a REST API that can be used to turn the plug (electricity) on or off.

- Get a shelly plus plug (see UK model (opens new window) or Shelly Plug S (opens new window)).
- Plug it in and enable the shelly wifi access point according to the shelly plug manual.
- Connect to the wifi access point of the shelly plug.
- Now the shally plug should be reachable through an ip address, e.g
http://192.168.33.1. - Turn on
Editing mode - Edit cell and got to
Actionstab - Select
HTTP action - Enter
http://192.168.33.1/relay/0?turn=togglecommand into the fieldHTTP URL(see Fig 1). - Enter
GETinto the fieldHTTP method. - Enter
text/plaininto the fieldHTTP Content-Type. - Click on
OKto save the action. - Turn off
Editing mode
Fig 1: HTTP action to toggle Shelly plug.
TIP
You can also use dedicated on/off commands (see Shelly 2 HTTP manual (opens new window)):
http://192.168.33.1/relay/0?turn=on
http://192.168.33.1/relay/0?turn=on