WIFI MOTION DETECTOR - COMMUNICATION MODEL The motion detectors are connected to the internet through a WiFi router. Each detector is programmed to send messages to one or more Avior devices connected to the Internet through the cellular network or WiFI. When a detector is activated the message is sent to the SMM server which forwards it to all associated Avior devices. The Avior devices receive the message that is sent by an ACCESSORY type user. This can be an active, inactive or unknown user and is identified by their MAC address. The identifier of the button that sent the message is available in the parameter S22. The group (if defined) to which the user belongs is available in the parameter S23. The received text is stored in the parameter S24:
Received text motion office.light=2170 means motion detected by office sensor and current light level is 2710 lux. Received text day Hall.light=560 means a motion detected by Hall sensor when ambient light is more than threshold specified for day light (default = 300) and current light level is 560 lux. Received text night STAIRS.light=26 means a motion detected by STAIRS sensor when ambient light is less than threshold specified for night light (default=30) and current light level is 26 lux. Received text twilight office.light=144 means a motion detected by office sensor when ambient light is between night and day thresholds and current light level is 144 lux. Received text quiet office.light=2182 means that the set backoff time (default 10 seconds) has elapsed since the last movement detected office sensor and current light level is 2182 lux. |