Reboot WiiM Pro without app or physical access possible?

Rudism

Member
Joined
Sep 25, 2024
Messages
7
I mostly use LMS to play audio on my Wiim Pro. Occasionally LMS loses its connection or ability to see the Wiim Pro, and the only way to get things working again seems to be to reboot the Wiim. I can do this via the Wiim Home app, or by manually unplugging and re-plugging the Wiim Pro's power, but I am wondering if there is a way I can do that from my Linux desktop that doesn't require a separate Android/iOS device or physical access to the Wiim's power cord. I have a Wiim remote, but using the power button only puts the Wiim into sleep mode and doesn't fix the LMS connectivity problem. Also restarting the LMS server doesn't fix it either--rebooting the Wiim seems to be the only fix.

Checking this API doc https://www.wiimhome.com/pdf/HTTP API for WiiM Mini.pdf it seems that there should be a `reboot` command, but it doesn't work for me (the Wiim Pro responds with `unknown command` when calling `https://{ip}/httpapi.asp?command=reboot`). I could possibly run the Windows Wiim Home app using wine, but that's a little complicated to set up and maintain just for the purposes of wanting to occasionally reboot. Anyone got any solution for this? Does the Wiim Home app use some kind of undocumented API that could be manually called somehow to trigger a reboot?
 
Maybe you could power your Wiim through a smart plug controllable from your Linux desktop ?
Clever idea! I'm weary of most "smart" IOT devices since they tend to get abandoned by the manufacturer and pile up all kinds of network vulnerabilities, but I might look into this if it's the only option.
 
I use LMS with WPP, WAP, and WAU and have never seen a problem with the connections. Maybe there's some router configuration problem or poor signal strength? Try an ethernet connection and see if it disconnects. If not, you have a wifi problem.
 
Clever idea! I'm weary of most "smart" IOT devices since they tend to get abandoned by the manufacturer and pile up all kinds of network vulnerabilities, but I might look into this if it's the only option.
Check out plugs which run for example "tasmota", so you don't run into these kind of issues. These provide fully local control. Or zigbee, if you plan to add more smart stuff.

it actually sounds like some other problem like weak wifi signal, though. I'm also using LMS (and several other music servers, since I cannot decide) with several wiim devices and do not have to restart it
 
That one works! Thank you for that link, some interesting looking stuff there.

Re: possible networking/wifi issues--I think my problem could be related to me running LMS in a docker container. It's often correlated to me restarting that server or restarting docker on it, so my guess would some docker-related networking issue with whatever broadcast protocol the server and Wiim are using to find each other. I think something is being triggered on the Wiim's end though, because while it's happening the Wiim shows up in the Android app and on my network just fine, it just doesn't show up in LMS until it gets rebooted. But now I have an easy way to do that with a simple curl call so my life has been simplified.

I might try some of the other commands from that repo next time it happens, like command=Squeezelite:discover looks very interesting.
 
Back
Top