Script for different schedules with external condition

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.

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

  • Hi, I'm a garage door installer/repairer and I've been using shelly 1 and shelly plus 1 together with Addon to open, close doors, control the limit switches etc. Well, no problems.

    Recently a client has asked me for something more complicated, at least to my knowledge...
    This is for a school that has a sliding entrance door and they want it to work with the following schedules: Open from 07:45 to 08:30 and from 10:45 to 11:45 and from 14:00 open indefinitely, Monday to Friday.
    On holidays or vacations these schedules are not met.

    The way to handle the automatic opening and closing of the door is my business, I need a script to work in the following way:

    I have thought of using a Pro2 and plus 1, the pro 2 with output 0 gives a 1 second pulse when the schedules start and a second later the output 1 goes to open state while the schedule lasts (its initial state is closed). This is the case for all three schedules.

    If the plus 1 is activated, it will mean that it is a holiday, and the schedules are not met. The output of the plus 1 is connected to the input 0 of the Pro 2.

    The script has to allow that after 2:00 p.m. and between the opening hours from the application the state of the output 1 is changed and thus the door can be closed whenever desired.

    I have tried to make the schedules with a script but I have not achieved anything and the truth is that I am going crazy, because every time I try it gets worse.

    Anyway I hope someone can give me a hand.
    Greetings and thank you very much.

    Pta. The translation into English was done with Google, I apologize if something is not understood...8o