Passive BLE Monitor integration (Xiaomi Mijia BLE MiBeacon monitor)

I did it on instructions. The error in the logs has been preserved.
UPD: Thank you. I did it on instructions one more time. The error in the logs is missing.

Please open a new issue on github to discuss further.

Hi guys,
I have a vm with HomeAssistant latest version and a usb dongle that seems to be detected.

If i use:

  • platform: bluetooth_le_tracker
    interval_seconds: 30
    consider_home: 180
    track_new_devices: true

I seem devices but not those temperature sensors LYWSD03MMC.
I have one with custom firmware the the others has factory.
How can i debug this?

  • platform: mitemp_bt
    rounding: True
    decimals: 1
    period: 30
    log_spikes: False
    use_median: False
    active_scan: False
    hci_interface: 0
    batt_entities: True
    encryptors:
    ‘A4:C1:38:3B:17:83’: ‘EAE610D9D75F46816F708823DEF582CC’
    ‘A4:C1:38:60:D3:9D’: ‘02CBBA555D3AE685AE69D2E4EC493C98’
    report_unknown: True
    whitelist:
    ‘A4:C1:38:4A:A3:3B’

A new version has been released with battery level support for LYSD02 sensors. Please update the firmware to 1.1.2_00085 (or later). Older firmware versions won’t report battery level.

Could you check the hci number of the dongle with

hcitool dev

yes i use it. i find new entity with name called sensor.mi_battery_MAC and work it. thanks

hi guys,
I do use Hassio as an docker image on my surface pro 4 wich is on pop!os. Everything works well as long as I don’t use this custom component.
If I activate this component it seems like every other ip based configuration stops to work. Realy strange as nothing works anymore exccept this component. Any suggestions ?

config.yaml :

 sensor:
   - platform: mitemp_bt
     rounding: True
     decimals: 1
     period: 60
     log_spikes: False
     use_median: False
     active_scan: False
     hci_interface: 0
     batt_entities: False
     report_unknown: False
     whitelist:
       - '58:2D:34:10:xx:xx'

Log:

