hannseman / homebridge-mi-hygrothermograph

Homebridge plugin for the Xiaomi Mi Bluetooth Temperature and Humidity Sensor
MIT License
267 stars 52 forks source link

Current temperature File #78

Closed magnificent3 closed 5 years ago

magnificent3 commented 5 years ago

Is it possible to get a current temperature file so it can be read by another accessory? It's like the fakegato but only with the current temperature for each device.

hannseman commented 5 years ago

Hi! You could use MQTT to achieve that.

Set up an MQTT broker and publish the temperature topic to it. See the README for more information on how to configure this plugin against an MQTT broker: https://github.com/hannseman/homebridge-mi-hygrothermograph#mqtt Write a script to run as a daemon that subscribes to the temperature topic and writes to a text file.

Good luck!