am I missing something and can’t read between the lines, or indeed the documentation for remote rpi gpio component isn’t complete?
I can’t see there anything regarding the preparation of remote RPi. I assume, that Raspbian is needed, but do I need to install anything else that would communicate with the component?
thanks! I’ve turned on remote GPIO access in raspi-config, but it seems like pigpiod isn’t installed [I’ve got very basic raspbian install, without desktop - this pi is for database + few sensors only]. gonna install it and investigate it further.
Similar issues here. Managed to get pigpiod running, and confirmed reading a gpio pin with pigs.
Home Assistant still gives this error when starting:
Error while setting up platform remote_rpi_gpio
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!
Tried reinstalling gpiozero, but other than that, I’m lost.
ok, managed to configure but no luck with running the sensor
2019-06-26 22:51:11 ERROR (MainThread) [homeassistant.components.binary_sensor] Setup of platform remote_rpi_gpio is taking longer than 60 seconds. Startup will proceed without waiting any longer.
2019-06-26 22:56:50 ERROR (MainThread) [homeassistant.components.binary_sensor] remote_rpi_gpio: Error on device update!
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 377, in async_device_update
await self.hass.async_add_executor_job(self.update)
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 104, in update
self._state = remote_rpi_gpio.read_input(self._button)
File "/usr/src/homeassistant/homeassistant/components/remote_rpi_gpio/__init__.py", line 63, in read_input
return button.is_pressed
AttributeError: 'NoneType' object has no attribute 'is_pressed'
@pejotigrek Did you restart HA after setting up the remote RPi? If you make any changes to or restart the remote RPi you need to restart HA before it will connect properly.
sure, in the meantime I’ve restarted it many times, as there was a lot more stuff I changed in the config
finally I got it to work on my “dev pi” with the short cable, but still working on runing it smoothly on “production pi” which stays in garage & has all the sensors - but this I think I can manage.
but the main problem still stands - documentation on this component isn’t complete. I’m thinking about making some edits to doc pages, but 1) never did it before 2) don’t know if I really know “all that’s important” to share & make it complete [need to review my knowledge first], so didn’t wrote it all yet.
How good is this remote binary sensor? I recently purchased a nodecmu, and a doorbell press only changes my sensor for max 2 secs… But the change in HA is instant, so that’s good…
Is this also instant when using remote gpio on a PI? I read in other threads , that’s based on scan interval training… So I can miss my doorbell hits…
Can anyone confirm this?? I was t to buy a PI, but I want to make sure the binary sensors changes are also instant
Fabio, I run HA on a Pi 3B+, and have remote GPIO running on a Pi Zero W. In my experience, the binary sensor changes are always instant whenever a button is pressed. I have been very pleased with the remote GPIO performance.
hi, i have a test rpi 3b+ , but i have this error like in documenation
how to change that to “mock” ?
TROUBLESHOOTING
If you receive an error such as gpiozero.exc.BadPinFactory: Unable to load any default pin factory! try changing the pinfactory from pigpio to mock , this adresses a known issue.