niceboygithub / AqaraGateway

Aqara Gateway/Hub integration for Home Assistant
523 stars 66 forks source link

Timeout problem from 0.2.2+ #256

Open shummo opened 7 months ago

shummo commented 7 months ago

Hi.

I have an Aqara M1s with a door sensor conneted to it, and the gateway have no internet after 8PM and before 8AM (so on the evenings). So before 2.2 the devices was unavaiable in this time. On mornings at 8:02 my automation reload the gateway, and the devices became avaiable again. I use this intergration since more than a year like this.

Unfortunatelly the version 2.0 and 2.1 not working any more. Devices unavaiable during the day too, not just at the evenings.

So i upgraded to 0.2.4. Now it is also avaiable during the day. But after 8PM, so when the M2s have no internet or UNPLUGGED my home assistant became instabil :

I don't know why, but if i Use 2.0 or 2.1, system is fast as before during the evenings too. With updated versions my system is unusuable during nights.

FROM LOG i can only see, that there is a 2 minutes gap in log with the updated versions. V0.2.2+ 2024-04-24 20:51:33.508 ERROR (MainThread) ...............last log before aqara....................... 2024-04-24 20:53:47.462 ERROR (MainThread) [custom_components.aqara_gateway.core.gateway] Failed to connect to MQTT server 192.168.101.216 due to exception: timed out

V0.2-0.2.1 2024-04-24 20:57:58.043 WARNING (MainThread) ....................last log before aqara...................... 2024-04-24 20:57:58.554 ERROR (MainThread) [custom_components.aqara_gateway.core.gateway] Failed to connect to MQTT server 192.168.101.216 due to exception: timed out

Boot time looks like his: V2.2+ aqra

V2.1-

aqra2 0

Core 2024.4.4 Supervisor 2024.04.0 Operating System 12.2 Frontend 20240404.2

SO THE PROBLEM: 0.2.4 works good, when the M1s Gateway is reachable/has internet access. BUT IF it has no internet access or I unplugged it, my whole system is usless.

Thanks for help!

niceboygithub commented 5 months ago

Please try the latest version 0.2.5