ebaauw / homebridge-zp

Homebridge plugin for Sonos ZonePlayer
Apache License 2.0
241 stars 20 forks source link

Suppress warnings if host is unreachable #176

Closed ruffian closed 3 years ago

ruffian commented 3 years ago

Issue

I turn off some of my devices during night. The homebridge log is flooded with warnings since homebridge-zp v1.3.0. Is there a way to reduce these kind of warning?

Log Messages

HOSTUNREACH
[6/8/2021, 6:42:14 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:16 AM] [Sonos] Room1: warning: 192.168.5.11:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:16 AM] [Sonos] Room2: warning: 192.168.5.12:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:17 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:19 AM] [Sonos] Room1: warning: 192.168.5.11:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:19 AM] [Sonos] Room2: warning: 192.168.5.12:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:20 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:22 AM] [Sonos] Room1: warning: 192.168.5.11:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:22 AM] [Sonos] Room2: warning: 192.168.5.12:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:23 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:25 AM] [Sonos] Room1: warning: 192.168.5.11:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:25 AM] [Sonos] Room2: warning: 192.168.5.12:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:26 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:28 AM] [Sonos] Room1: warning: 192.168.5.11:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:28 AM] [Sonos] Room2: warning: 192.168.5.12:1400: cannot connect: EHOSTUNREACH
[6/8/2021, 6:42:29 AM] [Sonos] Sonos Roam: warning: 192.168.5.16:1400: cannot connect: EHOSTUNREACH

Debug Files

ebaauw commented 3 years ago

No, there isn’t, other than turning Homebridge off at night as well.