HA 0.92.2
Python 3.7.3
RPI 3+ 64bit HA
This is my first time trying to use rpi_gpio. I placed the following in configuration.yaml.
binary_sensor:
- platform: rpi_gpio
ports:
5: gpio_5
6: gpio_6
It does not work. I get an rpi_gpio error notification in “Overview” and the errors below in HA log. Any suggestions?
2019-05-13 14:55:34 ERROR (MainThread) [homeassistant.setup] Error during setup of component rpi_gpio
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/homeassistant/setup.py", line 156, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.7/site-packages/homeassistant/components/rpi_gpio/__init__.py", line 14, in setup
from RPi import GPIO # pylint: disable=import-error
File "/usr/local/lib/python3.7/site-packages/RPi/GPIO/__init__.py", line 23, in <module>
from RPi._GPIO import *
RuntimeError: This module can only be run on a Raspberry Pi!
2019-05-13 14:55:35 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform rpi_gpio: Unable to set up component.