WIFI MOTION SENSOR - EXAMPLES

Below are examples of rules associated with WiFi motion sensors.

Assuming that a WiFi motion sensor has been programmed to send messages to our Avior device, this accessory is identified by its MAC address which is made up of 12 characters.

In the Avior device this accessory can be stored by specifying the MAC address in whole or only partially:


F4CFA2E9C892

Full MAC address

A SINGLE DEVICE IS RECOGNIZED


*C892

Partial MAC address

MORE DEVICES ARE RECOGNIZED

ALL DEVICES WITH MAC ENDING WITH C892


EXAMPLE 1

A remote WiFi motion sensor stored as a user sends the message corresponding to the motion detection during the night, to turn on the light in the hall for 10 minutes.


ACE MESSAGE FROM ACCESSORY

$S24(night ACCESSORY LAST TEXT ( night

$S24(Hall ACCESSORY LAST TEXT ( Hall




out2=1,600

$S24




trigger event is the receipt of a message from an active accessory.

The first condition to check is that the message received contains (also) the text night.

The second condition to check is that the message received contains (also) the text Hall which is the name assigned (and sent) by sensor.

The first action contains the command that activates output 2 for 10 min.

The second action contains the tag that represents the text of the last message received from accessory, if this is a valid command it will be executed. Since the sensor sends the illuminance value <NAME>.light=xx if we assign the name <NAME>.light (where <NAME> is the name assigned to the motion sensor) to a variable, this command will save the received value in the variable.
Then the value will be saved in the variable that recalls the names of the various accessories:
for Hall variable Hall.light will contain its measured light level.
for office variable office.light will contain its measured light level.
for STAIRS variable STAIRS.light will contain its measured light level.

EXAMPLE 2

A remote WiFi motion sensor stored as a user sends the message corresponding to motion detection (any).


ACE MESSAGE FROM ACCESSORY

$S24(motion ACCESSORY LAST TEXT ( motion

$S24(STAIRS ACCESSORY LAST TEXT ( STAIRS




out1=on

AT#EMAIL=family,"Motion detection stairs"

$S24



trigger event is the receipt of a message from an active accessory.

The first condition to check is that the message received contains (also) the text motion.

The second condition to check is that the message received contains (also) the text STAIRS which is the name assigned (and sent) by sensor.

The first action contains the command that activates output 1.

The second action contains the command that sends the text "Motion detection stairs" to all email addresses belonging to group family.

The third action updates the illuminance value as described in example 1.