normen / homebridge-bravia

Homebridge plugin for Sony Bravia TVs (AndroidTV based ones and possibly others)
139 stars 26 forks source link

2 TV's only one gets inputs populated. #57

Closed cheezmo closed 4 years ago

cheezmo commented 4 years ago

I have two TV's, a Sony 940d and a Sony 930d. Both work fine, but lately I noticed that only the 930d shows its in puts in the Homekit Controls.

Here is my config and Homebridge startup log.

Screen Shot 2020-02-17 at 1 56 45 PM Screen Shot 2020-02-17 at 1 57 07 PM
      "platform": "BraviaPlatform",
        "tvs": [
            {
                "name": "Sony 940d",
                "ip": "192.168.1.52",
                "soundoutput": "speaker",
                "applications": false,
                "sources": [
                    "extInput:hdmi"
                ]
            },
            {
                "name": "Sony 930d",
                "ip": "192.168.1.53",
                "soundoutput": "speaker",
                "applications": false,
                "sources": [
                    "extInput:hdmi"
                ]
            }
        ]

And the log on Homebridge Startup.

[2/17/2020, 1:40:17 PM] [BraviaPlatform] Initializing BraviaPlatform platform... [2/17/2020, 1:40:17 PM] [BraviaPlatform] Added input HDMI 1 [2/17/2020, 1:40:17 PM] [BraviaPlatform] Added input HDMI 2 [2/17/2020, 1:40:17 PM] [BraviaPlatform] Added input HDMI 3 [2/17/2020, 1:40:17 PM] [BraviaPlatform] Added input HDMI 4/ARC [2/17/2020, 1:40:17 PM] [BraviaPlatform] Initializing platform accessory 'Sony 940d'... [2/17/2020, 1:40:17 PM] [BraviaPlatform] Initializing platform accessory 'Sony 930d'... [2/17/2020, 1:40:18 PM] [BraviaPlatform] Added input HDMI 1 [2/17/2020, 1:40:18 PM] [BraviaPlatform] Added input HDMI 2 [2/17/2020, 1:40:18 PM] [BraviaPlatform] Added input HDMI 3 [2/17/2020, 1:40:18 PM] [BraviaPlatform] Added input HDMI 4/ARC

normen commented 4 years ago

Mhm, from the log it looks like the TV gets initialized before the input list is received, see #36. Maybe the request failed and it gets silently swallowed somewhere.

As a workaround, I guess there will be "good" and "bad" boots of homebridge, you can see it from the boot log initialization order.

normen commented 4 years ago

Is this still the case in 2.0?

cheezmo commented 4 years ago

Just set up my two TVs and they all got populated so looks good so far.

On May 2, 2020, at 12:00 PM, Normen Hansen notifications@github.com wrote:

Is this still the case in 2.0?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/normen/homebridge-bravia/issues/57#issuecomment-622983661, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRJAWKKGBIUP3BLG23Q4BDRPRGSZANCNFSM4KWXWKBQ.

-- Steve Martin

normen commented 4 years ago

Closing this then

cheezmo commented 4 years ago

Thanks!

Steve Martin steve@planomartins.com

On May 5, 2020, at 4:59 PM, Normen Hansen notifications@github.com wrote:

 Closing this then

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.