-
-
Notifications
You must be signed in to change notification settings - Fork 29.4k
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
ZHA integration fails to start with PiZigate on RPI3 #75967
Comments
zha documentation |
Hey there @dmulcahey, @Adminiuga, @puddly, mind taking a look at this issue as it has been labeled with an integration ( |
Pizigate is only hardware depending GPIO and it is only applicable on RPi. zigpy-zigate has a platform specific dependency on GPIO, but when HA installs zigpy-zigate, that dependency is not installed. @pvizeli any recommendations? |
#75755 (comment) mentioned that adding |
|
It should, it's just running core/homeassistant/util/package.py Lines 60 to 103 in c795597
|
Things like this don't work in a VM/Container. Also, we generate the image on x86 hardware. I said that before on discord, but this setup.py will not work with the build system. There is no solution. The only way that would work is to use the GPIO from the standardized Linux kernel, not the downstream implementation. |
Perhaps we can migrate zigpy-zigate to https://github.com/gpiozero/gpiozero? It has no external dependencies and can be installed on non-pi platforms. |
@t0mg @jankovac503 try out the latest HA Core release, 2022.8.2. |
@puddly thanks for the heads up. Just updated to 2022.8.3 and no luck: Logger: homeassistant.config_entries
|
@t0mg have you tried the new Home Assistant Core release 2022.8.7 which contains updated zigpy-zigate library?
https://github.com/zigpy/zigpy-zigate/releases/tag/0.9.2
|
@Hedda .7 hasn’t been released yet |
Confirmed working in duplicate issue #75755 |
Confirmed here on .7 as well! Thanks 🙏 |
The problem
Integration fails to start with error "Error setting up entry ttyAMA0, s/n: n/a for zha". I've been using PiZiGate successfully (bt disabled, uart enabled etc) for at least a couple of years without any trouble. I'm not sure when exactly it started failing (although looking at the logs I suspect this is due to python3).
What version of Home Assistant Core has the issue?
2022.7.7
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
zha
Link to integration documentation on our website
https://www.home-assistant.io/integrations/zha
Diagnostics information
See below for the (probably related) message
[zigpy_zigate.common] No module named 'RPi'
Example YAML snippet
N/A
Anything in the logs that might be useful for us?
Additional information
No response
The text was updated successfully, but these errors were encountered: