With this project you can easily read the following digital thermometers via Bluetooth and make them available to OSPi as an mqtt sensor:
// 1 = Xiaomi LYWSD03MMC-ATC https://github.com/atc1441/ATC_MiThermometer or https://github.com/pvvx/ATC_MiThermometer
// 2 = Govee H5052 (type 4 advertising packages)
// 3 = Govee H5072
// 4 = Govee H5102
// 5 = Govee H5075
// 6 = Govee H5074 (type 4 advertising packages)
// 99 = Display raw type 0 and type 4 advertising packets for this BLE MAC address
https://github.com/deepcoder/bluetooth-temperature-sensors
Home Connect can also be used, but is only optional. But you definitely need an MQTT server, such as Mosquitto
If everything is set up correctly, you can retrieve the data using MQTT Explorer, for example.
In the next step you can then enter the topic as an MQTT sensor. Use as a filter:
- “tempc” for the temperature in degrees Celsius
- “tempf” for the temperature in degrees Fahrenheit
- “humidity” for the air humidity in percent
- “batterypct” for the battery capacity