How to record the temperature to a file?
How would I write the current temperature to a file? I'm looking to achieve integration with this and https://github.com/lprhodes/homebridge-broadlink-rm/ and its temperatureFilePath functionality?

EDIT: One solution was here https://github.com/hannseman/homebridge-mi-hygrothermograph/issues/72. There seems to be quite a few requests for this, e.g. https://github.com/lprhodes/homebridge-broadlink-rm/issues/384 and https://www.reddit.com/r/homebridge/comments/b4t30m/combine_rm_mini_3_and_xiaomi_hygrothermograph/. Could this be added to the plugin for direct integration with the various IR aircon plugins? Or could someone at least make a quick tutorial on the MQTT method as it's complete gibberish to me?

EDIT2: This was much simpler than I thought. Add the following to the hygrothermograph config:
```
"mqtt": {
                "url": "mqtt://test.mosquitto.org",
                "temperatureTopic": "sensors/randomtopic"
            }
```
and add the following to Broadlink-RM config:
```
"mqttURL": "mqtt://test.mosquitto.org",
"mqttTopic": "sensors/randomtopic",
```

I'm sure running a broker locally would be a piece of cake using instructions from e.g. here: https://appcodelabs.com/introduction-to-iot-build-an-mqtt-server-using-raspberry-pi