Remote interaction with scripts

Die Verwendung von Skripten liegt im eigenen Ermessen des Benutzers. Unterstützung für Skripte wird vom Autor des Skripts bereitgestellt.
  • Hi,

    I am running a script on my Shelly Plus 2 PM, which is basically a state machine that changes both outputs in a predefined order when a button is pressed. So the inputs are detached from the outputs. I did this by creating an event handler that reacts on the change of the button state.

    Now, I want the script to do the same thing when I press a button on my remote Shelly 1L. So far, I only found HTTP commands that change the state of one of the outputs and trigger an event. I also found, that I can change some configuration, e.g., the name of the input. This also triggers an event which I can react to in my script. But this is not a very elegant way to do this.

    The emitEvent function seems to do the right thing, but I did not get this running over RPC.

    Does anyone know how I can use an http command on the Shelly 1L that does nothing else but trigger an event on the Shelly Plus that I can react to in my script?

    Thanks!

  • I think its a lot easier to create a HTTP-Server on the Plus2PM which would listen to HTTP Requests from SHelly 1 L (Action)


    Action Call from the Shelly 1L

    http://192.168.178.84/script/1/testserver?turn=on

    http://192.168.178.84/script/1/testserver?turn=off

    script/1 <- id from the HTTP-Server script

    >100 Shellies, darunter so gut wie alles was der Hersteller produziert hat. ;)
    :!: ich beantworte grundsätzlich keine Fragen per persönlicher Nachricht:!: