Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

« Previous Version 15 Next »

How to add a Timer / Schedule

The timer allows you to plan the events in the system.  A timer is like a schedule, that can be set to operate once, weekly, or monthly. When the timer is triggered it goes from the normal state into an alarm state. When the timer is turned off it goes back to a normal state.

To create a "Timer" utility, press add button "" inside the "Group tree" or "System tree" menu. Then choose "Timer". A modal window will appear.

image-20240328-081213.pngimage-20240328-084453.png

Timer options

Description

Name

Write lany name to describe your timer/schedule that you can easily recognize and distinguishible.

ID

System ID given by the system to the virtual element Timer.

Type

Virtual element of type “timer”.

Class

System type “devirt”.

Device time

Current device time

Period of operation

once

one-time event

weekly

every week

monthly

each month, set the Start time, End time, and day in which the timer will be triggered (on the picture You see the Start time is 4:00, End time 18:00, day - 27);

schedule

like extended weekly, allows you to set the operating time individually for each day of the week.

Push "ОК", to create a timer.

Now, after reaching the time specified in the "Start Time" (in hours marked in red in schedule mode), the timer will enter into Alarm mode. For this event, you can bind execution logic (see. Adding logic schemes).

Upon reaching the time specified in the "End Time", the timer will return to the Normal mode, this event is also possible binding logic.

If this is installed as a one-time event, then the timer switches at the specified start date and time. If you set a "weekly", "monthly" or "schedule" mode of operation, the timer will be activated on the dates indicated.

More examples of using a timer can be found here: How to use "Timer".

Once timer

Example of a “once” timer period of operation:

image-20240328-081841.png

Once timer options

Description

Start date

The exact time when the timer will enter into alarm mode.

Year/month/day Hour/minutes/seconds

End date

The exact time when the timer will enter into normal mode.

Weekly timer

Example of a “weekly” timer period of operation:

image-20240328-083206.png

Weekly timer options

Description

Start date

The exact time when the timer will enter into alarm mode.

Hour/minutes/seconds

End date

The exact time when the timer will enter into normal mode.

Hour/minutes/seconds

Days when timer is available

Check the days when the timer is available

  • Sunday

  • Monday

  • Tuesday

  • Wednesday

  • Thursday

  • Friday

  • Saturday

Monthly timer

Example of a “monthly” timer period of operation:

image-20240328-083541.png

Monthly timer options

Description

Start date

The exact time when the timer will enter into alarm mode.

Hour/minutes/seconds.

End date

The exact time when the timer will enter into normal mode.

Hour/minutes/seconds.

Dates when timer is available

Check the days when the timer is available.

Dates available to check are from 1 to 31.

Schedule timer

Example of a “schedule” timer period of operation:

image-20240328-083934.png

Schedule timer options

Description

Schedule

The exact time in hours when the timer will enter into alarm mode by a day.

How to use the “Timer” element

Embedded article: 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.


  • No labels