Collection of http-commands

Lass dich durch uns Informieren
Wir Informieren dich über neuigkeiten und Angebote von Allterco.
Melde dich beim Newsletter an !
Diesen findest du rechts in der Menueleiste ganz unten.
  • As I keep asking for it, I am gradually creating an overview of standard commands for each device.



    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.


    Contents:


    #1 Shelly 1

    #2 Shelly 2.5 in 2-switch-mode

    #3 Shelly 2.5 in roller-shutter-mode

    #4 Shelly Plug S


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


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

    of course adjust user and password.;)



    Shelly 1:


    Turn on:

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

    Turn off:

    Code
    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!)

    Code
    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!)

    Code
    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:

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


  • Contents:

    #1 Shelly 1

    #2 Shelly 2.5 in 2-switch-mode

    #3 Shelly 2.5 in roller-shutter-mode

    #4 Shelly Plug S





    Shelly 2.5:

    in 2-switch-mode



    channel 1

    Turn on:

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

    Turn off:

    Code
    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!)

    Code
    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!)

    Code
    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:

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


    channel2

    Turn on:

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

    Turn off:

    Code
    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!)

    Code
    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!)

    Code
    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:

    Code
    http://192.168.xxx.xxx/relay/1?turn=toggle
  • Contents:

    #1 Shell

    #2 Shelly 2.5 in 2-switch-mode

    #3 Shelly 2.5 in roller-shutter-mode

    #4 Shelly Plug S





    Shelly 2.5:

    as a roller shutter



    open shutters:

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

    close shutters:

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

    shutter go x-%-Position:

    (x=0-100)

    Code
    http://192.168.xxx.xxx/roller/0?go=to_pos&roller_pos=x

    shutter stop:

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


    #1 Shelly 1

    #2 Shelly 2.5 in 2-switch-mode

    #3 Shelly 2.5 in roller-shutter-mode

    #4 Shelly Plug S



    Shelly Plug(S):


    Turn ON:

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

    Turn OFF:

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

    Turn ON and after ttt-seconda turn off autoamatically:

    (ttt replace with the desired time in seconds!)

    Code
    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!)


    Code
    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.

  • I've added the syntax for restricted login in #1. ;)