normen / homebridge-bravia

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

Missing inputs in selection list #93

Closed alexgarden closed 4 years ago

alexgarden commented 4 years ago

Great plugin!

On previous versions, omitting the "sources" tag caused the plugin to add the defaults, and enumerating them caused only the enumerated sources to show up in the accessory. This is expected.

I was running a sources list of [] to keep the selector blank but now I need to enumerate "extInput:HDMI1, extInput:HDMI2". Unfortunately, neither eliminating "sources" for the default list or enumerating as above causes any chance to the list of sources in the accessory. Has something changed or am I doing something wrong?

Thanks!

normen commented 4 years ago

Nothing really changed about this, the format would be sources: ["extInput:HDMI1","extInput:HDMI2"], I guess these are case sensitive though, the defaults include a lowercase extInput:hdmi.

Edit: really, all hdmi inputs should be included in extInput:hdmi, I doubt there is hdmi1 or hdmi2

alexgarden commented 4 years ago

Super strange. That's precisely the text I have. Here's my config snippet:

"tvs": [ { "name": "Family Room TV", "ip": "10.0.0.8", "serverPort": 8999, "sources": [ "extInput:HDMI1", "extInput:HDMI1" ] } ], "platform": "BraviaPlatform"

I swear though, even after multiple reboots, the TV accessory in HomeKit is not showing up any input selections. I have other accessories which use that case, "HDMI1" and work so I believe that is the correct naming and case.

I did see a line in the startup log "[5/18/2020, 8:36:10 AM] [BraviaPlatform] Restoring Family Room TV from HomeKit"

Any chance this line implies that there is some stored HomeKit state that is fighting with the config?

.a


From: Normen Hansen notifications@github.com Sent: Monday, May 18, 2020 8:22 AM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

Nothing really changed about this, the format would be sources: ["extInput:HDMI1","extInput:HDMI2"], I guess these are case sensitive though, the defaults include a lowercase extInput:hdmi.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-630254809&data=02%7C01%7C%7C0353c6a4628b489caac008d7fb3f3f19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637254121361926831&sdata=3zp2jP7F4bKeR062WjjAVRJ9mfhcCi3em%2B8yQ%2B6rZRo%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3PWAQQ7ZDBSUSY6VY3RSFHCNANCNFSM4NEES7OQ&data=02%7C01%7C%7C0353c6a4628b489caac008d7fb3f3f19%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637254121361936830&sdata=ks4AOd9GErzcbKmmfF8keYcP%2Bb1yxQBSnpo3lpi6rX4%3D&reserved=0.

normen commented 4 years ago

Did you try just extInput:hdmi as in the default? It's not single inputs, its the type of input.

alexgarden commented 4 years ago

Super strange. I did another reset and all of a sudden it works. Strange behavior, but in any event thank you very much for your quick responses.

.a


From: Normen Hansen notifications@github.com Sent: Monday, May 18, 2020 9:10 AM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

Did you try just extInput:hdmi as in the default?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-630285625&data=02%7C01%7C%7Cbc72be8734b74e1fe65008d7fb45fbaa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637254150295126437&sdata=ht6BU%2Fo2gd0Hkm9Bs7wQK0VFhXX6NuQ%2BZS5kksZ2uFE%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3N2UJ77R6IXJTO7CE3RSFMXJANCNFSM4NEES7OQ&data=02%7C01%7C%7Cbc72be8734b74e1fe65008d7fb45fbaa%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637254150295126437&sdata=7OIPakuHErkjWzNPnebbVGz%2F%2FszvXQaKG9bgUDPOG%2Fc%3D&reserved=0.

normen commented 4 years ago

Super strange. I did another reset and all of a sudden it works.

What works now?

alexgarden commented 4 years ago

Apologies. By "works", I mean the accessory is now shoing the enumerated inputs correctly.

normen commented 4 years ago

Apologies. By "works", I mean the accessory is now shoing the enumerated inputs correctly.

Sorry, I mean what settings work now?

alexgarden commented 4 years ago

OK. I think I know what's going on. The TV accessory now enumerates four inputs:

  1. HDMI 1
  2. HDMI 2
  3. HDMI 3/ARC
  4. HDMI 4

Yesterday, the reason I was resetting the controller so much is that I swapped out my Yamaha reciever from a RX-S601 to a RX-V685. The TV accessory seems to be enumerating the inputs on the Yamaha Receiver vs. itself. Does this makes any sense to you?

.a


From: Normen Hansen notifications@github.com Sent: Tuesday, May 19, 2020 9:00 AM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

Apologies. By "works", I mean the accessory is now shoing the enumerated inputs correctly.

Sorry, I mean what settings work now?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-630916341&data=02%7C01%7C%7Ca270c8d8e9874fc2124008d7fc0dbbc8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255008216876422&sdata=D3Tadyi6LkiDtxG1uURVlgBrKMKVEUD9zXfX7EDzKm4%3D&reserved=0, or unsubscribehttps://eur06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3PEL6BQPKJC4D4GDMLRSKUJJANCNFSM4NEES7OQ&data=02%7C01%7C%7Ca270c8d8e9874fc2124008d7fc0dbbc8%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255008216876422&sdata=MZ%2F%2BkZJARlJqUFIRJ%2B0et4QG83fwg74wCoQ4FLtM2Qo%3D&reserved=0.

normen commented 4 years ago

