Shelly cmds

As a reference to the commands you can use, I’ve stated them in this article.

In all commands, replace “192.168.xxx.xxx” with the IP address of the target Shelly!

The commands can be sent via browser, Actions in Shelly or other home automation systems.

Shelly 1PM and Shelly Plus 1PM:

In the case of password-protected devices, the user data must be placed in front of the IP address command.

 http://user:password@192.168.xxx.xxx ...

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

Shelly 2.5 and Shelly Plus 2PM (switch mode):

channel 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

channel2

Turn on:

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

Turn off:

 http://192.168.xxx.xxx/relay/1?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/1?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/1?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/1?turn=toggle

Shelly 2.5 and Shelly Plus 2PM (roller shutter mode):

open shutters:

 http://192.168.xxx.xxxx/roller/0?go=open

close shutters:

 http://192.168.xxx.xxxx/roller/0?go=close

shutter timer x:

(x=seconds)

 http://192.168.xxx.xxx/roller/0?turn=open&duration=x

shutter go x-%-Position:

shutter stop:

 http://192.168.xxx.xxx/roller/0?go=stop

Shelly Bulb/Bulb G10/RGBW2:

turn on:

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

turn off:

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

turn on and adjust brightness:

(x=0-100)

 http://192.168.xxx.xxx/light/0?turn=on&brightness=x

Color Mode

turn on and set RGB and white colors:

(x=0-255)

 http://192.168.xxx.xxx/color/0?turn=on&red=x&green=x&blue=x&white=x

turn on en set gain (intensity):

(y=0-100)

 http://192.168.xxx.xxx/color/0?turn=on&gain=y

White Multi-Channel Mode:

 http://192.168.xxx.xxx/color/0?turn=on&brightness=70

Shelly Dimmer

Shelly Dimmer ON:

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

Shelly Dimmer OFF:

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

Shelly Dimmer TOGGLE:

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

Shelly Dimmer ON with Timer (sec):

 http://192.168.xxx.xxx/light/0?turn=on&timer=30

Shelly Dimmer OFF with Timer (sec):

 http://192.168.xxx.xxx/light/0?turn=off&timer=30

Shelly Dimmer ON and brightness in x%:
(x=0-100)

 http://192.168.xxx.xxx/light/0?turn=on&brightness=X

Shelly Dimmer brightness in x%:
(x=0-100)

 http://192.168.xxx.xxx/light/0?brightness=70

Dim UP – Shelly Dimmer:
(Start dimming, untill other command is given.)

 http://192.168.xxx.xxx/light/0?dim=up

Dim DOWN – Shelly Dimmer:
(Start dimming, untill other command is given.)

 http://192.168.xxx.xxx/light/0?dim=down

Stop Shelly Dimmer:

 http://192.168.xxx.xxx/light/0?dim=stop

Start Shelly Dimmer dimming cycle:
(cycle: Up/Stop/Down/Stop/…)

 http://192.168.xxx.xxx/light/0?dim=cycle

More info about Shelly Direct Device to Device Communication (DDD) in this document:


Posted

in

, ,

by