ebaauw / homebridge-rpi

Homebridge plugin for Raspberry Pi.
Apache License 2.0
308 stars 18 forks source link

Power LED: error: 127.0.0.1:8888: cannot connect: ECONNREFUSED #72

Closed markbeelen closed 3 years ago

markbeelen commented 3 years ago

Good morning,

I'm getting an error with the new Power LED feature on my local Raspberry3, tried localhost as well as 127.0.0.1:

Power LED: error: 127.0.0.1:8888: cannot connect: ECONNREFUSED

Do I need to add/change some file access? The second Raspberry4 is working fine via the GPIO.

homebridge.log.txt

ebaauw commented 3 years ago

Did you start pigpiod on the local host?

markbeelen commented 3 years ago

No I did not. After enabling/starting and adding /sys/class/leds/led1/brightness to opt/pigpio/access it now works. So this is not only necessary on a remote Raspberry but also on the local one. Thanks.