-
-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting SRS-X88 source list #5
Comments
Incidentally, the clue for the schemes came from a similar project: |
Hi and thanks for your findings, I'm going to answer a couple of points :-)
This is exactly what calling
Calling I'm unsure about the network services and their specifics (as mine is completely disconnected from external network), the official API may describe some of that. Is it currently working otherwise fine for you, or do you have found something else that is misbehaving? About that pysonyavr, interesting! That's also newer than this project, so maybe that's why I never spotted it while searching for a way to control these devices. Looks like their implementation is much simpler and does not support e.g. changing settings at all. Still, more the merrier I suppose! |
Yes, I'd missed songpal schemes - that does work. I haven't actually tried the home assistant component yet, I wanted to see how it works before I install onto my HA machine. I think the issue will be that the input list in HA comes from get_inputs which only uses getCurrentExternalTerminalsStatus to get the list of inputs. That will only return the extInput sources and not the sources for the other schemes. The full list of inputs comes from getting the sources from all schemes. The other issue will be down to the device reporting an input source that is not listed in any of the schemes - i.e. you have to use input dlna:music to put the device onto the network source but then the reported source is different, making it impossible to show the current input in a drop down list without an ugly workaround. |
I just modified the cli tool' source command to iterate over all the schemes when no scheme is given. I'm unsure whether it makes to integrate this to the homeassistant component, but I suppose that'd be okay thing to do. Have you tested out what happens if you try to activate a source such as The information from |
OK, so source now gets all 5 sources selectable by the remote, albeit with some errors:
I can successfully change input to bluetooth using:
This also works for extInput:usbDac and storage:usb1 but not for extInput:line or dlna:music, both of which throw:
Setting to extInput:line manually, getPlayingContentInfo shows the uri is actually set to extInput:line?port=1:
This does work with setPlayContent:
I did try calling setPlayContent with source instead of uri as the parameter, but that doesn't work. The network setting is even worse - although it's dlna:music, if I manually switch to network it reports the uri as a specific netService:audio uri:
Interesting to note that getCurrentExternalTerminalsStatus, which only reports three out of the five sources, does have the full uri for line input:
That might be OK for my needs - I only really need to be able to select bluetooth or line in. The problem is gracefully handling the situation in HA when the uri does not match anything in the dropdown list of sources. |
well. i found a dumb solution. configuration:yaml
automation.yaml
sony_srsx77_input_source.sh
reference: |
I've figured out how to get the list of SRS-X88 sources. You have to get the list for each scheme in turn. First get the schemes:
For each scheme, get the source list:
The next problem is that the network option can be set using the "Home Network" or dlna:music URL but the playing source does not match:
So that shows which network service is in use, but they are not available as sources. Spotify is the default, by the way, I've never used it. It could also be cast:audio when casting.
I can't think of any way round that other than a sort of bodge where "Home Network" is treated as the source for any netService, at least for the purposes of source selection.
That said, if you cast to the Sony it automatically switches to network input even if another input is currently active so maybe it doesn't need to be explicitly listed in the inputs.
The text was updated successfully, but these errors were encountered: