Anyway to check errors after restart?

My pi 3+ running HA on an sd card stopped working today. Could not access it internally or externally so pulled the plug, plugged it back in and it’s started up but the log starts from the reboot so is there anyway of finding out why it died in the first place?

I’ve been on holiday for a week and when I came home it wasn’t working (first time I’d tried it in 7 days) but we’ve had no power cuts so not sure what caused it to be down but would like to resolve.

No, not after the fact.

If you had been able to pull the SD card out before restarting and could read the file system on it with another computer you could have seen if there was anything there. but since you restarted already then there’s nothing you can see now.

I would suspect your SD card to starting to die? Happened to me many times so gave up with Pi and went with a NUC. Make sure you’re backing up with Google Drive and then at least a rebuild is dead easy when it does die for good. https://github.com/sabeechen/hassio-google-drive-backup

Thanks I have google drive backup so that’s good. The thing that puts me off moving from pi is that I used to have it in my loft and it never reached all my Aqara sensors around the house. With it being a pi I brought it downstairs and it’s not lost a signal since so moving to nas which I have in the loft may cause other problems.

Will see how regularly it starts happening. Had thought about moving to ssd with pi but need to do more research as that doesn’t seem that straight forward!

If you have SSH / Samba setup, then depending on how badly it has crashed (ie: if it’s just the GUI not loading) then you can access the log file that way.

How about using an extension to bring the Zigbee controller down closer? Or using a remote RPi for the controller, linked to the NAS…? Either way, it’s for another thread so I’ll stop spamming this one