Closed pilot1981 closed 3 years ago
It is saying that it can't find the Bluetooth interface with MAC address 'B8:27:EB:A0:08:89'
Is BLE monitor working right now?
What kind of installation do you have? Could you post the result of hcitool dev
with SSH.
MAC address 'B8:27:EB:A0:08:89' result from #bluetoothctl command line output...
I also tried this config:
ble_monitor: discovery: False batt_entities: True devices: - mac: '74:a3:4a:c0:16:78' name: 'Mosquito'
but I always obtain same log error from component check config:
[12:50:22] ERROR: Found an error in the log output of the check! [12:50:22] ERROR: See the output below for more details. ERROR:custom_components.ble_monitor:No Bluetooth interface found. Make sure Bluetooth is installed on your system [12:50:22] INFO: The full output has been written to /share/check_config.txt
but BLE monitor work fine with both configuration...
can I upgrade lo lastest HASSIO version?
Yes, you can update to the latest HassIo version.
The error is due to the latest update of BLE monitor. BLE monitor runs hciconfig
to get the available MAC addresses on your system. You get the error if it doesn't find any Bluetooth MAC address.
What I don't understand is that BLE monitor does work, but it doesn't find the MAC address. Can you do a restart of Home Assistant, and right after the restart check the logs. There should be a warning in the HA logs with a list of available MAC address(es),
Do you only get this error, when you do the configuration check, or also after a restart?
I get this error only when I start component check config...
BLE_monitor works fine.
no any other error in HA logs, also after restart HA.
so if I get MAC address from #bluetoothctl cmmand, it isn't correct? I have to get it using @hciconfig in command line?
the hciconfig
command won't work on Home Assistant OS, at least not with the SSH add-on. But that is not needed.
I assume you used configuration of BLE monitor in YAML, is that correct?
If so, you should get a message in the log that says.
Available Bluetooth interfaces for BLE monitor:
Do you have this message in the log (it's a warning message). if you have this message, can you tell me what is says.
And with component check config, do you mean this??
I'm speaking about official component "check home assistant configuration" here:
I found it:
Sorry, I don't understand? What did you find?
I tried it on my system, and it didn't find an error. (Supervised installation on raspberry OS).
I found info into HA GUI, but not bluetooth interface...
on HASSIO, chere you find message in the log that says: "Available Bluetooth interfaces for BLE monitor:" in which file?
You can find it under Configuration --> Logs. Note that is only is shown when you configured ble_monitor in YAML.
I don't found it...
I suppose first I have to enable logs in configuration.yaml?!
custom_components.ble_monitor: debug
ok, done. I report here my logs:
Logger: custom_components.ble_monitorSource: custom_components/ble_monitor/init.py:261Integration: Passive BLE monitor (documentation)First occurred: 12:08:32 (1 occurrences)Last logged: 12:08:32 Available Bluetooth interfaces for BLE monitor: ['B8:27:EB:A0:08:89']
so, this could confirm my good setup in configuration.yaml:
ble_monitor: discovery: False batt_entities: True bt_interface: 'B8:27:EB:A0:08:89' devices: - mac: '74:a3:4a:c0:16:78' name: 'Mosquito'
or I have to add to my configuraztion.yaml also this parameter "hci_interface" ?
so, I think this problem could be related to HA addon "check home assistant configuration"?
Yes, it seems so. Looks like everything is fine, except the check home assistant configuration. As I said, it didn’t cause an error on my system (HA supervised). I will do a check with Home Assistant OS this weekend, have to find an SD card somewhere first. Will get back to you a.s.a.p.
Configuration is ok, you don’t have to add bt_interface
. Normally only needed if you have multiple Bluetooth interfaces, and you want explicitly specify which one to use.
I have raspberry 3 pi b+, so only one bluetooth interface...
To replicate issue you need to use addon check config 3.6.0 and try to go from HASSIO 2021.3.x to 2021.4.1
regards
I tried again, now with YAML config in stead of configuration in the User Interface (still Supervised installation). I now do get the error.
I will look into it
yes, this is the same error for me!
This issue is fixed in 1.7.2-beta.
1.7.2 has been released, which should fix this issue.
Hi @Ernst79, I found again the same error from HASSIO core-2021.4.6 to core-2021.5.2
[12:51:18] ERROR: The configuration check did not pass! [12:51:18] ERROR: See the output below for more details. Testing configuration at /tmp/config WARNING:custom_components.ble_monitor:No Bluetooth interface found. Make sure Bluetooth is installed on your system Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main status = self.run(options, args) File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper return func(self, options, args) File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 323, in run requirement_set = resolver.resolve( File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 183, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 391, in _resolve_one dist = abstract_dist.get_pkg_resources_distribution() File "/usr/local/lib/python3.8/site-packages/pip/_internal/distributions/wheel.py", line 29, in get_pkg_resources_distribution with ZipFile(self.req.local_file_path, allowZip64=True) as z: [12:51:19] INFO: The full output has been written to /share/check_config.txt s6-svscanctl: fatal: unable to control /var/run/s6/services: supervisor not listening [cont-finish.d] executing container finish scripts... [cont-finish.d] done.
opening file /share/check_config I found this:
`INFO:homeassistant.util.package:Attempting install of colorlog==5.0.1 [01mTesting configuration at /tmp/config[0m INFO:homeassistant.util.package:Attempting install of aiohttp_cors==0.7.0 INFO:homeassistant.util.package:Attempting install of home-assistant-frontend==20210504.0 INFO:homeassistant.util.package:Attempting install of pillow==8.1.2 INFO:homeassistant.util.package:Attempting install of pycryptodomex>=3.10.1 INFO:homeassistant.util.package:Attempting install of janus>=0.6.1 WARNING:custom_components.ble_monitor:No Bluetooth interface found. Make sure Bluetooth is installed on your system INFO:homeassistant.util.package:Attempting install of netdisco==2.8.2 INFO:homeassistant.util.package:Attempting install of pyroute2==0.5.18 INFO:homeassistant.util.package:Attempting install of influxdb==5.2.3 INFO:homeassistant.util.package:Attempting install of influxdb-client==1.14.0 INFO:homeassistant.util.package:Attempting install of paho-mqtt==1.5.1 INFO:homeassistant.util.package:Attempting install of websocket-client==0.56.0 INFO:homeassistant.util.package:Attempting install of wakeonlan>=2.0.0 INFO:homeassistant.util.package:Attempting install of python-telegram-bot==13.1 INFO:homeassistant.util.package:Attempting install of PySocks==1.7.1 INFO:homeassistant.util.package:Attempting install of HAP-python==3.4.1 INFO:homeassistant.util.package:Attempting install of fnvhash==0.1.0 INFO:homeassistant.util.package:Attempting install of PyQRCode==1.2.1 INFO:homeassistant.util.package:Attempting install of base36==0.1.1 INFO:homeassistant.util.package:Attempting install of PyTurboJPEG==1.4.0 ERROR:homeassistant.util.package:Unable to install package PyTurboJPEG==1.4.0: ERROR: Exception: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 228, in _main status = self.run(options, args) File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper return func(self, options, args) File "/usr/local/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 323, in run requirement_set = resolver.resolve( File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 183, in resolve discovered_reqs.extend(self._resolve_one(requirement_set, req)) File "/usr/local/lib/python3.8/site-packages/pip/_internal/resolution/legacy/resolver.py", line 391, in _resolve_one dist = abstract_dist.get_pkg_resources_distribution() File "/usr/local/lib/python3.8/site-packages/pip/_internal/distributions/wheel.py", line 29, in get_pkg_resources_distribution with ZipFile(self.req.local_file_path, allowZip64=True) as z: File "/usr/local/lib/python3.8/zipfile.py", line 1269, in init self._RealGetContents() File "/usr/local/lib/python3.8/zipfile.py", line 1336, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file WARNING: You are using pip version 20.2.4; however, version 21.1.1 is available. You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command. INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.4.13 INFO:homeassistant.util.package:Attempting install of pyatmo==4.2.2 INFO:homeassistant.util.package:Attempting install of hass-nabucasa==0.43.0 INFO:homeassistant.util.package:Attempting install of pygatt[GATTTOOL]==4.0.5 INFO:homeassistant.util.package:Attempting install of icmplib==2.1.1 INFO:homeassistant.util.package:Attempting install of holidays==0.11.1 INFO:homeassistant.util.package:Attempting install of alexapy==1.25.1 ERROR:homeassistant.util.package:Unable to install package alexapy==1.25.1: WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462b50>: Failed to establish a new connection: [Errno -3] Try again')': /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462bf8>: Failed to establish a new connection: [Errno -3] Try again')': /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462ca0>: Failed to establish a new connection: [Errno -3] Try again')': /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462d48>: Failed to establish a new connection: [Errno -3] Try again')': /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462e08>: Failed to establish a new connection: [Errno -3] Try again')': /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Max retries exceeded with url: /packages/d9/29/9ef48949b4a41e264002700ea1776b325f89724b9b15e1162293146ab64f/AlexaPy-1.25.1-py3-none-any.whl (Caused by NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x75462ec8>: Failed to establish a new connection: [Errno -3] Try again')) INFO:homeassistant.util.package:Attempting install of python-forecastio==1.4.0 INFO:homeassistant.util.package:Attempting install of PyNaCl==1.3.0 INFO:homeassistant.util.package:Attempting install of emoji==1.2.0 INFO:homeassistant.util.package:Attempting install of speedtest-cli==2.1.3 WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/configuration.yaml:402 is deprecated, please remove it from your configuration INFO:homeassistant.util.package:Attempting install of bluepy==1.3.0 INFO:homeassistant.util.package:Attempting install of miflora==0.7.0 INFO:homeassistant.util.package:Attempting install of pynut2==2.1.2 INFO:homeassistant.util.package:Attempting install of psutil==5.8.0 WARNING:homeassistant.components.uptime.sensor:The 'unit_of_measurement' option is deprecated, please remove it from your configuration WARNING:homeassistant.components.uptime.sensor:The 'unit_of_measurement' option is deprecated, please remove it from your configuration INFO:homeassistant.util.package:Attempting install of pyhaversion==21.3.0 WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dishwasher.yaml:49 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dishwasher.yaml:54 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dishwasher.yaml:72 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dryer.yaml:49 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dryer.yaml:54 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/dryer.yaml:76 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/oven.yaml:92 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/oven.yaml:107 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/oven.yaml:113 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/washing_machine.yaml:49 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/washing_machine.yaml:54 is deprecated, please remove it from your configuration WARNING:homeassistant.components.template.sensor:The 'entity_id' option near /tmp/config/packages/washing_machine.yaml:76 is deprecated, please remove it from your configuration INFO:homeassistant.util.package:Attempting install of pyatv==0.7.7 INFO:homeassistant.util.package:Attempting install of scapy==2.4.5 INFO:homeassistant.util.package:Attempting install of aiodiscover==1.4.0 INFO:homeassistant.util.package:Attempting install of defusedxml==0.6.0 INFO:homeassistant.util.package:Attempting install of async-upnp-client==0.16.2 INFO:homeassistant.util.package:Attempting install of distro==1.5.0 INFO:homeassistant.util.package:Attempting install of pyfujitseu [01;37mFailed config[0m [01;31mGeneral Errors:[0m [31m[31m
Ill look into it
Dont think this is related to ble_monitor. The Errors refer to failing package installations (see below).This is not used by or related to ble_monitor. I think you need to figure out which integration is trying to install this. BLE_monitor is only giving a warning, but this is not the case of the failing config check.
ERROR:homeassistant.util.package:Unable to install package PyTurboJPEG==1.4.0: ERROR: Exception: Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pip/_internal/cli/base_command.p
As far as i can see its homekit and alexa_media integrations that are failing.
Component error: homekit - Requirements for homekit not found: ['PyTurboJPEG==1.4.0']. - Platform error notify.alexa_media - Requirements for alexa_media not found: ['alexapy==1.25.1'
Hi, I'm using this config:
`ble_monitor: discovery: False batt_entities: True bt_interface: 'B8:27:EB:A0:08:89' devices:
but when I use check home assistant configuration component I receive this error:
[11:50:22] ERROR: Found an error in the log output of the check! [11:50:22] ERROR: See the output below for more details. ERROR:custom_components.ble_monitor:No Bluetooth interface found. Make sure Bluetooth is installed on your system [11:50:22] INFO: The full output has been written to /share/check_config.txt
what I have to change in configuration.yaml?