pigpio: Pigpio cant connect to localhost(8888)
Hi, i have a raspberry pi3 with hassbian,and this is the second time that this error came, the first time i fixed with a homeassistant update, but now i cant fix with the new update. I think that there is a fix, but i don’t know how to fix, can anyone help me, thank you very much.
Feb 19 22:01:18 hassbian hass[583]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Feb 19 22:01:18 hassbian hass[583]: Can't connect to pigpio at localhost(8888)
Feb 19 22:01:18 hassbian hass[583]: Did you start the pigpio daemon? E.g. sudo pigpiod
Feb 19 22:01:18 hassbian hass[583]: Did you specify the correct Pi host/port in the environment
Feb 19 22:01:18 hassbian hass[583]: variables PIGPIO_ADDR/PIGPIO_PORT?
Feb 19 22:01:18 hassbian hass[583]: E.g. export PIGPIO_ADDR=soft, export PIGPIO_PORT=8888
Feb 19 22:01:18 hassbian hass[583]: Did you specify the correct Pi host/port in the
Feb 19 22:01:18 hassbian hass[583]: pigpio.pi() function? E.g. pigpio.pi('soft', 8888)
Feb 19 22:01:18 hassbian hass[583]: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 34 (10 by maintainers)
I had a similar issue. I had to edit my start up service file because by default the newer pi binds to ip6 over ip4. This fix my issue:
/lib/systemd/system/pigpiod.service
[Service] ExecStart=/usr/bin/pigpiod -l -n 127.0.0.1