Log
> 2020-10-27 11:24:13 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
> 2020-10-27 11:24:14 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for mitemp_bt which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
> 2020-10-27 11:24:19 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f217dc8cac0>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:24:20 WARNING (SyncWorker_5) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:24:22 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:24:22 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 5 seconds
> 2020-10-27 11:24:24 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned 
> 2020-10-27 11:24:24 ERROR (MainThread) [homeassistant.components.accuweather] Timeout fetching accuweather data
> 2020-10-27 11:24:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 5 seconds
> 2020-10-27 11:24:25 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:24:25 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 5 seconds
> 2020-10-27 11:24:26 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177e43b20>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:24:34 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry FRITZ!Box 6591 Cable (kdg) for fritzbox
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 426, in _make_request
>     six.raise_from(e, None)
>   File "<string>", line 3, in raise_from
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 421, in _make_request
>     httplib_response = conn.getresponse()
>   File "/usr/local/lib/python3.8/http/client.py", line 1347, in getresponse
>     response.begin()
>   File "/usr/local/lib/python3.8/http/client.py", line 307, in begin
>     version, status, reason = self._read_status()
>   File "/usr/local/lib/python3.8/http/client.py", line 268, in _read_status
>     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
>   File "/usr/local/lib/python3.8/socket.py", line 669, in readinto
>     return self._sock.recv_into(b)
> socket.timeout: timed out
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
>     resp = conn.urlopen(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
>     retries = retries.increment(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 403, in increment
>     raise six.reraise(type(error), error, _stacktrace)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 735, in reraise
>     raise value
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
>     httplib_response = self._make_request(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 428, in _make_request
>     self._raise_timeout(err=e, url=url, timeout_value=read_timeout)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 335, in _raise_timeout
>     raise ReadTimeoutError(
> urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='192.168.188.1', port=80): Read timed out. (read timeout=10)
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 231, in async_setup
>     result = await component.async_setup_entry(hass, self)  # type: ignore
>   File "/usr/src/homeassistant/homeassistant/components/fritzbox/__init__.py", line 79, in async_setup_entry
>     await hass.async_add_executor_job(fritz.login)
>   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
>     result = self.fn(*self.args, **self.kwargs)
>   File "/usr/local/lib/python3.8/site-packages/pyfritzhome/fritzhome.py", line 114, in login
>     (sid2, challenge) = self._login_request(username=self._user,
>   File "/usr/local/lib/python3.8/site-packages/pyfritzhome/fritzhome.py", line 62, in _login_request
>     plain = self._request(url, params)
>   File "/usr/local/lib/python3.8/site-packages/pyfritzhome/fritzhome.py", line 49, in _request
>     rsp = self._session.get(url, params=params, timeout=timeout)
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 543, in get
>     return self.request('GET', url, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 529, in send
>     raise ReadTimeout(e, request=request)
> requests.exceptions.ReadTimeout: HTTPConnectionPool(host='192.168.188.1', port=80): Read timed out. (read timeout=10)
> 2020-10-27 11:24:34 ERROR (MainThread) [homeassistant.components.accuweather] Error fetching accuweather data: Cannot connect to host dataservice.accuweather.com:443 ssl:default [Try again]
> 2020-10-27 11:24:34 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 10 seconds
> 2020-10-27 11:24:35 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f217cbced90>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:24:35 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:24:35 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 10 seconds
> 2020-10-27 11:24:40 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:24:40 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 10 seconds
> 2020-10-27 11:24:40 ERROR (SyncWorker_13) [blinkpy.auth] Connection error. Endpoint https://rest-prod.immedia-semi.com/api/v4/account/login possibly down or throttled.
> 2020-10-27 11:24:40 ERROR (SyncWorker_13) [blinkpy.auth] Login endpoint failed. Try again later.
> 2020-10-27 11:24:40 ERROR (SyncWorker_13) [blinkpy.auth] Unable to refresh token.
> 2020-10-27 11:24:44 ERROR (MainThread) [homeassistant.components.updater] Timeout fetching Home Assistant update data
> 2020-10-27 11:24:45 WARNING (SyncWorker_3) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:24:47 ERROR (MainThread) [custom_components.hacs.custom_components.hacs.remaining_github_calls] Cannot connect to host api.github.com:443 ssl:default [Try again]
> 2020-10-27 11:24:47 CRITICAL (MainThread) [custom_components.hacs] Your GitHub token is not valid
> 2020-10-27 11:24:47 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 5 seconds
> 2020-10-27 11:24:48 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.139781863504624] Disconnected: Did not receive auth message within 10 seconds
> 2020-10-27 11:24:49 ERROR (MainThread) [homeassistant.components.accuweather] Error fetching accuweather data: Cannot connect to host dataservice.accuweather.com:443 ssl:default [Try again]
> 2020-10-27 11:24:49 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 20 seconds
> 2020-10-27 11:24:51 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177eae1f0>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:24:53 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:24:53 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 20 seconds
> 2020-10-27 11:24:58 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177e4ea30>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:25:00 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:25:00 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 20 seconds
> 2020-10-27 11:25:05 WARNING (SyncWorker_6) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:25:07 WARNING (SyncWorker_13) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177e79310>: Failed to establish a new connection: [Errno -3] Try again')': /api/v4/account/login
> 2020-10-27 11:25:10 ERROR (Thread-10) [pychromecast.socket_client] [Smuh (192.168.188.41):42756] Failed to connect to service Google-Cast-Group-4f631f6deeaf439db5bc230011781d64._googlecast._tcp.local., retrying in 5.0s
> 2020-10-27 11:25:12 ERROR (SyncWorker_13) [blinkpy.auth] Connection error. Endpoint https://rest-prod.immedia-semi.com/api/v4/account/login possibly down or throttled.
> 2020-10-27 11:25:12 ERROR (SyncWorker_13) [blinkpy.auth] Login endpoint failed. Try again later.
> 2020-10-27 11:25:12 ERROR (SyncWorker_13) [blinkpy.auth] Unable to refresh token.
> 2020-10-27 11:25:12 WARNING (MainThread) [homeassistant.config_entries] Config entry for blink not ready yet. Retrying in 5 seconds
> 2020-10-27 11:25:14 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: icloud
> 2020-10-27 11:25:14 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.139781722070608] Disconnected: Did not receive auth message within 10 seconds
> 2020-10-27 11:25:14 ERROR (MainThread) [homeassistant.components.accuweather] Error fetching accuweather data: Cannot connect to host dataservice.accuweather.com:443 ssl:default [Try again]
> 2020-10-27 11:25:14 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 40 seconds
> 2020-10-27 11:25:15 ERROR (Thread-11) [pychromecast.socket_client] [Onkyo TX-NR555 DFC50F(192.168.188.41):8009] Failed to connect to service Onkyo-TX-NR555-425ce48236c1629f49e1c866d9eb3466._googlecast._tcp.local., retrying in 5.0s
> 2020-10-27 11:25:21 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:25:21 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 40 seconds
> 2020-10-27 11:25:22 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f217c0ac460>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:25:24 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for icloud
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
>     httplib_response = self._make_request(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
>     self._validate_conn(conn)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
>     conn.connect()
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 362, in connect
>     self.sock = ssl_wrap_socket(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 384, in ssl_wrap_socket
>     return context.wrap_socket(sock, server_hostname=server_hostname)
>   File "/usr/local/lib/python3.8/ssl.py", line 500, in wrap_socket
>     return self.sslsocket_class._create(
>   File "/usr/local/lib/python3.8/ssl.py", line 1040, in _create
>     self.do_handshake()
>   File "/usr/local/lib/python3.8/ssl.py", line 1309, in do_handshake
>     self._sslobj.do_handshake()
> OSError: [Errno 0] Error
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
>     resp = conn.urlopen(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 726, in urlopen
>     retries = retries.increment(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 403, in increment
>     raise six.reraise(type(error), error, _stacktrace)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/packages/six.py", line 734, in reraise
>     raise value.with_traceback(tb)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 670, in urlopen
>     httplib_response = self._make_request(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 381, in _make_request
>     self._validate_conn(conn)
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 978, in _validate_conn
>     conn.connect()
>   File "/usr/local/lib/python3.8/site-packages/urllib3/connection.py", line 362, in connect
>     self.sock = ssl_wrap_socket(
>   File "/usr/local/lib/python3.8/site-packages/urllib3/util/ssl_.py", line 384, in ssl_wrap_socket
>     return context.wrap_socket(sock, server_hostname=server_hostname)
>   File "/usr/local/lib/python3.8/ssl.py", line 500, in wrap_socket
>     return self.sslsocket_class._create(
>   File "/usr/local/lib/python3.8/ssl.py", line 1040, in _create
>     self.do_handshake()
>   File "/usr/local/lib/python3.8/ssl.py", line 1309, in do_handshake
>     self._sslobj.do_handshake()
> urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError(0, 'Error'))
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/usr/src/homeassistant/homeassistant/config_entries.py", line 231, in async_setup
>     result = await component.async_setup_entry(hass, self)  # type: ignore
>   File "/usr/src/homeassistant/homeassistant/components/icloud/__init__.py", line 135, in async_setup_entry
>     await hass.async_add_executor_job(account.setup)
>   File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
>     result = self.fn(*self.args, **self.kwargs)
>   File "/usr/src/homeassistant/homeassistant/components/icloud/account.py", line 107, in setup
>     self.api = PyiCloudService(
>   File "/usr/local/lib/python3.8/site-packages/pyicloud/base.py", line 216, in __init__
>     self.authenticate()
>   File "/usr/local/lib/python3.8/site-packages/pyicloud/base.py", line 235, in authenticate
>     req = self.session.post(
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 578, in post
>     return self.request('POST', url, data=data, json=json, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/pyicloud/base.py", line 74, in request
>     response = super(PyiCloudSession, self).request(method, url, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 530, in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/sessions.py", line 643, in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 498, in send
>     raise ConnectionError(err, request=request)
> requests.exceptions.ConnectionError: ('Connection aborted.', OSError(0, 'Error'))
> 2020-10-27 11:25:25 WARNING (SyncWorker_7) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:25:26 ERROR (MainThread) [custom_components.hacs.custom_components.hacs.remaining_github_calls] Cannot connect to host api.github.com:443 ssl:default [Try again]
> 2020-10-27 11:25:26 CRITICAL (MainThread) [custom_components.hacs] Your GitHub token is not valid
> 2020-10-27 11:25:26 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 10 seconds
> 2020-10-27 11:25:29 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177e43a60>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:25:30 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:25:30 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 40 seconds
> 2020-10-27 11:25:38 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2180699130>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:25:43 ERROR (SyncWorker_8) [blinkpy.auth] Connection error. Endpoint https://rest-e002.immedia-semi.com/api/v3/accounts/4782/homescreen possibly down or throttled.
> 2020-10-27 11:25:45 WARNING (SyncWorker_10) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:25:48 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177eb9520>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:25:50 WARNING (MainThread) [homeassistant.components.websocket_api.http.connection.139781803640768] Disconnected: Did not receive auth message within 10 seconds
> 2020-10-27 11:25:55 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177eb9c40>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:25:59 ERROR (MainThread) [homeassistant.components.accuweather] Error fetching accuweather data: Cannot connect to host dataservice.accuweather.com:443 ssl:default [Try again]
> 2020-10-27 11:25:59 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 80 seconds
> 2020-10-27 11:26:04 WARNING (SyncWorker_8) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177eb99a0>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:26:05 WARNING (SyncWorker_5) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:26:09 ERROR (SyncWorker_8) [blinkpy.auth] Connection error. Endpoint https://rest-e002.immedia-semi.com/networks possibly down or throttled.
> 2020-10-27 11:26:09 WARNING (MainThread) [homeassistant.config_entries] Config entry for blink not ready yet. Retrying in 10 seconds
> 2020-10-27 11:26:09 ERROR (MainThread) [custom_components.hacs.custom_components.hacs.remaining_github_calls] Cannot connect to host api.github.com:443 ssl:default [Try again]
> 2020-10-27 11:26:09 CRITICAL (MainThread) [custom_components.hacs] Your GitHub token is not valid
> 2020-10-27 11:26:09 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 20 seconds
> 2020-10-27 11:26:09 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:26:09 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 80 seconds
> 2020-10-27 11:26:15 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:default [Try again]
> 2020-10-27 11:26:19 WARNING (Thread-12) [pychromecast.socket_client] [SHIELD(192.168.188.55):8009] Heartbeat timeout, resetting connection
> 2020-10-27 11:26:20 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned Cannot connect to host aa015h6buqvih86i1.api.met.no:443 ssl:default [Try again]
> 2020-10-27 11:26:20 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:26:20 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 80 seconds
> 2020-10-27 11:26:22 WARNING (Thread-10) [pychromecast.socket_client] [Smuh (192.168.188.41):42756] Heartbeat timeout, resetting connection
> 2020-10-27 11:26:24 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f21805063d0>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:26:25 WARNING (SyncWorker_17) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:26:31 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f217c07a550>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:26:40 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2180512370>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:26:45 WARNING (SyncWorker_20) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:26:45 ERROR (SyncWorker_19) [blinkpy.auth] Connection error. Endpoint https://rest-e002.immedia-semi.com/api/v3/accounts/4782/homescreen possibly down or throttled.
> 2020-10-27 11:26:50 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177eae8e0>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:26:54 WARNING (Thread-11) [pychromecast.socket_client] [Onkyo TX-NR555 DFC50F(192.168.188.41):8009] Heartbeat timeout, resetting connection
> 2020-10-27 11:26:57 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177f89850>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:27:01 ERROR (Thread-12) [pychromecast.socket_client] [SHIELD(192.168.188.55):8009] Failed to connect to service SHIELD-Android-TV-4b8713afa3c628cd3b81b7b47de22163._googlecast._tcp.local., retrying in 5.0s
> 2020-10-27 11:27:04 ERROR (MainThread) [custom_components.hacs.custom_components.hacs.remaining_github_calls] Cannot connect to host api.github.com:443 ssl:default [Try again]
> 2020-10-27 11:27:04 CRITICAL (MainThread) [custom_components.hacs] Your GitHub token is not valid
> 2020-10-27 11:27:04 WARNING (MainThread) [homeassistant.config_entries] Config entry for hacs not ready yet. Retrying in 40 seconds
> 2020-10-27 11:27:05 WARNING (SyncWorker_15) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:27:06 WARNING (SyncWorker_19) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f217c08deb0>: Failed to establish a new connection: [Errno -3] Try again')': /networks
> 2020-10-27 11:27:11 ERROR (SyncWorker_19) [blinkpy.auth] Connection error. Endpoint https://rest-e002.immedia-semi.com/networks possibly down or throttled.
> 2020-10-27 11:27:11 WARNING (MainThread) [homeassistant.config_entries] Config entry for blink not ready yet. Retrying in 20 seconds
> 2020-10-27 11:27:13 WARNING (Thread-10) [pychromecast.socket_client] [Smuh (192.168.188.41):42756] Heartbeat timeout, resetting connection
> 2020-10-27 11:27:24 ERROR (MainThread) [homeassistant.components.accuweather] Error fetching accuweather data: Cannot connect to host dataservice.accuweather.com:443 ssl:default [Try again]
> 2020-10-27 11:27:24 WARNING (MainThread) [homeassistant.config_entries] Config entry for accuweather not ready yet. Retrying in 80 seconds
> 2020-10-27 11:27:25 WARNING (SyncWorker_13) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:27:29 ERROR (Thread-11) [pychromecast.socket_client] [Onkyo TX-NR555 DFC50F(192.168.188.41):8009] Failed to connect to service Onkyo-TX-NR555-425ce48236c1629f49e1c866d9eb3466._googlecast._tcp.local., retrying in 5.0s
> 2020-10-27 11:27:36 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2177e3dd00>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:27:37 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
> 2020-10-27 11:27:37 WARNING (MainThread) [homeassistant.config_entries] Config entry for ipp not ready yet. Retrying in 80 seconds
> 2020-10-27 11:27:43 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f21804ef820>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:27:45 WARNING (SyncWorker_5) [homeassistant.components.xiaomi_miio.vacuum] Got exception while fetching the state: Unable to discover the device 192.168.188.26
> 2020-10-27 11:27:50 ERROR (MainThread) [homeassistant.components.hue] Error connecting to the Hue bridge at 192.168.188.21
> 2020-10-27 11:27:50 WARNING (MainThread) [homeassistant.config_entries] Config entry for hue not ready yet. Retrying in 80 seconds
> 2020-10-27 11:27:51 WARNING (Thread-12) [pychromecast.socket_client] [SHIELD(192.168.188.55):8009] Heartbeat timeout, resetting connection
> 2020-10-27 11:27:52 WARNING (SyncWorker_2) [urllib3.connectionpool] Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x7f2181991790>: Failed to establish a new connection: [Errno -3] Try again')': /api/v3/accounts/4782/homescreen
> 2020-10-27 11:27:57 ERROR (SyncWorker_2) [blinkpy.auth] Connection error. Endpoint https://rest-e002.immedia-semi.com/api/v3/accounts/4782/homescreen possibly down or throttled.
> 2020-10-27 11:27:59 WARNING (Thread-10) [pychromecast.socket_client] [Smuh (192.168.188.41):42756] Heartbeat timeout, resetting connection
...

i have hassio in a vm.
That command doesn’t work.
But i guess the dongle is not the problem because it detects other bl devices in the KnownDevices.yaml like:
peugeot:
name: PEUGEOT
mac: BT_00:03:19:16:49:73

seat_bt:
name: SEAT_BT
mac: BT_00:0E:9F:75:6B:04

The FAQ of the custom component gives the an explanation for the issue you have. Unfortunately, that means that that probably will only work with a second Bluetooth dongle. However, note that you probably will have to set the HCI interface to a different number.

Conflicts with other components using the same BT interface

Since our component uses a special operating mode of the HCI interface and works with a continuous data stream, conflicts with other software using the same HCI interface are possible. The conflict is caused by the fact that another component can switch the HCI interface to a different operating mode, thereby stopping the reception of data. Or our component may lead to malfunctioning of another component. A reliable, but not the only way out of this situation (apart from the refusal to use one component in favor of another) can be the use of two BT-interfaces (one for our component, the second, for example, for the tracker). Work is underway to find other solutions to such situations…

Just wanted to thank all involved for the project. Its working great for me.

1 Like

hello I deleted one of my sensor entites, how can I retrieve them back ?

EDIT: trying to install another sensor, not working I don’t know why, this component is driving me crazy :frowning:

Hi, @Soni! The deleted entities reappear immediately after the component receives fresh data from the sensor. If the data comes from the sensor regularly without failures, then the only thing that can cause confusion in this situation is that the name of the sensor could be reset to the default if you manually renamed it in HA. If you used the sensor_names option, then the sensor entity should appear under the set name.

0.7.7 has been release, with a new option for users who use Fahrenheit as unit of measurement for temperature and use a LYWSD03MMC with custom firmware. You can now set your display to Fahrenheit and still get the correct values in Home Assistant, by setting the sensor_fahrenheit option.

I can’t use sensor_names option got

Invalid config for [sensor.mitemp_bt]: expected a dictionary for dictionary value @ data['sensor_names']. Got None extra keys not allowed @ data['B8:27:EB:5D:D8:D3']. Got 'Livingroom'. (See ?, line ?).

And yet now, none of my sensors got detected (both to custom firmware)

The fact that this error occurs indicates a syntax problem. Obviously, something is wrong there, so the component doesn’t work. Do you follow the format described in the documentation?
Show us your current config.

just reinstalled whole thing, no error in config now but still can’t detect my sensors…

Any idea anyone ?

Hi, @gekberlin! Yes, very strange …
Please give more detailed information about the system. What is your Hassio build version?
Timeouts in your log make me think that this may be a problem with the hardware, namely, with the implementation of its support in Linux. I need accurate information about the version of your Linux kernel, and about the wifi/bt chip installed in your tablet.
I think it might be helpful to start by looking at the output of uname -a and sudo dmesg.
In addition, it is worth carefully examining the contents of your pop!os syslog.
I have no experience with Docker, but I suspect that it also keeps some kind of logs, and they are also worth looking into.

Does anyone else in this thread use Linux on Surface pro 4?

Still can’t get this working; if someone got an idea…

Tried every options possible, both LYWSD03MMC with custom firmware, can see the mac adress.

1 Like