mduran80 / daikin_madoka

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

Losing Connection and Not recovering #32

Open erenoglu opened 1 year ago

erenoglu commented 1 year ago

Hi, thanks a lot for this great integration. Although it works, I face the following problem after some time:

homeassistant  | 2023-03-17 15:39:52.067 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] br-connection-canceled
homeassistant  | 2023-03-17 15:39:54.074 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] Operation already in progress
homeassistant  | 2023-03-17 15:39:54.076 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] br-connection-canceled
homeassistant  | 2023-03-17 15:39:56.084 ERROR (MainThread) [pymadoka.connection] [org.bluez.Error.Failed] Operation already in progress

my logs are flooded with these messages. If I restart home-assistant, then they go away and integration works again. Till the next time it starts doing the same.

Is this a bug or some other issue?

Saikonbixop commented 1 year ago

Same problem here. Integration is great, but, in my case, it looses connection at least once a day.

makinapower commented 1 year ago

Hello, Same behavior on raspberry pi 4.

djrusskof commented 10 months ago

Hi, i was using an Orange Pi 4 without this problem, but with my Raspberry Pi 4 I have same issue. @makinapower did you find a workaround ? Thank you for that great integration by the way =)

makinapower commented 9 months ago

Update: Hi @djrusskof, sorry for the late reply, i my case the problem was gone the last raspberry pi firmware update.

afonsojramos commented 2 weeks ago

@makinapower I installed Home Assistant Operating System so I'm not sure I have access to the rpi firmware updates 😕

If I restart the system it is always able to reconnect, but eventually loses connection. @mduran80 do you think there's any settings I can tune to prevent this disconnection?

I get 4 diff types of errors:

Logger: pymadoka.connection
Source: runner.py:190
First occurred: 11:15:47 AM (37786 occurrences)
Last logged: 4:37:12 PM

[org.bluez.Error.Failed] Operation already in progress
[org.bluez.Error.Failed] br-connection-canceled
Service Discovery has not been performed yet
This error originated from a custom integration.

Logger: pymadoka.connection
Source: custom_components/daikin_madoka/__init__.py:72
integration: Daikin Madoka
First occurred: 11:14:48 AM (2 occurrences)
Last logged: 11:14:58 AM
Logger: homeassistant.components.climate
Source: helpers/entity_platform.py:1033
integration: Climate (documentation, issues)
First occurred: 11:21:16 AM (316 occurrences)
Last logged: 4:36:16 PM

Updating daikin_madoka climate took longer than the scheduled update interval 0:01:00
Logger: pymadoka.connection
Source: runner.py:190
First occurred: 11:15:47 AM (37786 occurrences)
Last logged: 4:37:12 PM

[org.bluez.Error.Failed] Operation already in progress
[org.bluez.Error.Failed] br-connection-canceled
Service Discovery has not been performed yet

System: Raspberry 5

afonsojramos commented 1 week ago

I've had the issue above since I set everything up a couple of months ago. But as soon as I post the issue above, a raspberry pi 5 firmware update gets released and now everything is working perfectly! Thanks, I suppose 🚀