Is there possible to add support for Samsungs Multiroom speakers? Just to get the opportunity to stop the music when you leave home would be great!
I also have Samsung speakers where I could adjust volume but cannot turn off/on. I reached out to Samsung for any API documentation so I could forward they respond āno documentationā.
The work-around is, if you incline, to pick up the now $25 TP-Link plug (or even DIY cheapper plug) and to turn off using the plug.
well if you can implement it - I think all information can be found here:
WAM_API_DOC/API_Methods.md at master Ā· bacl/WAM_API_DOC Ā· GitHub - I did look at the commands and have tested them via browser and they seem to work perfectly - just no ability to put this into code to build the required component ā¦
hmmm ā¦ just found some code here Samsung Multiroom - Console client Ā· GitHub
IĀ“m not capable to put this in code either IĀ“m afraid, that is way above my knowledge. What is the code you found, what can it do? Can it be implemented in HASS?
well its a shell script at the moment just follow the link but I have just found even more details ā¦ need to see whats possible with it though ā¦
Honestly I donāt know anything about shell scriptās either.
Let us know what you have found when you have checked it out
Is anyone working on this?
By default - without implementing anything - I can see them in the log as
media_player.samsung_wireless_audio_spkwam7500
with the states āonā and āoffā.
Unfortunately not.
I have a couple of Samsung speakers and at the momenent Iām just using a simple script to play/stop radio streams at a set volume.
I see that my speakers are currently auto discovered by the samsungtv mediaplayer component, and show up in HASS. Unfortunately the samsungtv component does not provide the necessary controls for the wireless speakers so it is pretty useless for this purpose. The samsungtv autodiscovery should probably be rewritten to exclude wireless speakers.
Looking at the WAM_API documentation and some of the current mediaplayer sources, it would seem like a relatively easy task to implement support for these speakers in HASS.
My programming skills are limitied, even more so my python, and I have no real knowledge of HASS integration. However, I do have working python code for speaker discovery and some basic controls based on the WAM_API documentation.
If someone with more python/HASS skills would be interested in looking at this, I would be happy to help out.
This is my problem as well. Not enough python skills.
Would you share your script? Iād love to use it to play some tunes in the morning or when motion detected.
Cheers
At the moment Iām just using this:
And define it as different āshell_commandsā which is I use in automations.
How can I add a custom tune? I managed to interact and play the standard-tunes. But Iād like to add a custom radio station.
This looks really interesting, but I have never worked with this before. How do you add it and how do you use it with automations?
Download the script and execute it:
./MultiRoom.sh search
This gives you the IP. In the script you have some example commands.
Any examples of automations to share?
You will have to define the stations as favorites in āTuneInā. Then you can play them from the script as fav1/2/3 and radio1/2/3 respectively.
Example configuration:
shell_command:
r1_play_fav1_v8: /usr/local/bin/multiroom <ip address/host name> fav1 8
r1_stop: /usr/local/bin/multiroom <ip address/host name> stop
r1_vol11: /usr/local/bin/multiroom <ip address/host name> volume 11
automation:
- alias: Radio on in the morning
trigger:
- platform: time
at: '06:20:30'
- condition: time
weekday:
- mon
- tue
- wed
- thu
- fri
action:
- service: shell_command.r1_play_fav1_v8
There might be errors in the above, but at least it will give you an idea.
Thanks, I am starting to get this
Is there any way yo control a group of speakers in multiroom mode?
I donāt know. Maybe hereās something for you? Sorry I havenāt looked into the code that deeply. Which command do you want/need?
Cheers