RPI GPIO - Raspberry Pi 3 B+ - HassOS 1.5

On a new install I’m getting the following error:

2018-07-12 15:30:43 INFO (MainThread) [homeassistant.setup] Setting up rpi_gpio
2018-07-12 15:30:43 ERROR (MainThread) [homeassistant.setup] Error during setup of component rpi_gpio
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/setup.py", line 146, in _async_setup_component
    component.setup, hass, processed_config)  # type: ignore
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/rpi_gpio.py", line 22, in setup
    import RPi.GPIO as GPIO
RuntimeError: This module can only be run on a Raspberry Pi!
2018-07-12 15:30:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=persistent_notification, service=create, service_data=title=Invalid config, message=The following components and platforms could not be set up:

 - [rpi-gpio](https://home-assistant.io/components/rpi_gpio/)

Please check your config., notification_id=invalid_config, service_call_id=547635050816-4>
2018-07-12 15:30:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=persistent_notification.invalid_config, old_state=None, new_state=<state persistent_notification.invalid_config=notifying; title=Invalid config, message=The following components and platforms could not be set up:

 - [rpi-gpio](https://home-assistant.io/components/rpi_gpio/)

Please check your config. @ 2018-07-12T15:30:43.643597-05:00>>
2018-07-12 15:30:43 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_executed[L]: service_call_id=547635050816-4>
2018-07-12 15:30:43 ERROR (MainThread) [homeassistant.setup] Unable to setup dependencies of binary_sensor.rpi_gpio. Setup failed for dependencies: rpi_gpio
2018-07-12 15:30:43 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform binary_sensor.rpi_gpio: Could not setup all dependencies.

Same here on raspberry pi 3 b.

I have the exact same issue on pi3b+ (HassOS). Wishing I knew how to install an alternate branch of rpi_gpio. That said, pvizeli has done an amazing job and everything is working very smoothly on the pi3b+!

same here, Pi 3 B
Home Assistant 0.73.1

Same problem with HassOS 1.7

Home Assistant
0.73.1

Same here “https://github.com/home-assistant/home-assistant/issues/15712

is there any update or info ?

Also having an GPIO issue on HassOS 1.7 32-bit with HassIO 74.2:

Successfully built rpi-rf RPi.GPIO
Installing collected packages: RPi.GPIO, rpi-rf
Successfully installed RPi.GPIO-0.6.3 rpi-rf-0.9.6
Traceback (most recent call last):
  File "/share/rpi-rf_receive.py", line 34, in <module>
    rfdevice.enable_rx()
  File "/data/venv/lib/python3.6/site-packages/rpi_rf/rpi_rf.py", line 168, in enable_rx
    GPIO.add_event_detect(self.gpio, GPIO.BOTH)
RuntimeError: Failed to add edge detection

I have the same error even with the newest update (0.75.2)

Same here,

Used the 64 bit HassOS 76.2 version, trying to port everything to the HassOS version from the ResinOS.

Hope this can be resolved.

EDIT: I tried the 32 bit version of HassOS 76.2 and here the rpi-rf component works flawlessly.

Doesn’t work for me (RPi 3B), downloaded the latest 32-bit image (2.2 develop), installed it and made an “update” (1.10 production). Still RPi-RF Addon failing :confused:

@Koen: did you stay on 2.2 develop?

Where did you download it. I don’t use a beta version. Just from the HassOS download page. https://www.home-assistant.io/hassio/installation/
Than the recommended version. This should also be the latest version.

Hope this helps.
Cheers

I downloaded this

Is there any update on this problem?

That is also what I used.

What I also tried when homeassistant was live in a clean version, was to write a simple rpi-rf component with buttons and let it load. To check if the error occurs.

In my case, it was properly functional.

If this does not help, I cannot help you further, since the 32-bit recommended version solved it for me)

Cheers.

May I ask what GPIOs are you using?I’ve had some difficulties hooking up a DHT, looks like I could use just some pins.

I try to use GPIO 27

Same on 0.77.3 64 bits…
I think it´s a docker related issue…too bad…

Did you tried the rpi_gpio component?

Moved to the 32 bit version and it works fine.

On rpi3b 64 HassOS 1.13, Hass.io supervisor 140, hass 0.82.1 not working.

rpi_gpio component not working.

anyone find solution on 64bit?