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...