Relays turns randomly off

  • Hi,
    i have the problem that the relay turns itself randomly off, I can also see it in the messages section in the app.
    The http://192.168.50.105/rpc/Shelly.GetStatus gives me the info that http is the source:

    source"http"


    1. I checked that the Device-ID is 12 Digits: ok.
    2. Today I turned cloud connection to off to be sure it does not come from the cloud.

    3. Any other idea how to find out what caused the http command ?

    FYI: I once turned the relay on/off depending on a temperature via Home Assistant, but I removed the scene in Home Assistant, so that should not be the source of the problem.

  • 3. Any other idea how to find out what caused the http command ?

    I'd bet there's a local device in your home which sends the HTTP command, so most likely HA.

    It's a device using the "old" syntax:

    http://<ip>relay/0?turn=on

    you can identify the device via Debug.

    1) Go to settings - device and enable Websocket debug.

    2) create a "dummy"-Script and change filter from "script only" to "full log" (lower right corner)

    I've marked the important part in the debug output, the source ip will be logged.

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

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

  • Thanks for the Tip, debug is running now.

    Do i have to crate and save some dummy script or is it enough to just keep the script window open in the background on my MacBook ?
    (Usually it happens between 1-3 days that the relay turns off)

    Is it possible to write the Console log into a file, so the log is not lost if I close the browser by mistake ?

    Einmal editiert, zuletzt von MrGPS (27. August 2022 um 13:35)

  • Is it possible to write the Console log into a file, so the log is not lost if I close the browser by mistake ?

    not possible to write to a file but you can use UDP debugging and log all messages on a remote "server".

    I already wrote such tool, just need to compile it for MacOS. I'll upload later.

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

  • The Tip is really very helpful, I found the cause.
    It was a shelly Button.
    I originally set the button to switch a shelly plug S to ON with single click and to off with double-click.
    Since the double click was not that easy for my wife I deleted the double click and set the single click to "toggle".
    But there I put by mistake the IP of my Shelly 1 PM PLUS.

    I forgot that toggle, and the strange thing was that the single click still turned on the Shelly Plug S and the Double Click turned the Shelly Plug S to off even though in the settings (also in the WegGUI) there was only the "Button Short Pressed URL" configured with the wrong IP (.105), the Plug has .102:
    http://192.168.50.105/relay/0?turn=toggle

    So it seems the old config was still there but not visible via GUI.

    Since there was a firmware update available I did the update and after that the hidden actions were gone, it did not anymore turn the Plug S AND the 1 PM PLUS on.

    After changing the Action to the correct IP everything works now perfect.

    "Seven of Nine" Thanks for this really helpful debug tip. :) :) :)