Hi, First post so don’t bit my head off!!! I have home assistant 0.104.2 running on a pi4 with Buster, its working fine in that I can see light switches, TV, AVR etc, I can even read all the temp sensors on the pi4! But what Im having problems with is trying to access a remote pi GPIO!
The response I get when I restart the ha server is “Platform error binary_sensor.remote_rpi_gpio - No module named ‘pigpio’”
On the local pi I can run pigs t and get a good response, the pigpiod is running at startup, yet when I start ha it gives me this error.
I have tried several ideas from posts Ive read here to get this to work but none seem to have any effect.
Heres some more info if it helps?
2020-01-31 14:16:26 ERROR (MainThread) [homeassistant.config] Platform error: binary_sensor
Traceback (most recent call last):
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/config.py”, line 760, in async_process_component_config
platform = p_integration.get_platform(domain)
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/loader.py”, line 265, in get_platform
f"{self.pkg_path}.{platform_name}"
File “/usr/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 953, in _find_and_load_unlocked
File “”, line 219, in _call_with_frames_removed
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 677, in _load_unlocked
File “”, line 728, in exec_module
File “”, line 219, in _call_with_frames_removed
File “/srv/homeassistant/lib/python3.7/site-packages/homeassistant/components/remote_rpi_gpio/init.py”, line 5, in
from gpiozero.pins.pigpio import PiGPIOFactory
File “/srv/homeassistant/lib/python3.7/site-packages/gpiozero/pins/pigpio.py”, line 42, in
import pigpio
ModuleNotFoundError: No module named ‘pigpio’
did you read the documentation? It has a whole page showing you how to set up your pi to handle this. It’s linked in the first second paragraph of the documentation.
Hi petro, thanks for the reply. yes I have seen this already. Just to be sure I have repeated the setup but still get the error.
If it makes any difference I manually installed HA on to buster. As i said everything else seems to work fine.
OK,Ive narrowed down the problem, I think, as I said I have installed HA manually on a pi 4 running buster. I don’t start HA automatically yet so I have to create the environment as described https://www.home-assistant.io/integrations/remote_rpi_gpio.
So directly prior to running “hass” if I try to run a small python script that uses pigpio it fails with “cant find pigpio module” same as HA. Yet in a normal xterm this tiny script runs OK.
So there must be a problem with how the virtual environment is set up prior to running hass.
Petro, you were right!!! pigpio wasn’t installed in the virtual env. But it obviously worked OK on the machine as normal. Thanks for your help, it made me look deeper into the problem and figure it out!!!
Although I still done know why it wasn’t installed from the start.
i have the Add-on “Check Home Assistant Configuration” and since now a year i have the error
- Platform error switch.remote_rpi_gpio - No module named 'pigpio'
I have read and install letter by letter the tutorial gived in your link above, but i dont understand how install it in virtual env, please could you explain @mick ?
i am under Home assistant core-2021.6.5, supervisor-2021.06.3 and Home Assistant OS 6.0,
i can make some command from terminal (Ssh and Terminal Add-On from @frenck ).