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

Support for TH2? #8

Closed Jacksonbm1 closed 2 years ago

Jacksonbm1 commented 3 years ago

I know you don't officially have support for it. I'm interested in seeing if I could help you debug it? I'd be happy to plug it in, mess around and do stuff to help you debug. Let me know if you're interested at all.

SteidlD commented 3 years ago

Hi, surely I'm interested and from the fotos I see in the Internet you got a fair chance that the protocol here is the same. Did you read chapter 3 in the readme and could you try out what I wrote there and give me feedback please? https://github.com/SteidlD/homebridge-inkbird-bt-thsensor#3-new-sensor-types

Jacksonbm1 commented 3 years ago

Question on this I see some references "eve" is this the app eve or something? Also, is the thermometer output supposed to look like in homekit?

Ok, here's a dump of all the logs related to the unit:

[5/1/2021, 7:24:56 PM] [freezer] Initializing InkbirdBtTHSensor accessory...

[5/1/2021, 7:24:56 PM] [freezer] Start Initialization [5/1/2021, 7:24:56 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on [5/1/2021, 7:24:56 PM] [freezer] Debug - End Initialization [5/1/2021, 7:24:56 PM] [freezer] Debug - Getting available services [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:24:58 PM] [freezer] Debug - Bluetooth low energy hardware powered on [5/1/2021, 7:24:58 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery low status [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery level [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:13 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:13 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:13 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:40 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:40 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:52 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:55 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:55 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:10 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:26:10 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:26:10 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:26:10 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery ok

Jacksonbm1 commented 3 years ago

Oh wait I see! It's showing up in my homekit UI. However, I missed some logs, let me repost. Also I think it's causing homebridge not to work.

Here's the extended log:

[5/1/2021, 7:24:53 PM] Loaded plugin: homebridge-inkbird-bt-thsensor@0.4.1 [5/1/2021, 7:24:55 PM] Registering accessory 'homebridge-inkbird-bt-thsensor.InkbirdBtTHSensor' [5/1/2021, 7:24:56 PM] [freezer] Initializing InkbirdBtTHSensor accessory... [5/1/2021, 7:24:56 PM] [freezer] Start Initialization [5/1/2021, 7:24:56 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on [5/1/2021, 7:24:56 PM] [freezer] Debug - End Initialization [5/1/2021, 7:24:56 PM] [freezer] Debug - Getting available services [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:24:58 PM] [freezer] Debug - Bluetooth low energy hardware powered on [5/1/2021, 7:24:58 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery low status [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery level [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:13 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:40 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:40 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:52 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:55 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:10 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:26:10 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:24:53 PM] Loaded plugin: homebridge-inkbird-bt-thsensor@0.4.1

[5/1/2021, 7:24:55 PM] Registering accessory 'homebridge-inkbird-bt-thsensor.InkbirdBtTHSensor' [5/1/2021, 7:24:56 PM] [freezer] Initializing InkbirdBtTHSensor accessory... [5/1/2021, 7:24:56 PM] [freezer] Start Initialization [5/1/2021, 7:24:56 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on [5/1/2021, 7:24:56 PM] [freezer] Debug - End Initialization [5/1/2021, 7:24:56 PM] [freezer] Debug - Getting available services [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:24:58 PM] [freezer] Debug - Bluetooth low energy hardware powered on [5/1/2021, 7:24:58 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery low status [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery level [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:13 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:40 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:40 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:52 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:55 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:10 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:26:10 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery ok

[5/1/2021, 7:24:53 PM] Loaded plugin: homebridge-inkbird-bt-thsensor@0.4.1

[5/1/2021, 7:24:55 PM] Registering accessory 'homebridge-inkbird-bt-thsensor.InkbirdBtTHSensor' [5/1/2021, 7:24:56 PM] [freezer] Initializing InkbirdBtTHSensor accessory... [5/1/2021, 7:24:56 PM] [freezer] Start Initialization [5/1/2021, 7:24:56 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on [5/1/2021, 7:24:56 PM] [freezer] Debug - End Initialization [5/1/2021, 7:24:56 PM] [freezer] Debug - Getting available services [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:24:58 PM] [freezer] Debug - Bluetooth low energy hardware powered on [5/1/2021, 7:24:58 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery low status [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery level [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:13 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:40 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:40 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:52 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:55 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:10 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:26:10 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery ok

[5/1/2021, 7:24:53 PM] Loaded plugin: homebridge-inkbird-bt-thsensor@0.4.1

[5/1/2021, 7:24:55 PM] Registering accessory 'homebridge-inkbird-bt-thsensor.InkbirdBtTHSensor' [5/1/2021, 7:24:56 PM] [freezer] Initializing InkbirdBtTHSensor accessory... [5/1/2021, 7:24:56 PM] [freezer] Start Initialization [5/1/2021, 7:24:56 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on [5/1/2021, 7:24:56 PM] [freezer] Debug - End Initialization [5/1/2021, 7:24:56 PM] [freezer] Debug - Getting available services [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:24:58 PM] [freezer] Debug - Bluetooth low energy hardware powered on [5/1/2021, 7:24:58 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery low status [5/1/2021, 7:24:58 PM] [freezer] Debug - Start getting battery level [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' was slow to respond! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:07 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:13 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:13 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:13 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:40 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:40 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:52 PM] [freezer] Debug - Start getting humidity [5/1/2021, 7:25:55 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Info - Sending battery ok [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:25:55 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:25:55 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:25:55 PM] [freezer] Debug - Start scanning for bluetooth sensor [5/1/2021, 7:25:55 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting temperature [5/1/2021, 7:26:07 PM] [freezer] Debug - Start getting external sensor flag [5/1/2021, 7:26:10 PM] [freezer] Warning - Peripheral NOT found - stop scanning [5/1/2021, 7:26:10 PM] [freezer] Info - Sending temperature undefined°C [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Temperature': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending relative humidity undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Current Relative Humidity': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending internal sensor [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'External Sensor': characteristic value expected boolean and received undefined. See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery level undefined% [5/1/2021, 7:26:10 PM] [homebridge-inkbird-bt-thsensor] This plugin generated a warning from the characteristic 'Battery Level': characteristic value expected valid finite number and received "undefined" (undefined). See https://git.io/JtMGR for more info. [5/1/2021, 7:26:10 PM] [freezer] Info - Sending battery ok

SteidlD commented 3 years ago

Hi, The important line is: [5/1/2021, 7:25:13 PM] [freezer] Warning - Peripheral NOT found - stop scanning

-> can you post your configuration?

Jacksonbm1 commented 3 years ago

Yeah, so I took it out while testing, so it was next to my raspberry pi. I left mac blank. See the config for more details:

I removed the parts of config that aren't relevant

"accessories": [ { "name": "freezer", "model": "not in list - try it anyway", "mac_address": "4", "loglevel": 4, "accessory": "InkbirdBtTHSensor" }

SteidlD commented 3 years ago

Hi, Ok, thanks. Here my advices:

good luck :-)

SteidlD commented 3 years ago

Any update? Did you succeed? Is TH2 sensor running now? If it works I'd like to share the info for others.

Thanx

Jacksonbm1 commented 3 years ago

Sorry, I got distracted, but I'm working on it

be sure to leave MAC really blank (“”). In your example there is still a number 4 inside the MAC. You can also leave out complete line

Done

did you run step 1c in the manual: sudo setcap cap_net_raw+eip $(eval readlink -f 'which node')

I set it up using the homebridge UI. Since it's already set up, how would I go about running this command? Do I need to do anything before?

To check whether your Bluetooth module and noble installation works you can:

stop Homebridge go to: /home/hoobs/.hoobs/node_modules/@abandonware/noble/examples And run: node advertisement-discovery.js This should show you Bluetooth peripherals that are found There you should find something. My sensor shows by the local name of “sps”

Not sure how to do this? My homebridge folder is at var/lib/homebridge (not running hoobs). I don't see nay of the files you're referring to, but maybe I'm looking in the wrong place.

Still getting similar errors:

[5/7/2021, 2:32:59 PM] [freezer] Debug - Start getting temperature
[5/7/2021, 2:32:59 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on
[5/7/2021, 2:32:59 PM] [freezer] Debug - Start getting humidity
[5/7/2021, 2:32:59 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on
[5/7/2021, 2:32:59 PM] [freezer] Debug - Start getting battery low status
[5/7/2021, 2:32:59 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on
[5/7/2021, 2:32:59 PM] [freezer] Debug - Start getting battery level
[5/7/2021, 2:32:59 PM] [freezer] Warning - Waiting for bluetooth low energy hardware to power on
[5/7/2021, 2:33:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[5/7/2021, 2:33:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[5/7/2021, 2:33:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[5/7/2021, 2:33:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[5/7/2021, 2:33:01 PM] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
SteidlD commented 3 years ago

Setcap

Running the example

Hope that helps....

SteidlD commented 3 years ago

Did you get it running?

Jacksonbm1 commented 3 years ago

Sorry, still working on this. I just got my components for my Pi Zero W which will be dedicated to Bluetooth stuff that’s nearer to my freezer. So once I set that up, testing will become a lot easier. I’ll keep you updated though! And thanks for checking in and continuing to work on this project

SteidlD commented 3 years ago

Is there any update on this topic?

Jacksonbm1 commented 3 years ago

Ok, finally got you an update:

I am now using my Pi Zero W. Here's what's going on.

Ran the command

pi@raspberrypi:~ $ sudo setcap cap_net_raw+eip $(eval readlink -f 'which node')
Failed to set capabilities on file `/home/pi/which' (No such file or directory)
The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

and I think it actually should have been:

pi@raspberrypi:~ $ sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

which didn't seem to do anything, but also didn't return the error.

Additionally:

find / -type d -name "@abandonware" -print 2>/dev/null

/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/@abandonware
/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/@abandonware/bluetooth-hci-socket/build/Release/.deps/usr/local/lib/node_modules/homebridge-switchbot-for-mac/node_modules/@abandonware
/usr/local/lib/node_modules/homebridge-switchbot-for-mac/.licenses/npm/@abandonware
/usr/local/lib/node_modules/homebridge-inkbird-bt-thsensor/node_modules/@abandonware
/usr/local/lib/node_modules/homebridge-inkbird-bt-thsensor/node_modules/@abandonware/bluetooth-hci-socket/build/Release/.deps/usr/local/lib/node_modules/homebridge-inkbird-bt-thsensor/node_modules/@abandonware

On to the main issue. I realized I had mistyped my MAC, so I got it again and now it's giving me static values (incorrect and they won't change). I also have tried to change the sensor to the TH1 and that threw tons of errors, so that's not going to work.

Config:

        {
            "name": "freezer",
            "model": "not in list - try it anyway",
            "mac_address": "e7:e7:23:af:39:8c",
            "loglevel": 4,
            "accessory": "InkbirdBtTHSensor"
        }

Logs: It's consistently giving me the exact same outputs for the sensor (same temperature, humidity, and power). Temp is not accurate, humidity is somewhat (but static), power is wrong. I did test to see if changing the actual temperature helped.

[23/06/2021, 04:30:37] [freezer] Warning - Waiting for bluetooth low energy hardware to power on
[23/06/2021, 04:30:42] [freezer] Debug - Start getting temperature
[23/06/2021, 04:30:42] [freezer] Debug - Bluetooth low energy hardware powered on
[23/06/2021, 04:30:42] [freezer] Debug - Start scanning for bluetooth sensor
[23/06/2021, 04:30:42] [freezer] Debug - Start getting external sensor flag
[23/06/2021, 04:30:42] [freezer] Debug - Start getting humidity
[23/06/2021, 04:30:42] [freezer] Debug - Start getting battery low status
[23/06/2021, 04:30:42] [freezer] Debug - Start getting battery level
[23/06/2021, 04:30:43] [freezer] Info - Peripheral with MAC e7:e7:23:af:39:8c found - stop scanning
[23/06/2021, 04:30:43] [freezer] Debug - ManufacturerData is a705051001000000000000021a00ca
[23/06/2021, 04:30:43] [freezer] Debug - CRC Ok (14cd), temperature 14.47°C, relative humidity 41.01%, external sensor
[23/06/2021, 04:30:43] [freezer] Debug - battery level 0%, battery low
[23/06/2021, 04:30:43] [freezer] Info - Sending temperature 14.47°C
[23/06/2021, 04:30:43] [freezer] Info - Sending relative humidity 41.01%
[23/06/2021, 04:30:43] [freezer] Info - Sending external sensor
[23/06/2021, 04:30:43] [freezer] Info - Sending battery level 0%
[23/06/2021, 04:30:43] [freezer] Info - Sending battery low
[23/06/2021, 04:30:49] [freezer] Debug - Start getting temperature
[23/06/2021, 04:30:49] [freezer] Info - Sending temperature 14.47°C
[23/06/2021, 04:30:49] [freezer] Debug - Start scanning for bluetooth sensor
[23/06/2021, 04:30:49] [freezer] Debug - Start getting external sensor flag
[23/06/2021, 04:30:49] [freezer] Debug - Start getting humidity
[23/06/2021, 04:30:49] [freezer] Debug - Start getting battery low status
[23/06/2021, 04:30:49] [freezer] Debug - Start getting battery level
[23/06/2021, 04:30:50] [freezer] Info - Peripheral with MAC e7:e7:23:af:39:8c found - stop scanning
[23/06/2021, 04:30:50] [freezer] Debug - ManufacturerData is a705051001000000000000021a00ca
[23/06/2021, 04:30:50] [freezer] Debug - CRC Ok (14cd), temperature 14.47°C, relative humidity 41.01%, external sensor
[23/06/2021, 04:30:50] [freezer] Debug - battery level 0%, battery low
[23/06/2021, 04:30:50] [freezer] Info - Sending temperature 14.47°C
[23/06/2021, 04:30:50] [freezer] Info - Sending relative humidity 41.01%
[23/06/2021, 04:30:50] [freezer] Info - Sending external sensor
[23/06/2021, 04:30:50] [freezer] Info - Sending battery level 0%
[23/06/2021, 04:30:50] [freezer] Info - Sending battery low
Jacksonbm1 commented 3 years ago

I also got a few other errors later when messing around

[23/06/2021, 05:06:11] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Temperature' was slow to respond! See https://git.io/JtMGR for more info.
[23/06/2021, 05:06:11] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'External Sensor' was slow to respond! See https://git.io/JtMGR for more info.
[23/06/2021, 05:06:11] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Current Relative Humidity' was slow to respond! See https://git.io/JtMGR for more info.
[23/06/2021, 05:06:11] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Status Low Battery' was slow to respond! See https://git.io/JtMGR for more info.
[23/06/2021, 05:06:11] [homebridge-inkbird-bt-thsensor] This plugin slows down Homebridge. The read handler for the characteristic 'Battery Level' was slow to respond! See https://git.io/JtMGR for more info.
PlatGitHub468 commented 2 years ago

This thread is interesting. I have some IBS-TH2 and would like to see it works with this plugin.

SteidlD commented 2 years ago

Hi, sorry, I've recently not been active here and forgot to answer. @Jacksonbm1 : You're right, I had an error in my manual using the wrong ticks(`). And the command doesn't show any output on success - but it worked seeing your logs...

Are you still interested to try to get this running? The upcoming months I got a bit more time for these projects... ;-) Now that the bluetooth is running the basic question to whether this will works is: Is your sensor also transmitting the desired data inside the manufacturer data of a scan request. Because this is what the plugin uses to determine the values.

To find this out you would have to play a bit with your sensor:

When playing around always look for the log lines: [23/06/2021, 04:30:43] [freezer] Debug - ManufacturerData is a705051001000000000000021a00ca Which parts of the line changes.

and so on. This is how I found it out on my sensor type. Good luck and let me know if you deciphered it.

lucasromeiro commented 2 years ago

Hi, how can I access ibs-th2 mass memory? (internal memory) thanks

99brendanallen commented 2 years ago

Also following.. has anyone gotten this to work? I just got a IBS-TH2 and having issues installing the plugin via HOOBS. It won't even load the plugin when the bridge starts up.

Jacksonbm1 commented 2 years ago

I didn't, but that's because I switched to zigbee sensors and basically stopped trying

SteidlD commented 2 years ago

Support for IBS-TH2 added in version 0.5.0