Mi flora and Mijia temperature/humidity sensor are now well integrated with OpenMQTTGateway, you can have a temperature sensor that last months just with an ESP32 and one of these 2 devices.
Just upload OMG to the ESP32 and it will automatically read the sensors values published by the devices around you.
A few weeks ago I have seen on aliexpress website a new BLE device made by Xiaomi with a big clock and also the ability to measure temperature and humidity. This device is called Mijia model LYWSD02 and you can find it currently for around 15$.
It was the chance to test it and see if it can be incorporated to OMG.
After a few weeks of waiting :-) I received the device.
Another device compatible added to the list.
PS: you now see that I use MQTT explorer to browse the MQTT messages of my different brokers. It is a very usefull tool when working with MQTT!
Just upload OMG to the ESP32 and it will automatically read the sensors values published by the devices around you.
A few weeks ago I have seen on aliexpress website a new BLE device made by Xiaomi with a big clock and also the ability to measure temperature and humidity. This device is called Mijia model LYWSD02 and you can find it currently for around 15$.
It was the chance to test it and see if it can be incorporated to OMG.
After a few weeks of waiting :-) I received the device.
We can see directly that it is an e-ink display (same technology used in ereaders), we should have good results in terms of battery lasting.
The device is powered by 2 classical CR2030 Lithium batteries and comes with some stickers and support for different type of mounts.
Once you remove the little part of platic going out the device you create the contact between batteries and the device to power it on.
We can see that the 3 informations expected are here, but there is a big chance that the clock will not be to your timezone.
So as to put the clock at yours you will need to download the xiaomi mi home app on your smartphone and pair the device. There is no button for pairing, you just need to let the device close to your phone several minutes. And after the clock will be automaticaly set to your timezone
Now if we speak to the integration itself, the device was quite easy to add to OpenMQTTGateway
By looking to the service data published by MQTT before the integration I was able to isolate a special hexadecimal code corresponding to the device (205b04). The temperature and humidity are published in the same way the other Xiaomi devices does.
After some code modifications the device is now integrated and can be seen into your favorite home automation controller thanks to MQTT!
PS: you now see that I use MQTT explorer to browse the MQTT messages of my different brokers. It is a very usefull tool when working with MQTT!
Hi. I have a question. Does this device send battery information like his brothers Mijia and Cleargrass?
RépondreSupprimerThank you :-)
Hi, it doesn't seem to send the battery value.
SupprimerThanks. It seems that, but in the Openmqttgateway code appears battery information. Can anybody confirm that?
Supprimer