seydx / homebridge-bravia-tvos

Homebridge plugin for Sony Bravia Android TVs
MIT License
346 stars 32 forks source link

Recurring connection error in Homebridge log despite everything works fine with the api #208

Open maisun opened 1 year ago

maisun commented 1 year ago

Hi, With Homebridge 1.6.1 and homebridge-bravia-tvos 5.0.8 I see lots of recurring connection errors in the log file after TV is turned off for some time: [4/30/2023, 9:18:10 PM] [BraviaTVOS] Sony TV: An error occured during getting television state! [4/30/2023, 9:18:10 PM] [BraviaTVOS] Error: Error: connect EHOSTUNREACH 192.168.x.xx:80 at ServiceProtocol.describe (/homebridge/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/service.js:68:15) at processTicksAndRejections (node:internal/process/task_queues:95:5) at /homebridge/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:257:22 at async Promise.all (index 0) at Bravia.describe (/homebridge/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:255:27) at Bravia.exec (/homebridge/node_modules/homebridge-bravia-tvos/node_modules/@seydx/bravia/lib/bravia.js:289:28) at Handler.getTelevisionState (/homebridge/node_modules/homebridge-bravia-tvos/src/accessories/accessory.handler.js:18:24) at Handler.poll (/homebridge/node_modules/homebridge-bravia-tvos/src/accessories/accessory.handler.js:559:7)

I can still turn on TV with HomeKit, and after turning on the error disappears, but after a while it comes back. In my settings I don't select "Wake on LAN" so look to me like the plugin can perfectly turn on the TV with API. However it cannot poll OFF state due to connection error for some reason. Appreciate any suggestion!