I’ve upgraded to 0.94 and I’m trying to set up the new Remote Raspberry Pi GPIO component.
I set up some binary sensors and switches following the instructions on the component page but couldn’t validate the config until I changed the ‘address:’ line to ‘host:’.
Now the config validates but none of the binary sensors or switches are showing up in my entities list and the following errors are in the log;
2019-06-06 14:45:58 ERROR (MainThread) [homeassistant.components.binary_sensor] Error while setting up platform remote_rpi_gpio
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/binary_sensor.py”, line 52, in setup_platform
bouncetime)
File “/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/init.py”, line 36, in setup_input
from gpiozero import Button
File “/usr/local/lib/python3.7/site-packages/gpiozero/init.py”, line 22, in
from .devices import (
File “/usr/local/lib/python3.7/site-packages/gpiozero/devices.py”, line 486, in
Device.pin_factory = _default_pin_factory()
File “/usr/local/lib/python3.7/site-packages/gpiozero/devices.py”, line 453, in _default_pin_factory
raise BadPinFactory(‘Unable to load any default pin factory!’)
gpiozero.exc.BadPinFactory: Unable to load any default pin factory!
2019-06-06 14:45:58 ERROR (MainThread) [homeassistant.components.switch] Error while setting up platform remote_rpi_gpio
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/helpers/entity_platform.py”, line 126, in _async_setup_platform
SLOW_SETUP_MAX_WAIT)
File “/usr/local/lib/python3.7/asyncio/tasks.py”, line 416, in wait_for
return fut.result()
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/switch.py”, line 40, in setup_platform
address, port, invert_logic)
File “/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/init.py”, line 24, in setup_output
from gpiozero import LED
File “/usr/local/lib/python3.7/site-packages/gpiozero/init.py”, line 22, in
from .devices import (
File “/usr/local/lib/python3.7/site-packages/gpiozero/devices.py”, line 486, in
Device.pin_factory = _default_pin_factory()
File “/usr/local/lib/python3.7/site-packages/gpiozero/devices.py”, line 453, in _default_pin_factory
raise BadPinFactory(‘Unable to load any default pin factory!’)
gpiozero.exc.BadPinFactory: Unable to load any default pin factory!
I’m unsure what has to be installed on the remote RPi to allow it to be controlled by HA, any assistance would be appreciated.