EXAMPLE 1

Upon detection of the opening of a door or window on which a BLE sensor is installed, activate output 4 (horn) and send an SMS message.

Similarly, activate the horn and send a specific message when the sensor tampering is detected.


BRA DOOR SENSOR A

$HA2=1 DOOR A SWITCH STATUS = 1





out4=1,20

AT+SMS=+391234,"Entrance door alarm"




trigger event is the status change of door sensor A.

The first condition to check is that the sensor detects the open door.

The first action contains the command that activates output 4 for 20 seconds.

The second action contains the command that sends an SMS message to the number +391234 with the text "Entrance door alarm".


BTA DOOR TAMPER  A

$HA3=1 DOOR A TAMPER STATUS = 1





out4=1,20

AT+SMS=+391234,"Entrance door tampering"




trigger event is tampering with door sensor A.

The first condition to check is that the sensor tampering status isgreater than 0 (1 or 2 indicate tampering).

The first action contains the command that activates output 4 for 20 seconds.

The second action contains the command that sends an SMS message to the number +391234 with the text "Entrance door tampering".