home-assistant / operating-system

:beginner: Home Assistant Operating System
Apache License 2.0
4.54k stars 937 forks source link

Home Assistant OS 12.3 breaks ZHA on raspberry pi 5 #3352

Open BeardElk opened 1 month ago

BeardElk commented 1 month ago

Describe the issue you are experiencing

After upgrade to 12.3 my Home Assistant SkyConnect/ZHA is no longer working. I've tried every possible reboot and restore from backup combination possible, along with changing usb ports, etc, and nothing works,

What operating system image do you use?

rpi5-64 (Raspberry Pi 5 64-bit OS)

What version of Home Assistant Operating System is installed?

12.3

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

  1. Have Home Assistant SkyConnect installed on a Raspberry Pi 5 running Home Assistant OS 12.2
  2. Upgrade Home Assistant OS to 12.3 ...

Anything in the Supervisor logs that might be useful for us?

No.

Anything in the Host logs that might be useful for us?

No.

System information

Version core-2024.5.2
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.12.2
Operating System Family Linux
Operating System Version 6.1.73-haos-raspi
CPU Architecture aarch64
Timezone Europe/Stockholm
Configuration Directory /config
Version core-2024.5.2
Installation Type Home Assistant OS
Development false
Supervisor true
Docker true
User root
Virtual Environment false
Python Version 3.12.2
Operating System Family Linux
Operating System Version 6.1.73-haos-raspi
CPU Architecture aarch64
Timezone Europe/Stockholm
Configuration Directory /config

Additional information

Nothing

agners commented 1 month ago

There is an updated kernel with the latest release, but it is the same kernel as Raspberry Pi OS is using. But quite possible that in your case this indeed caues issues :cry:

Do yo use Hubs or similar inbetween? Did you try different ports?

You can safely boot into the previous HAOS installation with:

ha os boot-slot other
revenpl commented 1 month ago

I had the same problem on Raspberry Pi 3. Disabling Zigbee Home Automation integration and going back to previous version using command mentioned above fixed the issue. Now after reenabling ZHA everything seems to be working fine. I'm skipping 12.3 for now.

EDIT: And to be precise -> Disabling ZHA resolved issue with 12.3. Home Assistant was fully functional after this, so problem is with ZHA after 12.3 update. And enabling ZHA caused HA to get into boot loop.

BeardElk commented 1 month ago

I was able to go back to 12.2 and everything is working fine now, so I as well am skipping 12.3 for now. I usually have a short extension cable between the pi and sky connect stick, but i tried removing it and tried all the ports without any success.

gnmancini commented 1 month ago

I had the same problem with Rasberry Pi3. To solve the issue I did a full backup and reinstallation going back to 12.2. @agners handy command, I will use next time.

Keribi commented 1 month ago

Zigbee broken immediately after updating to 12.3. Pi 4, Sonoff Dongle, ZHA devices erratic and very unstable.

BeardElk commented 1 month ago

I don't know why, but a full system reboot breaks it for me every time now, even on 12.2. Only way I can get it to work again is using a backup from yesterday morning (I do daily backups to my nas). So its working now, but I don't get one fault or anything in the logs when its not working, just says "zha failed to set up", annoying af.

joaohess commented 1 month ago

Same problem here, but with Z2M. Managed to fix it by booting with the coordinator (here, a Sonoff Dongle-E EFR32MG21) unplugged and plugging it in after boot.

A reboot with the dongle plugged in breaks the OS.

Using a RaspberryPi 3 Model B.

Keribi commented 1 month ago

Zigbee useless after 12.3 update. Downgraded to 12.2 and issue still exists.. Devices intermittently responsive, brightness levels are wrong etc... this needs remedied soon! Raspi 4, sonoff dongle, ZHA

gnmancini commented 1 month ago

@Keribi Have you tried to reboot HA with OS 12.2 without the ZHA dongle and plug it in after the reboot is completed?

BeardElk commented 1 month ago

@Keribi Have you tried to reboot HA with OS 12.2 without the ZHA dongle and plug it in after the reboot is completed?

I tried it and it makes no difference for me. Mine randomly stopped working the night to today, so I had to restore from the last working backup which was may 8.

edwin-completesolutions commented 1 month ago

Same problem here with ConbeeII Zigbee dongle. Remove the usb zigbee dongle and it boots. See https://www.home-assistant.io/common-tasks/os/ to switch back to OS 12.2

sairon commented 1 month ago

The original report only claims issues with the integration, not boot loop and system stability issues. Please keep this issue only for issues manifesting only as ZHA integration problems.

If you're seeing bootloops, refer to #3362. Please see this message and report details about your setup there.

Keribi commented 1 month ago

System seems stable on 12.2. My system was working reliably until the 12.3 update which immediately broke Zigbee. Whether it is a ZHA integration issue or a USB stack issue, the update caused this problem.

walterbressers commented 1 month ago

My Proxmox HAOS 12.2 ZHA with Conbee II setup was broken after the 12.3 upgrade, but going back to 12.2 (with the command from above) didn't fix the issue. On a separate VM on my Synology ZHA with Conbee II is working. I don't get it. I tried al sorts of setups, even new HA VM's in Proxmox but can't get it to work. Strange thing is that Deconz within HAOS 12.3 does work but not the ZHA integration.

