Software WiiM Remote DIY

JirkaT

Member
Joined
Mar 19, 2024
Messages
15
To overcome limit of only 4 preset buttons on WiiM Remote Control could be DIY.

The key is to use available http api:
https://ip_address/httpapi.asp?command=MCUKeyShortClick:<n>
where <n> could be 1 to 12.

You can simply create a web page containing table of 12 buttons, each of them will issue respective http request.

If you put this web page on your available web server situated on your LAN (where your WiiM Amp is also situated), you can use it from mobile phone, even if your mobile is on different network (most probably mobile connected via WiFi while WiiM via Ethernet LAN.

Notes.
Additionally, you can add Mute button as well as Volume adjusting control and even sound source selection.
Tested, screenshot of quick&dirty solution enclosed :)

WiiMswRemote.png
 
Some progress: better look, see enclosed screenshot from mobile (black&gray picture) :)

Nevertheless, I have not been able to get response from the WiiM.
While just for switching Presets it can be ignorred, for next development it is barrier. The problem is how to overcome the CORS problem (security barrier created by browser).

Thus I have switched myself to non browser way using NodeRed (WiiM tab added).
Now I can get response from WiiM, e.g. to see Title etc.
And again, see enclosed screenshot from mobile (the black&green picture) :)

In between, I have found that there many other solutions, e.g. from retired-guy
Using simple IR remote with arduino board: https://github.com/retired-guy/WiiM-Remote-Pi-Pico-W
Displaying what is played: https://github.com/retired-guy/WiiM-Web
 

Attachments

  • Screenshot_20240328-144631_Chrome.jpg
    Screenshot_20240328-144631_Chrome.jpg
    272.8 KB · Views: 33
  • Screenshot_20240328-144641_Chrome.jpg
    Screenshot_20240328-144641_Chrome.jpg
    206.3 KB · Views: 32
Thank you @JirkaT for your research.I followed your link form retired guy and installed the IR remote with arduino board. This IR remote I could integrate in my Logitech Harmony for my wiim Pro. Finally!! Besides Pico W board and remote with IR receiver together are cheaper than the Wiim Remote.

Right now I have the command Play/Pause, Next, Previous from your mentioned link. I tried to add a requests command in main.py with the wiim api for presets you described above, but failed, it only starts the first preset. I will research further, but if you have a fitting micropython script for all wiim commands, it woul help. That would solve the Wiim - Logitech Harmony Problem.
 
Thank you @JirkaT for your research.I followed your link form retired guy and installed the IR remote with arduino board. This IR remote I could integrate in my Logitech Harmony for my wiim Pro. Finally!! Besides Pico W board and remote with IR receiver together are cheaper than the Wiim Remote.

Right now I have the command Play/Pause, Next, Previous from your mentioned link. I tried to add a requests command in main.py with the wiim api for presets you described above, but failed, it only starts the first preset. I will research further, but if you have a fitting micropython script for all wiim commands, it woul help. That would solve the Wiim - Logitech Harmony Problem.
it only starts the first preset
That is strange. You should check once more the command that you are sending. I shall be e.g.
https://ip_address/httpapi.asp?command=MCUKeyShortClick:3
for preset number 3.
No, I do not have micropython script, I am using NodeRed.
 
Back
Top