In this document, you will find tutorials for the AsTeRICS Grid HTTP action.
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 or Shelly Plug S).
- 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
Actions
tab - Select
HTTP action
- Enter
http://192.168.33.1/relay/0?turn=toggle
command into the fieldHTTP URL
(see Fig 1). - Enter
GET
into the fieldHTTP method
. - Enter
text/plain
into the fieldHTTP Content-Type
. - Click on
OK
to 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):
http://192.168.33.1/relay/0?turn=on
http://192.168.33.1/relay/0?turn=on
:::