Github Devices Community Docs Blog

BLE Xiaomi Night lamp with detector

Here is a newly integrated BLE device from Xiaomi.

It’s a small lamp that you can put on a corridor or on other room where you need a small lamp. It detects the movement and switch on the lamp.
When switching the device advertise data, these data can be read by OpenMQTTGateway and produce the following json:

{"presence":true,"darkness":45}

When detecting movement it advertise also an attribute that I have call darkness as it seems to increase with dark. As the BLE data are advertised only the night when presence is detected (and not during the duration of the lamp on) you will need to decrease the BLE interval.

It is powered by 3 AA batteries.