custom-components / ble_monitor

BLE monitor for passive BLE sensors
https://community.home-assistant.io/t/passive-ble-monitor-integration/
MIT License
1.89k stars 243 forks source link

Inkbird IBT-2X - MAC address doesn't match data #629

Closed ThePirat91 closed 2 years ago

ThePirat91 commented 2 years ago

Hello guys, I'm trying to integrate an Inkbird IBT-2X but unfortunately I'm not getting it. I actually got some strange errors (for me, at least) on HA logs every every second (I am on log's DEBUG mode) from the component; see below.

2022-01-16 10:53:17 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:18 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:18 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:19 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:20 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:21 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0200000062000000b5249700ffff
2022-01-16 10:53:22 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:23 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:24 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:24 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:25 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524cb00ffff
2022-01-16 10:53:26 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:27 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:28 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff
2022-01-16 10:53:29 DEBUG (Thread-4) [custom_components.ble_monitor.ble_parser.inkbird] Inkbird MAC address doesn't match data MAC address. Data: 0fff0100000062000000b524ca00ffff

Take a look below for the sensor informations

Screenshot_20220116-102945808 Screenshot_20220116-102951225

Thanks for your help!

Ernst79 commented 2 years ago

Thanks for reporting. ll look into it asap.

Ernst79 commented 2 years ago

I found the issue, your BLE advertisements have the MAC in reversed order, per two characters. Other sensors have the MAC in normal order. I will create a fix for it.

Ernst79 commented 2 years ago

Please try 7.1.0, should be fixed.

ThePirat91 commented 2 years ago

Hello and thanks for your help. Sorry to inform you that 7.1.0 is not working for me. The error is changed but HA can't still receive the IBT data

image

I am using yaml and not the gui integration

bt_interface: '.......'
decimals: 1
period: 120
log_spikes: False
use_median: False
active_scan: False
# report_unknown: True
discovery: False
devices:
  - mac: '24:B5:00:00:00:62'
    name: 'Inkbird IBT-2X'

Thank you

Ernst79 commented 2 years ago

Fixed in 7.2.1