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

Error while setting up rpi_gpio platform for binary_sensor #3353

Closed
Officer-on-duty opened this issue May 8, 2024 · 2 comments
Closed

Error while setting up rpi_gpio platform for binary_sensor #3353

Officer-on-duty opened this issue May 8, 2024 · 2 comments
Labels

Comments

@Officer-on-duty
Copy link

Describe the issue you are experiencing

Since 12.3
Logger: homeassistant.components.binary_sensor
Quelle: helpers/entity_platform.py:356
Integration: Binärsensor (Dokumentation, Probleme)
Error while setting up rpi_gpio platform for binary_sensor
[...]
RuntimeError: Failed to add edge detection

GPIO Switches works fine!

What operating system image do you use?

rpi4-64 (Raspberry Pi 4/400 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. update the OS form 12.2 to 12.3
  2. be sad

...

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

Derzeit sind keine Reparaturen verfügbar

Additional information

Backup without success since the OS is not restored.

@sairon
Copy link
Member

sairon commented May 9, 2024

It's not clear what rpi_gpio integration you are using, because it's not a Core-bundled one, but I assume it's the thecode/ha-rpi_gpio which already has an issue reported. Ultimately, it's a problem with RPi.GPIO which uses deprecated interface to configure the GPIOs, see here.

Long story short, this needs to be fixed in third-party libraries, only possible workaround on the OS side is to revert to 12.2, either by ha os boot-slot other or ha os upgrade --version 12.2.

@Officer-on-duty
Copy link
Author

It's not clear what rpi_gpio integration you are using, because it's not a Core-bundled one, but I assume it's the thecode/ha-rpi_gpio which already has an issue reported. Ultimately, it's a problem with RPi.GPIO which uses deprecated interface to configure the GPIOs, see here.

Long story short, this needs to be fixed in third-party libraries, only possible workaround on the OS side is to revert to 12.2, either by ha os boot-slot other or ha os upgrade --version 12.2.

Very precise and helpful answer. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants