In the last few months my Pi with Home Assistant OS is very unstable.
It crashed one time a day, sometimes it crashed after a day or two.
Tried different things, but i’m out of options now, maybe someone had some tips?
Setup:
This is how it’s now running.
Raspberry PI4
Home assistant OS
Using an SSD, don’t use micro sd any more. (brand new SSD)
Original PI power supply (already tried another power cable)
What i tried without succes:
Update fireware of my Conbee II stick
Disconnect Conbee stick and remove ZHA integration
A clean install, just a couple of devices connected, nothing special.
What can it be?
Can the PI just be broken?
Is there a way how to see what caused the crash?
Can’t find anything in the logs.
I hope someone can help me.
My WAF was 85% and it’s now 10%, not a good thing!
I totaly understand her, we can’t count on our assitant any more with all the crashes.
That’s odd. I have about 99% (if not 100%) the same config and it is rock solid.
Do you have the integration ‘Raspberry Pi Power Supply Checker’ running?
That way you at least know if the power is sufficient.
I assume you are running the latest versions of everything (core-2021.12.2, supervisor-2021.12.2, Operating System Home Assistant OS 7.0). Does the crash result in a full crash or “just” not responding HA?
If not responding:
Is the SSD connected to USB3?
If yes, do you use an extension cable for your conbee?
USB3 interferes with the 2.4Ghz signal of WiFi and Zigbee. This could result in odd behaviour.
There are multiple logs, but I am not sure if these are of any help.
One log is at Configuration → System
The other logs are at Configuration → Add-ons, Backup, Supervisor → tab: System
Got file with 1610 rows, multiple errors because of integrations that’s not working.
I’m going to monitor when HA exactly crashed and then search the file.
The result i’m posting.
Just a slight drop can cause a crash and the fun part is that the drop is short, then the Pi will not shutdown, but just get wierd reading from the hardware that did not get enough power, which makes it hang.
If the drop was longer, then it would actually reset the Pi and have it start up normally again.
Is your USB SSD powered through the USB port or through an external power plug.
That still doesn’t tell us enough. When it crashes, can you ping it? If you have the Samba add-on can you still access the samba share? Can you access the Supervisor? ( http://ip-address-of-home-assistant:4357 )
If the answer is no to ALL of the above, then we know that yes we can consider this a full crash (though it is possible that it’s actually only the network that has died, you’d need to plug in a keyboard and monitor to verify if that is the case).
If the answer is yes, everything else is reachable, and it is only home assistant that is not - then home assistant (the core) has crashed and for some reason the Supervisor (or the observer I’m not sure which is responsible) has for some reason not restarted it.
Thanks for posting about the power supply checker. I had never heard of that!
From the beginning, my Pi 3 B+ has reported low voltage, even though I tried multiple different power supplies and cables. It never crashed though. I finally bought a MakerFocus RPi 4 Battery Pack UPS and a RPi 4 power supply for it, and powered my Pi 3 from that (using the same cable as before, BTW.)
The low voltage warnings have disappeared, and hopefully HA will survive a fairly long power outage. At least, long enough for me to go fire up the generator. I’m going to try the power supply checker anyway, just to confirm I’m good now. Thanks again!
Good to see it looks like you sorted it out.
About the USB3. Good that you use an extension cable, I’d strongly advice everyone to do so for the Conbee or any other Zigbee dongle when you use USB3. Creating some distance from the USB3 interference will make the Zigbee signal more reliable and enables you to easily pick a good spot for the antenna as a bonus.
The blue usb port is USB3 right? The other 2 ports are USB2?
If i connect the conbee to the other (not blue) ports, do i still have to use an extension cable?
The blue ones are USB3 and the black ones are USB2
It does not matter which port you use, since the interference comes from the chips, so you will need the extension cable with both setups.