Adding zigbee integration stops with error

Hi,
I have a quite new installation of raspberrypi OS on a raspberry 4. I installed home assistant according to https://siytek.com/install-home-assistant-on-raspbian/.
I am using the new sonoff zigbee usb dongle plus.

When trying to add the zigbee integration I get something like (it’s a german installation) “control flow can’t be started.”

Looking into the log I can see that zigbee-zigate could not be installed:

homeassistant.requirements.RequirementsNotFound: Requirements for zha not found: [‘zigpy-zigate==0.7.3’].

Reason seems to be a problem with rpi-gpio:

2021-12-25 18:24:44 ERROR (SyncWorker_3) [homeassistant.util.package] Unable to install package zigpy-zigate==0.7.3: ERROR: Command errored out with exit status 1:
command: /srv/homeassistant/bin/python3 -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-2uge9vid/rpi-gpio/setup.py’“'”‘; file=’“'”‘/tmp/pip-install-2uge9vid/rpi-gpio/setup.py’“'”‘;f=getattr(tokenize, ‘"’“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“'”‘, ‘"’"’\n’“'”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ bdist_wheel -d /tmp/pip-wheel-i4bqexel

What could I try to solve this? I already tried an older homeassistant version (november) which dhdn’t help.
This is my frist try with homeassistant so I don’t have much knowledge.

Thanks,
Eddie

The reason zigpy-zigate cannot be started is because the sonoff zigbee usb dongle plus is not a zigate device. You need to choose zigby.znp

image

I don’t believe that this is the problem. The error occurs when trying to add ZHA integration, before there is an option to add a zigbee device.
It happens while homeassistant is trying to install the python modules for ZHA.
As I understood the Radio Type selection is offered after successful installation.

For the case others have the same problem:

Edit: /home/homeassistant/.local/lib/python3.9/site-packages/zigpy_zigate-0.7.3.dist-info/metadata.json

And change the requirement from:
"requires": ["RPi.GPIO"
to "requires": ["RPi.GPIO==0.7.1a4"

then:
pip3 install RPi.GPIO==0.7.1a4
pip3 install zigpy-zigate==0.7.3

sudo -u homeassistant -H -s
cd /srv/homeassistant
/usr/bin/python3.9 -m venv .
source bin/activate
pip3 install RPi.GPIO==0.7.1a4 then pip3 install zigpy-zigate==0.7.3, checked: “requires”: [“RPi.GPIO==0.7.1a4”

collected from the internet, the last command ended with an error message. Maybe not everything is needed…