Closed marcelo-lara closed 4 years ago
Hi! I'm using 8 gpios to control relays
According to the log, you have 12 light
devices? These use PWM to dim the LEDs and are unsuitable to drive relays. You need to use switch
devices for those. Also, the PWM values need to be polled, whereas the on/off values are received through push notifications. See the Wiki.
I don’t think there actually is a memory leak. Homebridge RPi doesn’t throttle the asynchronous requests to the pigpiod
server. With your configuration, it’s sending 12 requests in parallel, to set the initial duty cycle, and then to poll the duty cycles. Each request adds a one-time listener for the response event (5
is for setting the duty cycle, 83
for querying it) and error
event. I’m not sure if increasing the expected number of listeners is the right course here, I think throttling the requests to pigpiod
is.
Note that the message is just a warning, Homebridge RPi continues to function normally.
Note to self: same will probably happen with this many servo
devices.
Fixed in v1.1.14.
Fixed in v1.1.14. Great!! thanks!
Hi! I'm using 8 gpios to control relays, but I don't know where to set the "emitter.setMaxListeners()" Here's the log. Thanks!
homebridge.log