How to use "Timer"

Weekly mode example

For example, we are required to open the door lock on the following schedule:
Monday - Friday:                10 - 17
Saturday:                            10 - 13

The door is opened by turning on the relay Outlet 1.

For this we need to create two timers:

For "Monday - Friday":

For "Saturday":

Defining the door release logic:

Defining door locking logic:

The pulse function must be set accordingly if the door is unlocking with a voltage pulse.

If you want to send a notification from the triggered access sensor when the door is closed.

For example, the system has a motion sensor Motion and has created a notification Motion SMS. Let`s create the logic to send notifications:

Schedule mode example

Required to control the movement (by PIR sensor) according to the following schedule:
Monday to Friday: by night time only, from 18:00 to 7:00.
Saturday and Sunday - by all day.

If the motion sensor is in an alarm state, we need to send a notification message.

Create a timer in "schedule" mode:

Create alarm SMS notification:

Create logic for alarm motion sensor:

Sanitary rebooting of the unit

This can be useful for remote devices that the client may not have access to them.

We will make the system reboot twice a week, on Monday and Thursday. First, create the timer in "weekly" mode. Set the “Start date” and “End date” so that there is a short period, only a few seconds. Set the necessary days for rebooting.

 

Create a logical scheme that will reboot the system when the timer is active. The system has protection and is not rebooted in the first 15 minutes of work.