Danielhiversen / PyXiaomiGateway

PyXiaomiGateway
MIT License
153 stars 55 forks source link

HomeAssistant died/stopped everyday at 2:00 o'clock (I guess) #139

Closed cofw2005 closed 5 years ago

cofw2005 commented 5 years ago

Home Assistant release with the issue (if applicable): 0.84.6 Last working Home Assistant release (if known): 0.82.1 PyXiaomiGateway library version (if known): n.a. Operating environment (Hass.io/Docker/Windows/etc.): RaspberryPi3+AIO installer Traceback (if applicable): I have in the last version 0.82.1 worked everything ok. On Dec.11 I updated to 0.83.3, then I realized some failures, e.g. my automations to control Nuki lock doesn't work anymore, Xiaomi doesn't work (this was solved by change event type with "xiaomi_aqara."). The most critical is every morning when I get up, the home assistant has no response. (Unable to connect to Home Assistant)

Then I upgraded again to 0.84.6 on Dec.24, now today the problem showed up again. Description of the bug: Due the the HomeAssistant has no response, I cannot see the log of homeassistant, but I found both yesterday and today the OWZ_log.txt was last saved at 2:00. The thing happened at 2:00 are:

2018-12-25 02:00:10.235 Info, mgr, Manager::WriteConfig completed for driver with home ID of 0x**** 2018-12-25 02:00:11.240 Info, mgr, Driver for controller /dev/tty*0 pending removal 2018-12-25 02:00:11.240 Detail, Notification: DriverRemoved 2018-12-25 02:00:11.240 Always, ***** 2018-12-25 02:00:11.240 Always, Cumulative Network Statistics 2018-12-25 02:00:11.240 Always, General 2018-12-25 02:00:11.240 Always, Driver run time: . . . 0 days, 18 hours, 12 minutes 2018-12-25 02:00:11.240 Always, Frames processed: . . . . . . . . . . . . . . . . . . . . 1128 2018-12-25 02:00:11.240 Always, Total messages successfully received: . . . . . . . . . . 1128 2018-12-25 02:00:11.241 Always, Total Messages successfully sent: . . . . . . . . . . . . 277 2018-12-25 02:00:11.241 Always, ACKs received from controller: . . . . . . . . . . . . . 276 2018-12-25 02:00:11.241 Always, Errors 2018-12-25 02:00:11.241 Always, Unsolicited messages received while waiting for ACK: . . 1 2018-12-25 02:00:11.241 Always, Reads aborted due to timeouts: . . . . . . . . . . . . . 0 2018-12-25 02:00:11.241 Always, Bad checksum errors: . . . . . . . . . . . . . . . . . . 0 2018-12-25 02:00:11.241 Always, CANs received from controller: . . . . . . . . . . . . . 1 2018-12-25 02:00:11.241 Always, NAKs received from controller: . . . . . . . . . . . . . 0 2018-12-25 02:00:11.241 Always, Out of frame data flow errors: . . . . . . . . . . . . . 0 2018-12-25 02:00:11.241 Always, Messages retransmitted: . . . . . . . . . . . . . . . . . 1 2018-12-25 02:00:11.241 Always, Messages dropped and not delivered: . . . . . . . . . . . 2 2018-12-25 02:00:11.241 Always, ***** 2018-12-25 02:00:13.476 Info, mgr, Driver for controller /dev/tty*0 removed 2018-12-25 02:00:14.476 Error, mgr, Manager::GetDriver failed - Home ID 0x**** is unknown 2018-12-25 02:00:14.476 Warning, Exception: Manager.cpp:373 - 100 - Invalid HomeId passed to GetDriver 2018-12-25 02:00:14.476 Info, mgr, GetSendQueueCount() failed - _homeId -931678240 not found

I don't if this is the reason caused Home assistant stopped, this is the latest log I can found. On Dec.24 it was the same log, just the date is 2018-12-24. Thank you!

cofw2005 commented 5 years ago

I realized I might create the issue in a wrong place. sorry for that!