Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
BeardElk opened this issue May 8, 2024 · 31 comments
Open

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

BeardElk opened this issue May 8, 2024 · 31 comments
Labels
board/raspberrypi Raspberry Pi Boards bug

Comments

@BeardElk
Copy link

BeardElk commented May 8, 2024

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

@BeardElk BeardElk added the bug label May 8, 2024
@agners
Copy link
Member

agners commented May 8, 2024

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 😢

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

This comment was marked as off-topic.

@BeardElk
Copy link
Author

BeardElk commented May 9, 2024

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
Copy link

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
Copy link

Keribi commented May 9, 2024

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

@BeardElk
Copy link
Author

BeardElk commented May 9, 2024

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
Copy link

joaohess commented May 11, 2024

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
Copy link

Keribi commented May 11, 2024

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
Copy link

gnmancini commented May 11, 2024

@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
Copy link
Author

@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

This comment was marked as off-topic.

@sairon sairon added the board/raspberrypi Raspberry Pi Boards label May 13, 2024
@sairon
Copy link
Member

sairon commented May 13, 2024

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
Copy link

Keribi commented May 13, 2024

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
Copy link

walterbressers commented May 13, 2024

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
Copy link

tlokaj commented May 13, 2024

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

@BeardElk
Copy link
Author

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
Copy link

tlokaj commented May 14, 2024

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
Copy link
Author

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
Copy link

tlokaj commented May 17, 2024

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
Copy link
Author

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
Copy link

tlokaj commented May 17, 2024

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
Copy link
Author

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
Copy link

Keribi commented May 18, 2024

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
Copy link
Member

sairon commented May 20, 2024

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
Copy link

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
Copy link

capmlbpkel commented May 21, 2024

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
Copy link

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
Copy link

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

@sairon
Copy link
Member

sairon commented May 23, 2024

@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
Copy link

@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
Copy link

I made the same mistake, see #3390 for the separate issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/raspberrypi Raspberry Pi Boards bug
Projects
None yet
Development

No branches or pull requests