mduran80 / daikin_madoka

Home Assistant custom component integration for the BRC1H thermostat (madoka)
MIT License
42 stars 10 forks source link

Device paired but integration not connecting #19

Open Leobaillard opened 1 year ago

Leobaillard commented 1 year ago

Hi!

I'm running Home Assistant OS in an ESXi virtual machine and I have a bluetooth USB dongle attached to it. I followed the instructions and managed to pair the thermostat successfully.

However, when trying to add the integration with the MAC address and the default parameters, it always fails saying that the device cannot be found. I tried unchecking the option to try and discover the device when adding, which makes it so that the integration is added, but then it never connects to the device.

The HA logs show this error:

Could not connect to device 94:0D:2D:47:4D:60: Could not find bluetooth device for the address 94:0D:2D:47:4D:60. Please follow the instructions on device pairing.

The thermostat card just says "unavailable".

When running bluetoothctl in the terminal, I can see that the device is paired. I can even manually connect to it via the terminal. image

Am I doing something wrong? For the integration, I git cloned the repo in the custom_components folder.

mduran80 commented 1 year ago

Hi!

It seems the bluetooth device cannot be found. Could you try again using lowercase for the mac address? I think I already handled this, but just in case.. What version of HA are you using? There could also be related to some incompatibility with bleak - the bluetooth library.

On Thu, 15 Sept 2022 at 09:09, Léopold Baillard @.***> wrote:

Hi!

I'm running Home Assistant OS in an ESXi virtual machine and I have a bluetooth USB dongle attached to it. I followed the instructions and managed to pair the thermostat successfully.

However, when trying to add the integration with the MAC address and the default parameters, it always fails saying that the device cannot be found. I tried unchecking the option to try and discover the device when adding, which makes it so that the integration is added, but then it never connects to the device.

The HA logs show this error:

Could not connect to device 94:0D:2D:47:4D:60: Could not find bluetooth device for the address 94:0D:2D:47:4D:60. Please follow the instructions on device pairing.

The thermostat card just says "unavailable".

Am I doing something wrong? For the integration, I git cloned the repo in the custom_components folder.

— Reply to this email directly, view it on GitHub https://github.com/mduran80/daikin_madoka/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK3CT35BRBNMAZCSISRF63V6LDTLANCNFSM6AAAAAAQNCVOLQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Leobaillard commented 1 year ago

Thanks for your quick answer!

Here are my HA versions:

Home Assistant 2022.9.4 Supervisor 2022.08.6 Operating System 8.5

I just tried removing the integration and adding it back with the MAC in lowercase, but I get the same error.

raypanggh commented 1 year ago

Thanks for your quick answer!

Here are my HA versions:

Home Assistant 2022.9.4 Supervisor 2022.08.6 Operating System 8.5

I just tried removing the integration and adding it back with the MAC in lowercase, but I get the same error.

Broken after HA Core 8.5. Looks like a duplicate of #18

mduran80 commented 1 year ago

I just updated my HA and the integration is working as expected. However, take into account that HA updates may require to repeat all the bluetoothctl process so the info in the D-BUS is updated.

Please connect via shell and remove the device:

  1. Run bluetoothctl
  2. Type remove
  3. If the integration is running in HA, the bluetootctl client should immediately show the connection confirmation request with the pair code, just accept it and rush to the thermostat to accept it too.
  4. The integration should work and show as available
raypanggh commented 1 year ago

I just updated my HA and the integration is working as expected. However, take into account that HA updates may require to repeat all the bluetoothctl process so the info in the D-BUS is updated.

Please connect via shell and remove the device:

  1. Run bluetoothctl
  2. Type remove
  3. If the integration is running in HA, the bluetootctl client should immediately show the connection confirmation request with the pair code, just accept it and rush to the thermostat to accept it too.
  4. The integration should work and show as available

This worked after I unpaired one of my Madoka thermostats and re-paired it, and rebooted HA. Thanks

mduran80 commented 1 year ago

Possibly related to the HA version, I will have a look at it.

El El jue, 15 sept 2022 a las 9:37, Léopold Baillard < @.***> escribió:

Thanks for your quick answer!

Here are my HA versions:

Home Assistant 2022.9.4 Supervisor 2022.08.6 Operating System 8.5

I just tried removing the integration and adding it back with the MAC in lowercase, but I get the same error.

— Reply to this email directly, view it on GitHub https://github.com/mduran80/daikin_madoka/issues/19#issuecomment-1247700603, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFK3CT7TXIY47CBBSCY7C23V6LG2FANCNFSM6AAAAAAQNCVOLQ . You are receiving this because you commented.Message ID: @.***>