SteidlD / homebridge-inkbird-bt-thsensor

A homebridge-plugin for the Inkbird bluetooth temperature and humidity sensors.
GNU General Public License v3.0
8 stars 2 forks source link

homebridge-inkbird-bt-thsensor

A homebridge-plugin for the Inkbird bluetooth temperature- and humidity-sensors.

Features:

Installation:

1. Install homebridge and inkbird-bt-thsensor plugin.

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\'

2. Update homebridge configuration file.

"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
   }
]

3. New sensor types

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:

and I will update the plugin so more people can use it. Thanks a lot