tlokaj commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

BeardElk commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

tlokaj commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

That one helped me, thank you!!!

BeardElk commented 1 month ago

So I've gotten everything to work with 12.3 now, for some reason was the Silicon Labs Multiprotocol Add-on not turned on for me, even tho I had set it to autostart on boot and with watchdog, so as soon as I turned that add-on on, everything just worked. Got no idea why autostart was off, but yeah, turning Silicon Labs Multiprotocol on fixed it for me. Now running Home Assistant OS 12.3 with core-2024.5.3 without issues. I've had it running for a couple of days just to make sure it was fixed.

tlokaj commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

That one helped me, thank you!!!

Just until next restart... now it is broken again :(

BeardElk commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

That one helped me, thank you!!!

Just until next restart... now it is broken again :(

Have you checked that Silicon Labs Multiprotocol Add-on is turned on?

tlokaj commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

That one helped me, thank you!!!

Just until next restart... now it is broken again :(

Have you checked that Silicon Labs Multiprotocol Add-on is turned on?

I don't have that addon installed. I've never had.

BeardElk commented 1 month ago

I have the same issue on RPI4, I've tried everything mentioned above but nothing helped. ZHA integration cannot start. Screenshot_20240513-210238

I ssh into my RPI5 and used ha os upgrade --version 12.2 to downgrade home assistant os to 12.2, then I used a working backup from when I was on 12.2, and that got it working for me! I've since upgraded the core to 2024.5.3 without issue.

That one helped me, thank you!!!

Just until next restart... now it is broken again :(

Have you checked that Silicon Labs Multiprotocol Add-on is turned on?

I don't have that addon installed. I've never had.

what zigbee stick do you use?

Keribi commented 1 month ago

Zigbee useless after 12.3 update. Downgraded to 12.2 and issue still exists.. Devices intermittently responsive, brightness levels are wrong etc... this needs remedied soon! Raspi 4, sonoff dongle, ZHA

System is stable on 2024.05.4 and 12.2. Zigbee working fine for now.

sairon commented 1 month ago

Anyone here with the issue, can you check if adding dtoverlay=dwc2 to the end of config.txt in the boot partition helps to resolve the issues? Since the other RPi issue is apparently caused by the default RPi-specific dwc_otg driver, I wonder if using the upstream driver helps here too.

NodeJSmith commented 1 month ago

I had a similar issue but with Z2M instead of ZHA. Happy to open a separate issue if that'd be better, but wanted to add that here in case its helpful. Rolling back to 12.2 with ha os boot-slot other and a few reboots got it working again.

capmlbpkel commented 1 month ago

Anyone here with the issue, can you check if adding dtoverlay=dwc2 to the end of config.txt in the boot partition helps to resolve the issues?

How to do that? I read somewhere that the boot partition is usually /dev/vda1, but I cannot mount it:

/ # whoami
root
/ # mount /dev/vda1 /mnt/
mount: permission denied (are you root?)
walterbressers commented 1 month ago

Anyone here with the issue, can you check if adding dtoverlay=dwc2 to the end of config.txt in the boot partition helps to resolve the issues? Since the other RPi issue is apparently caused by the default RPi-specific dwc_otg driver, I wonder if using the upstream driver helps here too.

This did not fix the problem for me. I even rolled back to 12.2

Screenshot 2024-05-21 at 16 13 26
capmlbpkel commented 1 month ago

Is there anything we can do to support debugging / fixing?

sairon commented 1 month ago

@walterbressers That's totally wrong - this thread is about Raspberry Pi issues, you're running in a VM and the change you did won't (and can't) work. AFAIK you're the only one reporting such issues on x86/VM, please create another report with full logs and issue description.

@capmlbpkel Unfortunately we still don't know if the problem is related to the other one. If you want to edit the file on the device, you need to use a root shell - the easiest way is to plug in a display and keyboard to your RPi and type login in the HA console. You can also edit the file on another PC - on Raspberry Pi 5 the boot partition should be visible if you take the SD card out and put it into a card reader (older RPi models have the partition hidden, so it may be more complicated to mount it).

NodeJSmith commented 1 month ago

@sairon FWIW my issue with Z2M is on a proxmox vm on an Intel cpu, forgot to mention that in my previous comment. I can create a separate issue later if @walterbressers doesn't beat me to it

capmlbpkel commented 1 month ago

I made the same mistake, see https://github.com/home-assistant/operating-system/issues/3390 for the separate issue.

jbouwh commented 2 weeks ago

Anyone here with the issue, can you check if adding dtoverlay=dwc2 to the end of config.txt in the boot partition helps to resolve the issues? Since the other RPi issue is apparently caused by the default RPi-specific dwc_otg driver, I wonder if using the upstream driver helps here too.

I'm running zha with a sky connect on is 12.3 on a rpi5, an had some instability with zha. Not using the multi protocol firmware. So I have set the dwc2 option now to see if that helps to stabilise.