EXAMPLE 1

Send an SMS message when plug B is turned on or off.


OB PLUG B






AT+SMS=+391234,"Plug B operated"





trigger event is the change of state of plug B.

We do not define any conditions because the message will be sent both when the plug is turned on and when it is turned off.

The first action contains the command that sends an SMS message to the number +391234 with the text "Plug B 1 operated".

EXAMPLE 2

An incoming call by enabled use will toggle the status of plug G.


CAE CALL FROM USER






ATH

plugG=T




trigger event is an incoming call from an active user.

The first action contains the command to hang up the call.

The second action contains the command to toggle plug G.


EXAMPLE 3

Plug C named Coffee is turned on  by a single press on WiFi button named Break.


ACE MESSAGE FROM ACCESSORY

$S24)single ACCESSORY LAST TEXT ) single

$S24)Break ACCESSORY LAST TEXT ) Break




Coffee=on





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 single.

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

The first action contains the command that turns plug named Coffee.