Wiim AMP switch mode API Optical

It looks like the HTTP API documentation has still not been updated to reflect devices other than the Mini. Did you simply guess the mode string to be hdmi (all lower case?) and it worked?

Did you try both, http and https requests? Probably shouldn't make a difference if your user agent doesn't care for the invalid certificate when switching to line-in or hdmi, but well ... who knows. The HTTP API documentation inconsistently describes http and https requests, probably for no special reason. The URL looks just right.
 
I note that in a previous post someone said that 'hdmi' returned ok, but did not work, as the switchmode parameter is case sensitive, and needed to be 'HDMI' instead. (Which your post shows you already knew.)
However, the doco does show that it's 'optical', all lowercase.
Did you try variations, just in case?
 
i tried Optical and OPTICAL both without success. I found another thread on HDMI and thats why I knew it had to be in capitals.
 
Last edited:
When i use that exact prompt the input changes to WIFI instead of intended optical.
 
Looks like a bug in the (undocumented) WiiM Amp firmware then.

Probably worth filing a ticket.
 
I would expect the version of the WiiM Home App to have a similar influence on the HTTP API as new batteries for the remote. :)

It should all be part of the Amp's firmware.
 
Back
Top