normen / homebridge-bravia

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

TV: Can't load sources #170

Closed y0m1g closed 2 years ago

y0m1g commented 2 years ago

Hello, I'm unable to have the TV channels from the tuner appear in the inputs of my Sony X90J in the HomeKit app. I've tried tv:dvbt, tv:dvbc or tv:dvbs, in both normal and external modes, and nothing works.

I've enabled debug logging in Homebridge for this plugin, and here are some errors that seem related:

[3/14/2022, 3:47:22 PM] [BraviaPlatform] Can't load sources for extInput:component
[3/14/2022, 3:47:22 PM] [BraviaPlatform] TV response:
[3/14/2022, 3:47:22 PM] [BraviaPlatform] {"error":[3,"Illegal Argument"],"id":13}
[3/14/2022, 3:47:22 PM] [BraviaPlatform] Can't load sources for extInput:scart
[3/14/2022, 3:47:22 PM] [BraviaPlatform] TV response:
[3/14/2022, 3:47:22 PM] [BraviaPlatform] {"error":[3,"Illegal Argument"],"id":13}
[3/14/2022, 3:47:23 PM] [BraviaPlatform] Can't load sources for extInput:widi
[3/14/2022, 3:47:23 PM] [BraviaPlatform] TV response:
[3/14/2022, 3:47:23 PM] [BraviaPlatform] {"error":[3,"Illegal Argument"],"id":13}
[3/14/2022, 3:47:23 PM] [BraviaPlatform] Can't load sources for tv:dvbt
[3/14/2022, 3:47:23 PM] [BraviaPlatform] TV response:
[3/14/2022, 3:47:23 PM] [BraviaPlatform] {"error":[3,"Illegal Argument"],"id":13}
[3/14/2022, 3:47:23 PM] [BraviaPlatform] Stored channels in external storage

TV is up to date too. Thank you

normen commented 2 years ago

No idea, you'd have to find out what the correct names are for that TV. It seems to me that in general the command didn't fail, just looking for the wrong name. If you can't find out the correct name from the interwebs, the wiki might contain some commands to get the TV to send some info about itself via HTTP.

y0m1g commented 2 years ago

For those who might come here later, here's how I've solved this issue: did curl -v -XPOST http://{IP_OF_MY_TV}/sony/avContent -d '{"id":13,"method":"getSourceList","version":"1.0","params":[{"scheme":"tv"}]}' after taking a look at this wiki page as @normen suggested, and got 2 results: tv:analog and tv:atsct. tv:atsct worked for me (I'm in Canada)!