Implementations
Below a list of implementations from our friends
Below a list of implementations from our friends
https://github.com/bacl/WAM_API_DOC
I used a simple bat file to play with some of the http get functions. It requires wget for Windows that can be downloaded here - > http://www.confusedbycode.com/curl/#downloads
The bat file arp's the network to find my speakers, since they have dynamic IP addresses. My speakers all start with mac address "50"
You want to change the red sections to your specifics, enjoy ..
Control volume of a Samsung Multiroom speaker (M7 / WAM-250) with an IR receiver
https://github.com/egueli/SamsungM7_IR
https://github.com/cosminlupu/samsung-multiroom
https://github.com/cosminlupu/homebridge-samsung-multiroom
https://github.com/balmli/com.samsung.wam
https://github.com/PetterRuud/multiroom.samsung
and/or and older one from Niels
https://github.com/niels511/Homey-Samsung-multiroom
https://github.com/DaveGut/SmartThings_Samsung-WiFi-Audio-Unofficial
Input from Marek about Soundbar - jan 2018
if anyone is interested I created a small ruby wrapper around few HTTP
commands so people don't have to deal with urlencoding and can easily do
things like toggle_mute, volume_up instead of setting hard value etc
See https://github.com/ares/samsung_wam_api if you want to know more
The only thing I'm missing is changing the sound mode (movie/music/sport/...), the original samsung app
can't set it either. Does anyone know whether this can be changed through API?
Is there a firmware available so we could disassemble it perhaps?
https://github.com/saykalik/SamsungSpeakerController
Enrico, march 2020: Thank you for all your work in collecting all the technical information around the Samsung Multiroom speaker. I managed to give my Samsung M7 a new purpose: to use it as a soundbar for my TV (having crappy internal speakers), while also being able to control the speaker completely with the TV remote control, i.e. without fiddling with the app. This required building an electronic circuit based on ESP8266, that receives IR commands and transforms them to API commands.
I've put firmware and schematics in my Github: https://github.com/egueli/SamsungM7_IR
It makes use of Get/SetVolume, Get/SetFunc and Get/SetMute, as well as the Bonjour service to automatically determine the speaker's IP address.
Here are some findings I'd like to share:
If you call SetFunc with function="aux", and the speaker is already in AUX, the speaker will not reply and you'll get a read timeout. You have to call GetFunc first, read that it's not "aux", then call SetFunc with "aux". Not sure if that applies to the other inputs too.
Setting volume below 0 will cause a read timeout.
Use <pwron>on</pwron>in all messages; otherwise the speaker won't respond to commands. Especially if you want to hear from AUX: if the speaker is in standby mode, you won't hear any sound until the command above is sent.
Input from Kalle, with this great input on voice control:
big thanks for all the summary of the API commands. For me the important list is the "command.smali" file.
With the HTTP GET commands it is easy to voice control the speakers with VoxCommando (www.voxcommando.com) by using direct the decoded XML string like
http://speaker_IP:55001/UIC?cmd=<name>SetVolume</name><p type="dec" name="volume" val="2"/>
So now when music is playing (for example from spotify) I can say now "volume up 2 in living room" and the volume in the living room increases by 2 - everything is possible - genius!
I noticed also a "trick" to get the full music info for a song from Spotify - for example to get all information from a song which is playing from Spotify - use:
http://speaker_IP:55001/CPM?cmd=<name>GetRadioInfo</name>
which give you as response: title, artist, album, song-lenght and some other info
If you need more information, let me know.
A complete description will follow in the next days:
1. You need the program VoxCommando (http://voxcommando.com/home/downloads/) - if you do not purchase the program, it works as trial and need a restart after 40 executed commands.
2. You need also a micophone connected to the PC where VoxCommando is installed or as alternative option a Android device with "VoxWav free" or "VoxWav Pro" from Google Playstore (works as WiFi-Microphone with you Android device).
Here is a Demo-Video in german to show you how VoxCommando works (I will record a video with the Samsung Multiroom in action): https://www.youtube.com/watch?v=HhhmWdd02Vc&t=4s
Feel free to ask me per mail: kallevc@googlemail.com
or here in the VoxCommando Forum: http://voxcommando.com/forum/index.php
https://github.com/search?o=desc&q=samsung+multiroom&s=updated&type=Repositories