That looks like the normal list of HDMI inputs that is reported when a Sony TV is queried for extInput:hdmi. If queried for extInput:cec most Sony TVs will report a list of names that the connected HDMI devices provide. I still think the issue was simply that you queried for extInput:HDMI1 which is not an existing source list for the TV.

alexgarden commented 4 years ago

AAAH! I am sorry... I thought that "extInput:hdmi" was an explicit reference to an input called "hdmi". In fact, it's a reference to a class of inputs (in this case HDMI) which gets me that enumerated list.

If I'm right about this, I would encourage you to update the docs as it's not super clear.

Thank you!

.a


From: Normen Hansen notifications@github.com Sent: Tuesday, May 19, 2020 9:21 AM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

That looks like the normal list of HDMI inputs that is reported when a Sony TV is queried for extInput:hdmi. If queried for extInput:cec most Sony TVs will report a list of names that the connected HDMI devices provide. I still think the issue was simply that you queried for extInput:HDMI1 which is not an existing source list for the TV.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-630928516&data=02%7C01%7C%7C339474a782e84f64a96108d7fc10b3cf%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255020969653472&sdata=aQDFJ2h3pZd1taOep08yQLTnvSJOaB2YujRtDoVHDMg%3D&reserved=0, or unsubscribehttps://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3JK7PGLRQWH4E5GIRLRSKWY7ANCNFSM4NEES7OQ&data=02%7C01%7C%7C339474a782e84f64a96108d7fc10b3cf%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255020969663464&sdata=ldX%2B5mBGUBqezK4mXH%2FQW1gv01m7Puy2CNvlRwXhqso%3D&reserved=0.

normen commented 4 years ago

This is nothing I decided on. I don't know if this is the case for all Sony TVs. All I found out is that you can query a Sony TVs "sources" and it will return a bunch of URIs that you can use to switch to those inputs.

alexgarden commented 4 years ago

Got it. My point was only that in the documentation it seemed to me that the sources tag was there to enumerate sources but in fact, it's a switch asking for an enumeration of a class of sources.


From: Normen Hansen notifications@github.com Sent: Tuesday, May 19, 2020 11:06 AM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

This is nothing I decided on. I don't know if this is the case for all Sony TVs. All I found out is that you can query a Sony TVs "sources" and it will return a bunch of URIs that you can use to switch to those inputs.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-630988323&data=02%7C01%7C%7C87900e638dfe4dfae17308d7fc1f55da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255083829692118&sdata=Ztj0SIW9Ido17A5%2FGofLHVeksHFNdowjSKzoSwaXw7w%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3NZ5FMBMZ4UUGQOKQ3RSLDBZANCNFSM4NEES7OQ&data=02%7C01%7C%7C87900e638dfe4dfae17308d7fc1f55da%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255083829692118&sdata=Q6Rdh%2FJeyhA30CaMO07yc92FpQkdPYAlvR9QLBVqTyo%3D&reserved=0.

normen commented 4 years ago

Enumerating sources is the exact use of the array 😄 Using "source" in the way Sony uses the word. Afaict it can be a single physical input (like component) or a single physical input with multiple channels (dvb) or a type of input with multiple physical inputs (hdmi).

alexgarden commented 4 years ago

Roger. May be worth a few lines in the readme. Otherwise, thanks so much!


From: Normen Hansen notifications@github.com Sent: Tuesday, May 19, 2020 3:50 PM To: normen/homebridge-bravia homebridge-bravia@noreply.github.com Cc: alexgarden alex.garden@outlook.com; Author author@noreply.github.com Subject: Re: [normen/homebridge-bravia] Missing inputs in selection list (#93)

Enumerating sources is the exact use of the array 😄 Using "source" in the way Sony uses the word. Afaict it can be a single physical input (like component) or a single physical input with multiple channels (dvb) or a type of input with multiple physical inputs (hdmi).

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-631128129&data=02%7C01%7C%7C796a79005fe04fd1f13a08d7fc46fda6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255254135027613&sdata=Fus8h09LCHaFHFWhSY9ojTmN%2BpDKghciXqOWETqlQqI%3D&reserved=0, or unsubscribehttps://eur05.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3PSNEQ56SNUZDSCO3TRSMEKHANCNFSM4NEES7OQ&data=02%7C01%7C%7C796a79005fe04fd1f13a08d7fc46fda6%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255254135027613&sdata=N8c5t3nOcgaoEkWE8iweAW%2B9xBvp7Bq26RSbwVrHW4M%3D&reserved=0.

normen commented 4 years ago

I'd rather have it that somebody actually researches this topic so there could be concise information about it instead of empirically gathered info.

alexgarden commented 4 years ago

Understood!

On May 20, 2020 at 4:01 AM, <Normen Hansen (mailto:notifications@github.com)> wrote:

I'd rather have it that somebody actually researches this topic so there could be concise information about it instead of empirically gathered info.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub (https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnormen%2Fhomebridge-bravia%2Fissues%2F93%23issuecomment-631404323&data=02%7C01%7C%7Cfb98ddd3ea224ffa321408d7fcad1645%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255692636360516&sdata=hNFxPF165Sr%2FyurmIPg10SX4k5TFuRmMP4%2BBJFnsW78%3D&reserved=0), or unsubscribe (https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FADKWF3ISW7EH6V5MJ2IHZ23RSOZ63ANCNFSM4NEES7OQ&data=02%7C01%7C%7Cfb98ddd3ea224ffa321408d7fcad1645%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C637255692636370511&sdata=pUyicdeme%2B48iIC63KBQTyHxAbvYO3znT4cH2J%2FW92w%3D&reserved=0).