Closed gauravkej closed 2 years ago
Great plugin, guys! Same issue with the x750H. I cannot get Applications/Custom Commands to work as well. I am guessing it has to do with this erroring out.
Added/Fixed in v5.0.6 (beta)
sudo npm i -g homebridge-bravia-tvos@beta
Thanks, @SeydX! Looking forwarded to this being released
@Paden
can you test it pls, maybe i need to fix some more stuff before release it
The error has gone away but I am still unable to switch Applications via HomeKit. Looking at the logs I get a "Polling API..." message followed by a "Unknown Service Method" message. Those two messages show up over and over again.
Yeah they are only visible if you enabled debug.
What kind of input you try to activate? App? Channel? Command?
App
@Paden
it seems your tv also doesnt support the required service method „setActiveApp“ to controll Applications.
can u try to debug your tv like the OP
"method": "getSupportedApiInfo",
"id": 5,
"params": [{"services": [
"system",
"avContent",
"appControl"
]}],
"version": "1.0"
and can u try to activate a channel or input source (like hdmi) instead of an Application pls
Looks like it doesn't even support getSupportedApiInfo
-- I'll try the input source a bit later
There is a much simpler method
Install my bravia module globally with:
sudo npm i -g @seydx/bravia@beta
and enter following in your terminal
bravia methods TVIP
(eg bravia methods 192.123.123.12)
it should list all available services and methods
That was helpful! Oddly enough it does show setActiveApp
[
{
"service": "accessControl",
"methods": []
},
{
"service": "appControl",
"methods": [
[
{
"method": "getApplicationList",
"version": "1.0"
},
{
"method": "setActiveApp",
"version": "1.0"
},
{
"method": "getMethodTypes",
"version": "1.0"
},
{
"method": "getVersions",
"version": "1.0"
}
]
]
},
{
"service": "audio",
"methods": [
{
"method": "getVolumeInformation",
"version": "1.0"
},
{
"method": "setAudioMute",
"version": "1.0"
},
{
"method": "setAudioVolume",
"version": "1.0"
},
{
"method": "getMethodTypes",
"version": "1.0"
},
{
"method": "getVersions",
"version": "1.0"
},
{
"method": "setAudioVolume",
"version": "1.2"
}
]
},
{
"service": "avContent",
"methods": [
[
{
"method": "getContentCount",
"version": "1.0"
},
{
"method": "getContentList",
"version": "1.0"
},
{
"method": "getCurrentExternalInputsStatus",
"version": "1.0"
},
{
"method": "getSchemeList",
"version": "1.0"
},
{
"method": "getSourceList",
"version": "1.0"
},
{
"method": "setPlayContent",
"version": "1.0"
},
{
"method": "getMethodTypes",
"version": "1.0"
},
{
"method": "getVersions",
"version": "1.0"
}
]
]
},
{
"service": "browser",
"methods": []
},
{
"service": "cec",
"methods": []
},
{
"service": "contentshare",
"methods": []
},
{
"service": "encryption",
"methods": []
},
{
"service": "guide",
"methods": [
[
{
"method": "getServiceProtocols",
"version": "1.0"
},
{
"method": "getSupportedApiInfo",
"version": "1.0"
},
{
"method": "getMethodTypes",
"version": "1.0"
},
{
"method": "getVersions",
"version": "1.0"
}
]
]
},
{
"service": "recording",
"methods": []
},
{
"service": "system",
"methods": [
{
"method": "getCurrentTime",
"version": "1.0"
},
{
"method": "getInterfaceInformation",
"version": "1.0"
},
{
"method": "getNetworkSettings",
"version": "1.0"
},
{
"method": "getPowerStatus",
"version": "1.0"
},
{
"method": "getRemoteControllerInfo",
"version": "1.0"
},
{
"method": "getSystemInformation",
"version": "1.0"
},
{
"method": "requestReboot",
"version": "1.0"
},
{
"method": "setPowerStatus",
"version": "1.0"
},
{
"method": "getMethodTypes",
"version": "1.0"
},
{
"method": "getVersions",
"version": "1.0"
},
{
"method": "getCurrentTime",
"version": "1.1"
}
]
},
{
"service": "video",
"methods": []
},
{
"service": "videoScreen",
"methods": []
}
]
I will check it thx
@Paden
can u try latest Beta pls v5.0.6-beta.5
sudo npm i -g homebridge-bravia-tvos@beta
Same problem
Yeah thats because your tv does not support getPlayingContentInfo
that was expected and can be muted if you disable debug
But how about changing inputs/apps ?
v5.0.6-beta.6 is online
it should show which service method exactly fails
sudo npm i -g homebridge-bravia-tvos@beta
Yes, now I see Service Methods "getPlayingContentInfo" not known!
happen over and over now.
Service Methods "setActiveApp" not known!
message for those.Service Methods "setPlayContent" not known!
there.@Paden
is the TV turned on during the action?
Yes, it is. The power on/off, Back, and Volume control all still work via HomeKit.
v5.0.6-beta.7 is online
sudo npm i -g homebridge-bravia-tvos@beta
Hey check that out! Apps and Inputs both work now! Well done!
Puhh, very nice 😄
First of all, I must say what an amazing piece of work. I just entered the Homebridge ecosystem (last weekend) and I loved all the plugins that you have developed so far. Thank you for all the hard work!
I get the following 2 types of Errors when trying to use the plugin with my Sony Bravia X74H series (or X7400H).
Error Log from Homebridge: During Bootup
During Runtime
For Debugging, I tried manually checking what all APIs are supported by the model that I have using the "getSupportedApiInfo()" for the avContent service and here's the result:
}
And I got the following response.
}
My thoughts so far: It appears that my TV model doesn't support "getPlayingContentInfo()" and hence the plugin fails to recognize the capabilities. If we can disable or bypass the getPlayingCintentinfo section then we should be able to still control and use the TV for all the other functionalities.
It'll be really helpful if you can please look into this and implement a fix for this. I'll be happy to provide whatever logs or info that is required for debugging this.