bschlenk / homebridge-roku

Control your Roku media player from your iOS devices using Apple's HomeKit.
MIT License
79 stars 24 forks source link

v4.0.0-beta3 input issue (?) and Homebridge log messages #229

Open NateUT99 opened 3 years ago

NateUT99 commented 3 years ago

Started noticing a few things after upgrading to v4.0.0-beta3... they could have been present in earlier betas, but I didn't notice them. If I can provide any additional information that would be useful, please let me know.

1. Inputs showing as accessories I don't really use the inputs functionality (I only have an AppleTV connected to my TVs), but I did notice that all of the discovered inputs appear as separate accessories when I would have expected them to fill the input list of the TV accessory. IMG_7896 IMG_7897

2. Periodically seeing these messages in the Homebridge main log.

[28/04/2021, 07:49:48] [homebridge-roku] This plugin slows down Homebridge. The read handler for the characteristic 'Active Identifier' didn't respond at all!. Please check that you properly call the callback! See https://git.io/JtMGR for more info.
[28/04/2021, 07:49:58] [homebridge-roku] This plugin threw an error from the characteristic 'Active': Unhandled error thrown inside read handler for characteristic: request to http://192.168.4.28:8060/query/device-info failed, reason: connect EHOSTUNREACH 192.168.4.28:8060. See https://git.io/JtMGR for more info.
[28/04/2021, 07:49:58] [homebridge-roku] This plugin threw an error from the characteristic 'Active Identifier': Unhandled error thrown inside read handler for characteristic: request to http://192.168.4.28:8060/query/apps failed, reason: connect EHOSTUNREACH 192.168.4.28:8060. See https://git.io/JtMGR for more info.

config.json snippet:

         {
            "platform": "RokuPlatform",
            "name": "Roku",
            "discoverTimeout": 5000,
            "volumeIncrement": 5,
            "volumeDecrement": 1,
            "infoButtonOverride": "INFO"
        }
jfmach commented 3 years ago

Confirmed, same issue here. Thanks!

NateUT99 commented 3 years ago

Some additional information... the inputs showing as individual accessories seems to correct itself after a little bit of time (see photo). I can reproduce the problem easily though by simply restarting Homebridge.

IMG_7909

BrodyBuster commented 2 years ago

You can use the excludeinputs config. Should look something like this:

      {
            "platform": "RokuPlatform",
            "name": "Roku",
            "discoverTimeout": 5000,
            "volumeIncrement": 5,
            "volumeDecrement": 1,
            "infoButtonOverride": "HOME",
            "excludeInputs": [
                "ABC",
                "CBS",
                "Apple TV",
                "Disney Plus",
                "Fox News Channel",
                "Frndly TV",
                "Hallmark TV",
                "HGTV GO",
                "HISTORY",
                "Home",
                "Hulu",
                "Lifetime",
                "NBC",
                "Netflix",
                "Newsmax TV",
                "NTD: Live TV & Programs",
                "One America News Network OAN",
                "Peacock TV",
                "Plex - Free Movies & TV",
                "Pluto TV - It's Free TV",
                "Prime Video",
                "PureFlix",
                "Sling TV",
                "Spectrum TV",
                "The Roku Channel",
                "Vudu Movie & TV Store",
                "YouTube TV"
            ]
        }

Make sure the inputs are spelled exactly the same. This is what I am using right now to remove the clutter.