Accéder au contenu principal

Articles

Affichage des articles du mai, 2018

OpenMQTTGateway now reads Xiaomi Mijia Temperature and Humidity sensor

In the path of integrating BLE devices to OpenMQTTGateway I have found the Xiaomi Mi Jia Humidity and temperature sensor to be a good candidate.

This little indoor sensor is able to measure temperature and humidity and to transmit these data by bluetooth low energy to your smartphone.




As we already integrated another BLE device (Mi Flora) why not extending the integration scope of OpenMQTTGateway to this one.

I ordered one to see if I was able to extract data from it. After a few weeks, I received it, a first test with nRF connect application showed me that this device diffuses data in a quite similar way compared to Mi Flora (using BLE service data exposition).

From this point I had to determine the differences between the data sent from mi flora and the data sent from mi jia hum & temp sensor. The reverse engineering was similar to the one done with Mi Flora and with some offset implementation in the program I was able to read easily the humidity and temperature of the sensor.

You ca…