Hi,
I have a binary sensor to access GPIO pin 18 on my Rpi4. This was working well with Rasbian OS. Now I switched to Debian (supervised) and this sensor does not work anymore. Below is the error message from th elogfile, showing an error while accessing the GPIO.
Is there anything I need to configure for GPIO access?
2021-02-05 15:00:18 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up rpi_gpio platform for binary_sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 198, in _async_setup_platform
await asyncio.shield(task)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/rpi_gpio/binary_sensor.py", line 46, in setup_platform
RPiGPIOBinarySensor(
File "/usr/src/homeassistant/homeassistant/components/rpi_gpio/binary_sensor.py", line 65, in __init__
rpi_gpio.setup_input(self._port, self._pull_mode)
File "/usr/src/homeassistant/homeassistant/components/rpi_gpio/__init__.py", line 33, in setup_input
GPIO.setup(port, GPIO.IN, GPIO.PUD_DOWN if pull_mode == "DOWN" else GPIO.PUD_UP)
RuntimeError: Not running on a RPi!