Time based monitoring
Introduction
Time based monitoring can be incredibly useful for receiving alerts when specific events occur within or outside a given timeframe. For example, you can be notified when movement is detected on your site during closed hours or when water is consumed unexpectedly. This guide will walk you through configuring a static scheduling list and using it to define rules for effective monitoring.
- Static list configuration
- Access the Static List Module: Open the static list module to create a new schedule.
- Define Time Slots: Easily set open and closed time slots for each day of the week. This will serve as the basis for your monitoring rules.
- Attach the static list to Assets
- Select Assets: Choose the assets you want to monitor, such as a building, worksite, or production site.
- Attach the Static List: Link the static list to these assets to ensure the schedule is applied correctly
- Rule definition (e.g. monitoring attendance during closed hours)
- Open the Rule Definition Interface: Navigate to the section where you can create new measurement rules.
- Define the Trigger Option: Select the trigger option, such as “Once true.”
- Define Input Variables such as:
- Variable: presence
- Data source: pir sensor
- Measurement: presence
- Variable: isOpen
- Data source: opening hours
- Measurement: open
- Set the formula:
Define the formula as follows:
isOpen == 0 and presence == true
This formula checks if the site is closed (isOpen == 0) and if presence is detected (presence == true).
- Define the Alert Message
Message: Customize the alert message. For example:
Presence detected on {{context_name}} outside opening hours.
Each time the pir sensor emits an event, the rule is evaluated. As the formula refers to the static planning list, it retrieves the value from the static list at the time of evaluation. If the time is during closing hours, the value returned will be open:0. If the rest of the formula is true, the rule will trigger an alert.