Sometime raspberry with HA get unavailable

Sometimes raspberry doesn’t response.
My raspberry has raspbian buster with HA.
I can’t access from duckdns url, i can’t access from local ip, i can’t login with explorer (samba configured). If I try to connect a hdmi cable to see if get some errors, no signal to TV (probably hdmi out get off after some time of standy?) .
My only solution is to poweroff then on the device…

Is there a way to:

  1. Disable hdmi screen off to eventually check errors directly from raspberry
  2. Find cause to this problem… Check log? Url of log?

Anyone with same problem?

If you connect a keyboard and push any key, the display should work.

The other thing to check is that the power LED is solid red, not blinking.

Yes it is solid red

Is it on wifi, buster looses wifi connection and will not reconnect

Any fix to this? Like a cron that check if wifi lost and reboot his self?

Can you not use wired networking?

Otherwise, you could write a script to ping the gateway and reboot if it fails, something like:

#!/bin/bash
ping -c 5 192.168.0.1
if [ ${?} -ne 0 ]; then
    reboot
fi

Put that script somewhere, make it executable (chmod +x myscript.sh) and call it from cron.

Oh, and change the IP to the IP of your router :wink:

1 Like

No only wifi.
Ok i’ll try it and check in a week if the system still online.
Thank you.
BTW: wifi problem is a know bug of raspbian buster?

Yes this is a known issue with Raspberry pi 3b+ wifi firmware, it has a bug causing the firmware to halt.
Restarting wifi does not work for me, I need to reboot the pi completely. I have two pi3b’s, one running hass.io and the other volumio. Both have the same issue. I now use ethernet for hass.io and have a cronjob restart the volumio pi when it looses wifi connection.

Below the error from the kernel logs. If you google the first line of the error below you will find more information.

[  333.698447] brcmfmac: brcmf_sdio_hostmail: mailbox indicates firmware halted
[  374.233673] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110
[  374.233681] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-110)

I have a number of raspberry pi zeros that would stop working and required rebooting. The fix was to turn off WIFI power management.

At command line type: iwconfig
If Power Management is on then you should try turning it off.

Doing it on the pi zero (my case) was a bit different than on RPi3’s apparently so search the webs for your model. I had to enter several commands in the /etc/network/interfaces file and then reboot.

For reference here’s what my file looks like for a pi0. This may work for you as is but as I recall the RPi3 had slight differences.

# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
allow-hotplug wlan0
iface wlan0 inet manual
wireless-power off
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf