Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Required to open the door lock on the following schedule:
Monday - Friday:                10  10 - 17
Saturday:                                   10 - 13

The door is opened by turning the relay Outlet 1.

For this need to create two timers:

...

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

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  Set the “Start date” and “End date” so that there is a short period, only a few seconds. Set the Set the necessary days for rebooting.

...

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

...