A homebridge-plugin for the Inkbird bluetooth temperature- and humidity-sensors.
sudo npm install -g homebridge --unsafe-perm
sudo npm install -g homebridge-inkbird-bt-thsensor
sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
The command 1.c grants the node binary cap_net_raw privileges, so it can start/stop BLE advertising. Note: The command requires setcap to be installed. It can be installed the following way:
apt: sudo apt-get install libcap2-bin
yum: su -c \'yum install libcap2-bin\'
"accessories": [
{
"accessory" : "InkbirdBtTHSensor",
"plugin_map" :
{
"plugin_name" : "homebridge-inkbird-bt-thsensor",
"index" : 0
},
"name" : "Garden TH Sensor",
"model" : "IBS-TH2-Plus",
"sensor" : "internal",
"mac_address" : "50:51:A9:7D:FC:E9",
"update_interval" : 600,
"offset_int_temperature": -50,
"offset_ext_temperature": +30,
"offset_int_humidity" : +210,
"storage" : "filesystem",
"loglevel" : 3
}
]
not in list - try it anyway
You won't get an error that the sensor is wrong and plausibility and CRC checks will be switched off.
But be warned, you might get very strange values!!!7/6/2020 12:39:05 [Garden TH Sensor] Peripheral with MAC 50:51:a9:7d:fc:e9 found - stop scanning
There you have your MAC. Copy it to your configuration in this format ("xx:xx:xx:xx:xx:xx") to lock only to this sensor.filesystem
(default) or googleDrive
(not tested)).If you have an Inkbird Bluetooth sensor other than the IBS-TH1 please try it out using the not in list - try it anyway
or the IBS-TH1
setting for the model parameter. If the sensor works -> fine, if not set your log level to 4 (debug) and you'll see a
debug message somewhat like Debug - ManufacturerData is 9c077215005be33f08
. Try finding out the protocol by heating up / cooling down the sensor and checking which values change. You can also use the original app to compare the temperature and the ManufacturerData. The protocol of the IBS-TH1
you find in index.js
And here I'm depending on your help as I only have the IBS-TH1
. Please let me know everything about new sensors, like:
IBS-TH1
setting and I will update the plugin so more people can use it. Thanks a lot