Com este projeto você pode ler facilmente os seguintes termômetros digitais via Bluetooth e disponibilizá-los ao OSPi como um sensor mqtt:
// 1 = Xiaomi LYWSD03MMC-ATC https://github.com/atc1441/ATC_MiThermometer ou https://github.com/pvvx/ATC_MiThermometer
// 2 = Govee H5052 (pacotes publicitários tipo 4)
// 3 = Govee H5072
// 4 = Govee H5102
// 5 = Govee H5075
// 6 = Govee H5074 (pacotes publicitários tipo 4)
// 99 = Exibe pacotes publicitários brutos tipo 0 e tipo 4 para este endereço MAC BLE
https://github.com/deepcoder/bluetooth-temperature-sensors
Home-Connect kann ebenfalls verwendet werden, ist aber nur Optional. Ihr braucht aber auf jeden Fall einen MQTT Server, wie z.B. der Mosquitto
Wenn alles korrekt eingerichtet ist, könnt ihr z.B. mit dem MQTT Explorer die Daten abrufen.
Im nächsten Schritt kann man dann das Topic als MQTT Sensor eintragen. Verwenden Sie als Filter:
- “tempc” für die Temperatur in Grad Celcius
- “tempf” für die Temperatur in Grad Fahrenheit
- “humidity” für die Luftfeuchtigkeit in Prozent
- “batterypct” für die Batteriekapazität