Shelly Pro1PM The device does not respond to the script.

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.

  • Hello everyone.

    I'm seeking help with configuring my Shelly Pro 1PM.

    I need it to count 1 kWh upon activation and then have the device turn off until the next activation.

    The problem is that the device doesn't respond to scripts at all. The script runs, the logs indicate that everything is working, but nothing happens.

    How can I make the switch follow the programmed sequence?

    Thanks for the responses!

  • Hallo Alex Graveler,

    Let us go through your question step by step:

    -->I need it to count 1 kWh upon activation and then have the device turn off until the next activation.

    Ok, you just want a script thats turns the Relay off when its reached 1kwh power, and a new input (button? or switch?) turns the relay back on?

    -->The problem is that the device doesn't respond to scripts at all. The script runs

    So you already have some kind of Script for this.

    -->How can I make the switch follow the programmed sequence?

    Without seeing your script, I will not be able to help you.

  • Hello De kat.

    Zitat

    Ok, you just want a script thats turns the Relay off when its reached 1kwh power, and a new input (button? or switch?) turns the relay back on?

    Yes exactly.

    Zitat

    So you already have some kind of Script for this.

    I tried to write it myself, but then I found a script for my device in the library.

    Here is it:

  • And here is my version of this, untested.

    Let me know if it works. ;)

    Apache License Version 2.0, January 2004, siehe Link für mehr Infos: https://github.com/ALLTERCO/sh…xamples/blob/main/LICENSE


    And here is a version that stores the consumption value of one session, in your local Shelly KVS memory, so it can somehow recover some lost data.

    Apache License Version 2.0, January 2004, siehe Link für mehr Infos: https://github.com/ALLTERCO/sh…xamples/blob/main/LICENSE

    7 Mal editiert, zuletzt von _[Deleted]_ (3. Februar 2024 um 05:05)