EXAMPLE 1

A remote accessory (WiFi PIR sensor) stored as a user sends the message corresponding to motion detection during night time.


ACE MESSAGE FROM ACCESSORY 

$S24(night ACCESSORY LAST TEXT ( night 

$S24(hall ACCESSORY LAST TEXT ( hall




out1=1

AT#EMAIL=family,"Motion detection hall"

$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 1.

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

The third 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 PIR sensor sends the illuminance value light=xx if we assign the name light to a variable, this command will save the received value in the variable.