Hi, I'm not sure which category this falls into. I was just looking into a question here.
The user has a "Generic Component Audio Zone" device which supports MediaInputSource capability.
According to the docs, this supports the following attribute and command:
supportedInputs - JSON_OBJECT
setInputSource(inputName) - inputName required (STRING) - Input to select
I have an example of this JSON_OBJECT here but it's not JSON that I can tell.
{1={code=1, name=Radio}, 2={code=2, name=Kodi}, 3={code=3, name=Great Box}, 4={code=4, name=Master Box}, 5={code=5, name=Porch Box}, 6={code=6, name=White Echo}}
I'm looking for some way to parse this attribute so I can show a list of inputs to change to and then send one to the setInputSource
command.
Is this same format used for all other MediaInputSource capabilities? Also, am I passing in the code
or the name
to the command?
thanks!