Shelly web console flakey

Hinweis zur Nutzung von Skripten (für Nutzer)

Die Verwendung von Skripten erfolgt ausdrücklich auf eigene Gefahr. Weder Shelly noch die jeweiligen Autoren oder Entwickler der Skripte übernehmen irgendeine Form der Haftung für mögliche Schäden, Fehlfunktionen, Datenverluste oder anderweitige Beeinträchtigungen, die durch die Nutzung dieser Skripte entstehen könnten. Bitte stellen Sie vor dem Einsatz sicher, dass Sie den Quellcode verstehen und sich der möglichen Auswirkungen bewusst sind. Die Skripte werden ohne Gewähr bereitgestellt und unterliegen keiner regelmäßigen Wartung oder offiziellen Unterstützung.


Hinweis für Entwickler

Wenn Sie eigene Skripte bereitstellen, achten Sie bitte darauf, eine klare Beschreibung, eventuelle Einschränkungen und Sicherheitsaspekte zu dokumentieren. Beachten Sie zudem, dass Nutzer Ihre Skripte grundsätzlich auf eigenes Risiko verwenden. Eine Haftung für Schäden ist ausgeschlossen, sofern diese nicht vorsätzlich oder grob fahrlässig verursacht wurden oder gesetzlich anderweitig geregelt ist.

  • Hi I am trying to learn to code scripts on a Shelly Pro 3. This device is connected to my network via a LAN cable and Wi-Fi. I notice a few things as I am trying to code scripts locally onto it.

    1. the shelly keeps loosing connection. and takes a while to come back online.

    2. when I start a scrip and then try and use the console in the script editor to see printed output results, the script stops and I see zero in the console.

    only once and a while does the start stay running and I get to see the results.

    can anyone tell me what I am that is causing the Shelly to stop the script constantly?

    Kind regards

    Duncan

  • this is the problem, use either LAN or Wifi, not both at the same time.

    Hi this was part of my issue. I had also done a very stupid thing, that was to set a static IP of the same value for both the LAN and Wifi connections. This obviously was causing a network conflict. Then I found another issue was a bad LAN cable from my Patch Panel to my Switch.

    With all of these matters resolved I was able to script what I needed to.

    The Console however is not what I would class as very stable. I have noticed specifically with bad code (I am learning Shelly scripts here so my code is full of errors). the script stills stops without much warning. Only once you have a stable script have I found my script will stay running and I can see outputs more regularly. What this has meant for me, is not coding 10s of lines of code and working through the errors, but rather one element only, try that if that breaks fix it, if that works add a new element. much slower than coding in VS Code and Python in my view.

    I hope my failures help someone else.

    Take care D