Closed nitaybz closed 6 years ago
Hi nitaybz,
I've seen that happen on mine too. Unfortunately I can't yet figure out the specific cause for this. Sometimes the Apple TV responds with something that the code doesn't expect - so the connection is dropped and reestablished - hence the ECONNRESET/ECONNREFUSED.
In other cases this does happen out of the blue. I'll try to add more logging to figure out the cause for this.
I can't tell if it's related cause I haven't noticed the exact time but sometimes the automations I'm using with this switch are not working... when I tried to see what's going on in home app, I saw the switch was ON, but when I paused and play it didn't show immediately on Home app, only after I was out of the app and back in so it would update. normally it works fine and I can see it pushes the new status to home app without the need of updating... just FYI while you're digging in logs...
Hey @nitaybz, I finally got around to take a look into this. I think I've got a solution, but it would be great if you could give me some feedback before I publish the fix.
Could you please install the following plugin version? (You might need root/sudo privileges.)
npm install -g github:grover/homebridge-dacp#76a5e45b012006068090bdfbe58c1d80256c8876
And report back to me? I haven't seen the errors again, but I'd like to hear from you too. Should the above version cause any errors, you can always revert back by installing the latest version in the npm repository:
npm install -g homebridge-dacp@latest
Thanks!
Another update with some more small fixes:
npm install -g github:grover/homebridge-dacp#16131f6158055c9b0aec9b6ea17fe5b3a307f7e3
Any news from you?
sorry I had a busy week... I'm installing now, will let you know if there are any issues
so far so good... closing the issue! thanks a lot!
This happens a lot: