hass-ember-mug-component: Ember mug wont reconnect after resting HA from backup

  • Home Assistant Version: 2023.11.2
  • Operating System: 11.1
  • Ember Mug Component Version: 0.8.0
  • Intel NUC built in bluetooth

Description

After restoring from backup ember mug does not connect to home assistant

What I Did

I reset the mug, I uninstalled and re-installed both hacs integration and ha  integration and attempted repair. I also ran bluetoothctl and put the mug into pairing mode but still it wont connect

Logs / Errors

2023-11-17 20:52:43.351 DEBUG (MainThread) [ember_mug.mug] Set new device from DB:7C:3C:36:0C:88: Ember Ceramic Mug to DB:7C:3C:36:0C:88: Ember Ceramic Mug 2023-11-17 20:52:43.351 DEBUG (MainThread) [ember_mug.mug] Callback <bound method MugDataUpdateCoordinator._async_handle_callback of <custom_components.ember_mug.coordinator.MugDataUpdateCoordinator object at 0x7f040cea6010>> already registered 2023-11-17 20:52:43.351 DEBUG (MainThread) [custom_components.ember_mug.coordinator] Updating 2023-11-17 20:52:43.351 DEBUG (MainThread) [ember_mug.mug] Updating the following attributes: {‘meta’, ‘firmware’} 2023-11-17 20:52:43.351 DEBUG (MainThread) [ember_mug.mug] Establishing a new connection from mug (ID: 139655508168464) to DB:7C:3C:36:0C:88: Ember Ceramic Mug 2023-11-17 20:52:44.375 DEBUG (MainThread) [ember_mug.mug] DB:7C:3C:36:0C:88: Ember Ceramic Mug: Failed to connect to the mug: (DB:7C:3C:36:0C:88) - DB:7C:3C:36:0C:88: Failed to connect after 8 attempt(s): [org.bluez.Error.Failed] Operation already in progress 2023-11-17 20:52:44.375 DEBUG (MainThread) [custom_components.ember_mug] Finished fetching ember-mug-db7c3c360c88 data in 12.542 seconds (success: False) 2023-11-17 20:52:44.375 DEBUG (MainThread) [ember_mug.mug] Unregistered callback: <function async_setup_entry.<locals>.<lambda> at 0x7f04093ec2c0>

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

I dug through the changelogs of all the bluetooth related commits and I can’t find anything in 2023.11 that would account for this issue.

I did however manage to get the mug working again by going into bluetoothctl, removing the Mug and factory resetting it. After that it the integration re-connected it and it has been working stably since then. Does that work for anyone else?

The alternative is of course using a Proxy as they seem to have no problem at all.

Well I just decided to give it another shot today and it seems to have worked when previously it had not. We’ve been through a couple of HA updates though so maybe something got fixed somewhere.

Have two mugs, Ember 1 and 2 versions. None of them managed to connect first try. Digging in the logs, I found the same issue as OP. I managed to fix my issue by, as sopelj suggested, to remove the mugs using bluetoothctl and retrying the integration.