Get Temperature Sensor data via MQTT in Homebridge
sudo npm install -g homebridge-mqtt-temperature
{
"bridge": {
"name": "HomeBridge",
"username": "CC:33:3B:D3:CE:32",
"port": 51826,
"pin": "321-45-123"
},
"description": "",
"accessories": [
{
"accessory": "mqtt-temperature",
"name": "Living Room Temperature",
"url": "mqtt://localhost",
"topic": "home/livingroom/temperature",
"username": "username",
"password": "password",
"maxTemperature": "200",
"minTemperature": "-5",
"serial": "HMT-34932B"
}
],
"platforms": []
}
maxTemperature
and minTemperature
allow you to change the default high and low temperatures.
serial
allows you to change the serial number to a custom value if you need it.
All three are optional as well as username
and password
if you don't use MQTT authentication.