# Light on/off WiFi SuperLocal

Light on/off WiFi SuperLocal is similar to the original mode as it detects light - a message is sent every time a predefined threshold (% of light detected) is crossed either way. Can be set up to detect a very low light percentage threshold - darkness and extreme darkness (useful for monitoring package opening at night). All mode-specific events are sent with up to 5 MAC pointers and their RSSI for very precise localization.

### Light on/off WiFi SuperLocal

**Hex value:** 0x56

**Use cases:** Monitoring electricity usage, buildings, and rooms, detecting opening of packages, freezers, safeboxes, etc, and more

**Devices that support this mode:** SimplePack Plus

**Required sensors:** Light sensor, WiFi module

**Mode-specific deltas:**

**Deltas** are mode-specific register values different from *register default values*.

| **Register (hex)** | **Default (hex)** | **Delta (hex)** | **Delta information** |
| ------------------ | ----------------- | --------------- | --------------------- |
| 0x04               | 0x41              | 0x06            | Sleep time decreased  |
| 0x36               | 0x00              | 0x05            | Light detection on    |

**Mode-specific events (uplink messages):**

For more information on what uplink messages (***mode-independent events***) and additional data from various sensors in the device (***appended payload***) can be sent regardless of mode and how to fine-tune message behavior (***alerts***), see *Mode-independent information and events.*

<table data-header-hidden><thead><tr><th width="182"></th><th></th><th></th><th></th></tr></thead><tbody><tr><td><strong>Hex</strong></td><td><strong>Event name</strong></td><td><strong>Alert</strong></td><td><strong>Event information</strong></td></tr><tr><td>0x60</td><td>Light detected WiFi Precise</td><td>1</td><td>Light % over predefined threshold,<br>sent with 5 MAC pointers and RSSI</td></tr><tr><td>0x61</td><td>Darkness detected WiFi Precise</td><td>2</td><td>Light % under predefined threshold,<br>sent with 5 MAC pointers and RSSI</td></tr><tr><td>0xFC</td><td>MAC storage readout</td><td>No</td><td>One pointer and its assigned MAC address sent</td></tr></tbody></table>

**Registers relevant for this mode:**

| **Hex** | **Register name**               | **Default value (hex)**                                                                                                                                                                         |
| ------- | ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 0x36    | Light sensor measurement period | 0 seconds (0x00), **delta: 5 seconds (0x05)**                                                                                                                                                   |
| 0x43    | Light sensitivity hysteresis    | 5% of light (0x05)                                                                                                                                                                              |
| 0x44    | Light sensitivity threshold     | 30% of light (0x1A)                                                                                                                                                                             |
| 0x4C    | Light sensor detection delay    | 0 seconds (0x00)                                                                                                                                                                                |
| 0xFC    | MAC storage eraser              | **No default value** - After this register hex, you can send up to 7 MAC pointers (0x01-0x80) to the device and then the respective MAC addresses will be deleted from the internal MAC storage |
| 0xFD    | MAC storage reader              | **No default value** - After this register hex, you can send up to 7 MAC pointers (0x01-0x80) to the device, the respective MAC addresses will be uplinked as the same number of *0xFC events*  |

**Similar modes:**

| **Hex** | **Mode name**           | **Description**                            |
| ------- | ----------------------- | ------------------------------------------ |
| 0x0D    | Light on/off            | Original version of Light on/off, no WiFi  |
| 0x1A    | Light on/off WiFi       | Basic WiFi-enabled version of Light on/off |
| 0x3B    | Light on/off WiFi Atlas | WiFi Atlas version of Light on/off         |

**Switching to mode, arming, and disarming information:**

Follow the *Basic Operations With SimpleHw Devices guide*, where you can also find information about LED behavior, relevant Sigfox messages, and more.

Here’s what’s important for **Light on/off WiFi Precise** messages:

* To set this mode, the downlink needs to include this mode register setting: **0156**
* The uplink messages need to begin with the mode hex as the first byte: **56**
* When arming the device, you should see this message: **5610**
* When the device is armed, it should send you these two bytes: **5611**
* If you disarm the device via the long press, you should receive this message: **5614**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ask.simplehw.eu/kb/simple-api-6-generation/modes/api-6-wifi-superlocal-user-modes_15466519/light-on-off-wifi-superlocal.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
