WiiM Light - No Music Services

Vandi

Member
Joined
Aug 28, 2024
Messages
13
I've got a WiiM Light in my daughters room as an alarm clock and trying to figure out how to get it to show anything other than "sounds" and "radio" in the WiiM Light app alarm setup. I've setup Tidal in the WiiM Home app for her, and I can see things that are playing from Tidal on WiiM Home from the WiiM light app but no joy getting Tidal to show up in the WiiM Light app to setup an alarm. Anyone have any luck with this?

Instructions from WiiM: https://faq4light.wiimhome.com/support/solutions/articles/72000602796-setting-up-an-alarm

Screenshot of my WiiM Light App and what I should be seeing per the documentation are attached.
 

Attachments

  • IMG_4514.PNG
    IMG_4514.PNG
    1.1 MB · Views: 8
  • Screenshot 2024-09-25 at 4.57.37 PM.png
    Screenshot 2024-09-25 at 4.57.37 PM.png
    153.2 KB · Views: 8
Hi, great to hear you picked up our WiiM Wake-up Light. The feature you're asking about isn't supported yet, but it is definitely one we are looking to implement, but we don't have a ETA on it yet. Hope your daughter can use the current sounds or radios stations for now.
 
Hi, great to hear you picked up our WiiM Wake-up Light. The feature you're asking about isn't supported yet, but it is definitely one we are looking to implement, but we don't have a ETA on it yet. Hope your daughter can use the current sounds or radios stations for now.
There are literally instructions in the documentation that say “or your favorite albums from your subscribed music stations”. That is literally why I bought the WiiM light for her. Very very disappointing that I can’t trust the advertised feature-set (screenshot attached). I thought you guys were better than that.IMG_4526.jpeg
 
I ended up giving my WiiM light away. In terms of updates and response to issues, the Light seems like a forgotten stepchild. It pains me to say that as I really like their other products (have a Mini, Pro, Pro Plus and Ultra....)
 
Same here, I asked support about using Spotify as an alarm, they told me it is not supported, although it's explicitly written on the product page!
It seems only amazon and alexa are actually supported.
Even radios, you only have access to a limited selection of popular or local stations, and not the full tunein catalog

It really feels like an half-finished product :(
 
Same thing with the light part : you can't customize it when setting up an alarm, it's sunrise or nothing.

And when playing with the color picker, you can tell it's "fake" : everything except the outer circle renders as whashed-out white.

For instance, good luck trying to reproduce the "salmon" color, even though the UI gives you the location on the color picker.

Even when setting the color using the httpapi, you get washed-out white unless you set the exact same values of red, green and blue than in the color picker
(something like curl -k -X POST 'https://192.168.1.42/httpapi.asp?path=wakeuplight' -d command=setLightDisplayColor:ff9f7a)
 
Last edited:
But I actually managed to work around it, "emulating" the alarm using a script that I launch from my Raspberry Pi NAS.
First, use the Wiim Home app to set the album or playlist you want to use as an alarm clock.
Then, this script can be used to trigger the "alarm" (of course, no alarm is defined in the Wiim Light app then):

Bash:
#!/bin/bash

ip_addr=192.168.1.42
brightness=85
volume=32
preset_nr=1

sunrise=$((${1:-10} * 60))
duration=$((${2:-60} * 60))

light_on()
{
    # Turn on light to mode 2 (Night) and make sure brightness is set
    curl -k -X POST "https://$ip_addr/httpapi.asp?path=wakeuplight" -d command=enterLightMode:2:speed:10:duration:1:style:1
    sleep 5
    curl -k "https://$ip_addr/httpapi.asp?command=setLightBrightness:$brightness"
}

music_on()
{
    # Start playlist at specified volume in shuffle
    curl -k "https://$ip_addr/httpapi.asp?command=MCUKeyShortClick:$preset_nr"
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:vol:$volume"
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:loopmode:3"
}

alarm_off()
{
    # Pause music and turn off light
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:pause"
    curl -k -X POST "https://$ip_addr/httpapi.asp?path=wakeuplight" -d command=setLightOn:0
}

light_on &
sleep $sunrise
music_on &
sleep $duration
alarm_off
 
But I actually managed to work around it, "emulating" the alarm using a script that I launch from my Raspberry Pi NAS.
First, use the Wiim Home app to set the album or playlist you want to use as an alarm clock.
Then, this script can be used to trigger the "alarm" (of course, no alarm is defined in the Wiim Light app then):

Bash:
#!/bin/bash

ip_addr=192.168.1.42
brightness=85
volume=32
preset_nr=1

sunrise=$((${1:-10} * 60))
duration=$((${2:-60} * 60))

light_on()
{
    # Turn on light to mode 2 (Night) and make sure brightness is set
    curl -k -X POST "https://$ip_addr/httpapi.asp?path=wakeuplight" -d command=enterLightMode:2:speed:10:duration:1:style:1
    sleep 5
    curl -k "https://$ip_addr/httpapi.asp?command=setLightBrightness:$brightness"
}

music_on()
{
    # Start playlist at specified volume in shuffle
    curl -k "https://$ip_addr/httpapi.asp?command=MCUKeyShortClick:$preset_nr"
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:vol:$volume"
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:loopmode:3"
}

alarm_off()
{
    # Pause music and turn off light
    curl -k "https://$ip_addr/httpapi.asp?command=setPlayerCmd:pause"
    curl -k -X POST "https://$ip_addr/httpapi.asp?path=wakeuplight" -d command=setLightOn:0
}

light_on &
sleep $sunrise
music_on &
sleep $duration
alarm_off
Very cool. I got it to almost work by setting up the playlist alarm from alexa (unfortunately it seems to randomly pick a playlist). With the alexa method unfortunately it doesn't turn on the light even if it is configured in the app.

Going to see what I can adapt from your script to use in Home Assistant, great idea.
 
FYI, I got these partly from https://www.wiimhome.com/pdf/HTTP API for WiiM Products.pdf, and partly from setting up a mitmproxy instance as a proxy on my smartphone, then playing with the app to capture the requests (since the Wiim devices use self-signed certificates, it's not mandatory to patch the app, but mitmproxy or mitmweb must be launched with --ssl-insecure).

The pdf doc is mostly useful for media control, which normally goes through uPnP AV, and therefore not through the proxy.
 
Back
Top