Michael Sage
← Field notes
tech 15 July 2020

Shelly HTTP Commands

Some standard HTTP commands for the Shelly I have found In case of password protected you will need to put http://user:password@shellyIP first Shelly 1: Turn on**:**

http://192.168.xxx.xxx/relay/0?turn=on

Turn off:

http://192.168.xxx.xxx/relay/0?turn=off

Turn on and after ttt-seconds automatically turn off: (ttt replace with the desired time in seconds!)

http://192.168.xxx.xxx/relay/0?turn=on&timer=ttt

The code can also be sent to an already activated Shelly. This will stay on for ttt seconds and then turn off automatically. Turn off and after ttt-seconds automatically turn on: (ttt replace with the desired time in seconds!)

http://192.168.xxx.xxx/relay/0?turn=off&timer=ttt

The code can also be sent to an already switched off Shelly. This will remain switched off for ttt seconds and then automatically switched on. Switch toggle:

http://192.168.xxx.xxx/relay/0?turn=toggle