Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.94.3 has caused bluetooth connectivity issues on docker #24605

Closed
bachoo786 opened this issue Jun 18, 2019 · 9 comments
Labels

Comments

@bachoo786
Copy link

@bachoo786 bachoo786 commented Jun 18, 2019

Home Assistant release with the issue:
0.94.3

Last working Home Assistant release (if known):
0.93

Operating environment (Hass.io/Docker/Windows/etc.):
Docker

Component/platform:

  • Docker bluetooth
  • Xiaomi bt temp and humidity sensor
  • Switchbot

Description of problem:
Bluetooth on docker has stopped connecting to switchbot and xiaomi bt temp and humidity sensor. The problem started with 0.94.3 upgrade. I have been running docker with network mode as host and that has not changed from my end.

I have restarted my NUC to see if it would be resolved but no joy. Furthermore bluetoothctl is working fine on my NUC.

Additional Information

2019-06-18 20:08:23 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
2019-06-18 20:08:54 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
2019-06-18 20:08:58 WARNING (SyncWorker_6) [homeassistant.components.mitemp_bt.sensor] Polling error 
2019-06-18 20:08:58 WARNING (SyncWorker_1) [homeassistant.components.mitemp_bt.sensor] Polling error Could not read data from Mi Temp sensor 58:2D:34:32:E1:6F
2019-06-18 20:08:59 WARNING (SyncWorker_4) [switchbot] Cannot connect to switchbot. Retrying
2019-06-18 20:09:08 WARNING (MainThread) [homeassistant.helpers.entity] Update of sensor.living_room_temp_battery is taking over 10 seconds
2019-06-18 20:09:25 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
2019-06-18 20:09:56 WARNING (MainThread) [homeassistant.components.sensor] Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
@hmmbob

This comment has been minimized.

Copy link
Contributor

@hmmbob hmmbob commented Jun 21, 2019

What is the docker config (either the command you use, or your docker-compose)?

@bachoo786

This comment has been minimized.

Copy link
Author

@bachoo786 bachoo786 commented Jun 21, 2019

here is my docker config I use docker-compose:

  homeassistant:
    container_name: home-assistant
    restart: unless-stopped
    image: homeassistant/home-assistant
    volumes:
      - /srv/docker/homeassistant:/config
      - /etc/localtime:/etc/localtime:ro
      - /home/bachoo786/.ssh:/root/.ssh
    network_mode: host
    privileged: true

Like I mentioned earlier bluetooth was working fine for me until the recent HA update of 0.94.3

@christopherl06

This comment has been minimized.

Copy link

@christopherl06 christopherl06 commented Jun 24, 2019

Encountering a similar issue with the message below showing up hundreds of time.

Updating mitemp_bt sensor took longer than the scheduled update interval 0:00:30
Temperature are still reported nevertheless. Problem was not apaprent before upgrade.

Install is Hassio, config is :
- platform: mitemp_bt mac: 'AA:BB:CC:DD:EE:FF' name: 'Thermometre Chambre' force_update: true cache_value: 60 median: 3

@bachoo786

This comment has been minimized.

Copy link
Author

@bachoo786 bachoo786 commented Jun 27, 2019

Just and update: 0.95 is out but bluetooth problems still continue.

Its like bluetooth has stopped working completely with HA in docker.

@e-minguez

This comment has been minimized.

Copy link

@e-minguez e-minguez commented Jun 29, 2019

As a workaround, see https://github.com/algirdasc/xiaomi-ble-mqtt/

If you want to run it as a docker container, I've created this PR algirdasc/xiaomi-ble-mqtt#4

HTH

@scottyphillips

This comment has been minimized.

Copy link

@scottyphillips scottyphillips commented Jul 23, 2019

0.96 is out still issues with Bluetooth. Issues not restricted to Raspberry Pi's either as I am running HA on AMD64 Thanks @e-minguez for workaround.

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Oct 21, 2019

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates.
Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍
This issue now has been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 21, 2019
@stale stale bot closed this Oct 28, 2019
@a1ex4

This comment has been minimized.

Copy link

@a1ex4 a1ex4 commented Nov 4, 2019

This issue is still relevant on 0.101, running HA with Docker on my raspberry pi 3 the data is correctly polled for ~2 hours after a HA restart, then it's gone forever.

I believe the problem is with the component's code as all is working fine after a container restart.

@thiagogalvao

This comment has been minimized.

Copy link

@thiagogalvao thiagogalvao commented Nov 27, 2019

I have the same problem in the version 0.102 on docker.
When I restart docker It's back again for a few hours.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants
You can’t perform that action at this time.