AqaraGateway icon indicating copy to clipboard operation
AqaraGateway copied to clipboard

Fatal Same Issue as #292, M2 POE integration and Entities total dead if it lose connection

Open artoodetoo3301 opened this issue 1 year ago • 8 comments

Hi there is a problem which is extremely fatal.

Background: HA installed in Proxmox x86, with a Ryzen R7 5800, in a full ATX rig.

Cause: The M2 POE hubs losing connection for whatever reason, Router reboot? Wifi disconnect? Ethernet screw up? Result: It will lie into a dead end showing Failed Setup, will retry: None.

There is no way waking the hub up for the integration although all things working perfectly for Homekit and under Aqara App.

There are few sitution I encounter:

  1. If I delete that hub by integration and re-add it, all the entities custom setting are all dead, history gone.

  2. Either reboot HA, or reboot the whole VM of HA, or the whole Proxmox machine, nothing changed, it is still dead.

  3. ### FATAL If I click reconfig, the whole Home Assistant DESTROYED, it will shut itself down, UI being not working, nor even the Zigbee Z2M, everything just DEAD, reboot HA VM still making the whole HA into coma, TOTAL LOSS. I have no choice but restoring the whole Home Assistant by backup image.

  4. I just restore from Backup image, it may work, not 100%.

Please, what is the cause of it, how to prevent it and how to fix it?

It is an extreme headache.

artoodetoo3301 avatar Oct 09 '24 13:10 artoodetoo3301

In some situations, HA lost the configuration of AqaraGateway, like ip and model of M2. The only solution is that remove old one then add again.

niceboygithub avatar Oct 09 '24 15:10 niceboygithub

In some situations, HA lost the configuration of AqaraGateway, like ip and model of M2. The only solution is that remove old one then add again.

Do you know why the cause of "reconfig" would nuke my HA into death?

artoodetoo3301 avatar Oct 09 '24 15:10 artoodetoo3301

#295 same issues, cause whole HA dead

AstroQore avatar Oct 16 '24 16:10 AstroQore

Remove AqaraGateway integration and add again because the configuration was missing.

niceboygithub avatar Oct 16 '24 23:10 niceboygithub

Remove AqaraGateway integration and add again because the configuration was missing.

This indeed solves the problem, but once the bug appears, the entire HA crashes. My current approach is to reinstall HA and, as soon as HA loads for the first time, quickly navigate to the integration page, disable and delete this integration, then re-add it. This is very troublesome.

AstroQore avatar Oct 17 '24 10:10 AstroQore

After clicking reconfig by mistake and crashing twice, I found a way to avoid reinstalling HA. Comment the code in /config/custom_components/aqara_gateway/__init__.py via smb. Restart HA and UI connection is back.

GalenaHu avatar Oct 24 '24 17:10 GalenaHu

Same problem here, AqaraGateway stopped working, but HA still works. Tried reconfig AqaraGateway, that caused HA to crash. Restarting does not bring back HA. :(

jerryhze avatar Oct 28 '24 05:10 jerryhze

After clicking reconfig by mistake and crashing twice, I found a way to avoid reinstalling HA. Comment the code in /config/custom_components/aqara_gateway/init.py via smb. Restart HA and UI connection is back.

Thank you!! I was quite hopeless as HA crashes and no GUI is shown, but commenting out all code under init.py indeed brings back HA after a restart.

jerryhze avatar Oct 28 '24 05:10 jerryhze