[Release] Samsung Multiroom WiFi Audio

Type: The Group Bulb Dimmer-2.1 is the correct dimmer type. The only other one is dated.

Refresh Devices. The Group driver does not include the capability Refresh. The HE folk probably thought there was no need. I would contact support to add this function.

Work-around. Within the rule, send the refresh only to the tv set (not needed for the MS-650).

Thanks for that!

I tried to refresh only the tv but still does not work.

Although the TV and speakers are off, Entertainment Center still shows ON, below is the rule:

Looking at bravia driver code:
Refresh does a Poll and that is all. So both are not necessary.
On command looks at latest poll and if still polling (TV Asleep), then will send the WOL command.
Off command assumes that the TV is not asleep. May not be a great assumption.

Suggestion:
Poll
Delay 1 sec
Poll

This will poll for status. On first try, if LAN is asleep, the value will be "polling", otherwise on/off state. The second will set the TV to Off and not execute the Poll.

I consider this a minor flaw in the driver (never anticipating the rule machine operation).

If you are suggesting to replace
refresh: Sony Android TV
Poll: Sony Android TV

With

Poll
Delay 1 sec
Poll

Will try that today and get back to you..

Hi @djgutheinz,

I've been using this app and driver ever since you released it :slight_smile: Still use it every single day at some point or another, so a massive thank you firstly.

Secondly, is there any way to just play a URL directly? My favourite radio station has moved from Tunein, and I've found their new URL, but this never shows up in the Playing section of the speaker, and if I attempt to use it through the play track, it plays for a little and then stops.

The URL is https://streams.radio.co/se1a320b47/listen. I can get it playing if I use a direct command to the speaker but I'd rather have a more user friendly way of doing it.

The one I use is
http://192.168.1.171:55001/UIC?cmd=%3Cname%3ESetUrlPlayback%3C/name%3E%3Cp%20type=%22cdata%22%20name=%22url%22%20val=%22empty%22%3E%3C!%5bCDATA%5bhttps://streams.radio.co/se1a320b47/listen%5d%5d%3E%3C/p%3E%3Cp%20type=%22dec%22%20name=%22buffersize%22%20val=%220%22/%3E%3Cp%20type=%22dec%22%20name=%22seektime%22%20val=%220%22/%3E%3Cp%20type=%22dec%22%20name=%22resume%22%20val=%221%22/%3E

Any help here much appreciated :+1:

Cheers
Roy

2 Likes

I will look into it next week. (Will need to take speakers out or storage.) My thinking is a URL version of the current channel preset implementation (i.e., creatURLStation, playURLStation). Does that sound reasonable?

1 Like

Sounds perfect to me. Iā€™m so used to just pushing a switch on my dash, and the magic happens :wink:

Now you have me intrigued. What did you replace your Samsung speakers with?

I went with a Amazon Echo Studio. Excellent audio, can play my selected stations and playlists, and connects to my TV. It also has bluetooth input (never used on the R1's nor here). With Echo Speaks is a also a great TTS Speaker. Fits my home automation schema where the primary control is via voice through Alexa with Hubitat the core (integrating the devices) and a backup in-case the internet or Amazon's AWS are down.

I still have the soundbar and two R1 speakers (with stands) in storage. Wanted to be able to do any changes necessary and I like the idea of url Presets where a person can set up a URL manually then create the presets for rapid call via dashboard or rule machine.

1 Like

Hi, Multiroom users. I have a totally OT question unrelated to the driver @djgutheinz has given us. In addition to TTS through HE, I also use five of the R1's for surround sound with my Samsung "H" 2014 television.

About once every week, the TV loses connection to the speakers and reverts to its internal speakers. I don't get any notice or realize it has happened until I hear the sound is inferior.

Does anyone know if there is some secret to force the TV to keep the Multiroom configuration? Or, perhaps, what causes it to forget? Sorry for the interruption.

Updated the application and driver to support your needs.
Update Notes:

  • To update, modify and change the code, the run Save Preferences
  • To add preset
    • Use Play Track to connect to the URL. This can also be used to simply play the URL; however, the presets add an easier day-to-day setup.
    • Use Url Preset Create to add the preset (can also change preset name).
    • Use Url Preset Play to play an already defined URL.
  • Function of Note:
    • Stop: Stops the url playback and restores the player states
    • Pause / Play: Pause and play url as epxected.
    • Other Functions: Some functions do not work with url playback and return a message instead. Expampes: Repeat, Shuffle, Next Track, Previous Track.

In Hubitat Package Manager. Also available at:

2 Likes

Many thanks for this Dave, this is awesome!!

I'll get onto it as soon as I can! My office days will be much happier again :smiley:

Thanks again :+1:
Roy

Hi again. Just one question, is there any way to create a preset from the URL I'm using?
I'm guessing not, as I saw this in the log.

[dev:3824](http://192.168.1.26/logs#dev3824)2020-06-10 18:14:41.363 [warn](http://192.168.1.26/device/edit/3824)Office Speaker 3.2.0 presetCreate: Can't create from media from source!

    [dev:3824](http://192.168.1.26/logs#dev3824)2020-06-10 18:14:41.338 [info](http://192.168.1.26/device/edit/3824)Office Speaker 3.2.0 extractData: method = CurrentFunc, data = wificp

    [dev:3824](http://192.168.1.26/logs#dev3824)2020-06-10 18:14:25.170 [info](http://192.168.1.26/device/edit/3824)Office Speaker 3.2.0 extractData: method = UrlPlayback, data = https://streams.radio.co/se1a320b47/listen00

    [dev:3824](http://192.168.1.26/logs#dev3824)2020-06-10 18:14:06.803 [info](http://192.168.1.26/device/edit/3824)Office Speaker 3.2.0 playTrack: attempting to start play of https://streams.radio.co/se1a320b47/listen

The NEW function urlPresetCreate and urlPresetPlay are what you need to do. The presetCreate is only for conventional channels. This is because the urlPlayback capability in the speakers was an add-on (to support the notification functions) and they never integrated the playback into the devices internal data.

To create the preset:

  • Make sure you have run Save Preferences after you installed the updates.
  • Start with playTrack and get the preset playing.
  • Go to urlPresetCreate and enter an number and short name
  • To play afterwards, just select urlPresetPlay.

An interesting sidelight. While playing a url, if I change the speaker input to speaker, the url continues to play. It is intended to always play over whatever mode the speaker is in.

1 Like

I also noticed this when using the command URL to play it.
I couldn't use the tap on the top to stop it playing either, I've been having to unplug it lol.

I tried to delete my preset, and followed your instruction above, but its still showing preset2 as the description, even though the log looks fine.

image

Any tips?

You need to do the Save Preferences on the devices page. That updates the states to accept the URL Playback data.

The stop command will stop the playback and clear the data cache.

1 Like

Below are the attributes and states after I set up Music del Mar as urlPreset one and then started using urlPlayPreset:

image

Yes this was the first thing I did.

It did not reflect in the data you showed. Look above. At a minimum, the data in my states should show. (try refreshing your browser).