The IoTPortal Events feature allows you to set multiple conditions using AND/OR logic to set the trigger condition for an event. You can also specify the actions to take which can include sending push notifications to selected users and enabling an output actuator. In this example we use the 4in1 Sensor which includes Temperature, Humidity, Ambient Light and Passive Infra-Red (PIR) Motion detection in one compact unit. We also use channel 1 of an LDSBus 2CH Relay actuator to control the strobe light.
These events can be set up via the user-friendly IoTPortal web application and the mobile apps (iOS & Android). The event is shown in the IoTPortal web application in Figure Q3a
Figure Q3a
Figure Q3b shows the Event set-up. In the ‘When’ settings on the left-hand side, you can select one or more conditions using AND/OR logic. The AND condition is used so that the event triggers only when both conditions are true. Motion must be detected for at least 5 seconds, and the time must be between 9am and 10pm. Further AND/OR conditions can be added using the ‘+’ buttons shown.
In the ‘Do’ settings on the right-hand side, you can specify one or more actions to take. Here, we have specified the Notification message and entered the email addresses of the user(s) who should receive the notification. The Relay controlling the strobe light is also activated, followed by a 10 second delay, and the Relay is deactivated. The actions can be easily re-ordered using the ‘handle’ on the right-hand side as well as edited or deleted.
Figure Q3b
Figure Q3c shows the detail of the Sensor Value and Recurrence settings used, whilst Figure Q3d shows the detail of the notification, Trigger Actuator and Delay settings.
Figure Q3c
Figure Q3d