[Release] Samsung Multiroom WiFi Audio

Updated driver to version 3.2.2.
Changes;

  1. Added function "kickStartQueue" that can be executed on device page or in rules.
  2. Changed logic in add to queue to call previous function on adding element to queue.
  3. Run kickStartQueue sixty seconds after last queue entry is processed.

Update:

This brings to mind yet another addition (no one really needs it). A function to stop the queue playing until you get home. Then kickStartQueue to play all messages queue while you were gone. Could add the time to the queue messages while in this mode.

1 Like

Thanks

1 Like

I think this is a bad side effect to the auto que resetting.... I an announcement comes through while a station is playing it never resumes.

Yeah. It probably does not have the reset data. Did your queue hang again? (sigh)

Nope -- just doesn't resume after the TTS announcement.

did not change that part of code. Will look at this weekend.

1 Like

Thanks

Well que is still getting stuck

playQueue : [{duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/91808a96264b87163cd989cd9d994447.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/d640c5bf93d72206634314cfe6f6072a.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/b2873e36b772a9f502fd09d6dd7f4b8b.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/b2873e36b772a9f502fd09d6dd7f4b8b.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/91808a96264b87163cd989cd9d994447.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/7d09c5b2fe9cba4c95177fbef7da8331.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/7c91b9ac50fa7eb286707ffb125433b2.mp3, resumePlay=false, notificationVolume=3}, {duration=5, requestVolume=40, trackUri=http://192.168.0.55/tts/32dbc25ec5d8a562de8e6a6e111a6c8e.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/8b3b4e70791ffaefe60208edc83cd319.mp3, resumePlay=false, notificationVolume=3}, {duration=5, requestVolume=40, trackUri=http://192.168.0.55/tts/536f3e2357eb937df2292cea27dcc129.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/65b44245e927017d7dd860fe9a5fff1b.mp3, resumePlay=false, notificationVolume=3}, {duration=5, requestVolume=40, trackUri=http://192.168.0.55/tts/32dbc25ec5d8a562de8e6a6e111a6c8e.mp3, resumePlay=false, notificationVolume=3}, {duration=5, requestVolume=40, trackUri=http://192.168.0.55/tts/536f3e2357eb937df2292cea27dcc129.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/91808a96264b87163cd989cd9d994447.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/d640c5bf93d72206634314cfe6f6072a.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/b2873e36b772a9f502fd09d6dd7f4b8b.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/8b3b4e70791ffaefe60208edc83cd319.mp3, resumePlay=false, notificationVolume=3}, {duration=4, requestVolume=40, trackUri=http://192.168.0.55/tts/d640c5bf93d72206634314cfe6f6072a.mp3, resumePlay=false, notificationVolume=3}]

And resume play is always false, which gives me a clue and a question:

Question: What are you using to call the text?

playText
playTextAndRestore
playTextAndResume
speak

?????

Speak

Driver Update. The driver has been updated to version 3.3.3. Location is same. Make sure the version is 3.3.3.

  • Issue: hanging queue.

  • Cause: attribute trackData used in queue recovery was being written with incorrect data for URL playback. (Url playback information can not be extracted from device. It is set when URL is started

  • Corrective Actions:

    • Updated setTrackDescription to NOT run when URL is playing
    • Updated Refresh to not run getSource nor setTrackDescription whe URL is playing
    • Simplified recovery data to recoveryVolume only. All other data will be captured from attributes at time of recovery.
    • Fixed kickQueue to set the state notificationPlaying to false if queue is empty.

Link: https://raw.githubusercontent.com/DaveGut/HubitatActive/master/SamsungMultiroom/MultiRoomDriver.groovy

2 Likes

Eureka!! That seems to have fixed the quing issue.

1 Like

10 fingers crossed here. Kind of hard to type.

1 Like

Good morning. I was very intrigued when I saw your post about presets. I use this same app with my Samsung R1 and love it, however I only use it for simple TTS notifications. I like to listen to Fox News and saw that link in your post, it works well when I run it in my browser but for the life of me I can't wrap my head around how to insert it into the app. Any help (instructions) will be greatly appreciated.

You do not need the URL to play Fox News Radio.

  • Open the Samsung Multiroom App
  • Go to iHeartRadio
  • Select Discover
  • Search "Fox News Radio"
  • Select Live Stations
  • Select Fox News Radio
  • Open the Hubitat R1 Device
  • Select Refresh and wait one minute for the data to update.
  • go down to Preset Create
  • Enter a number (1 - 6) and execute the function.

From then on, selecting Play Preset and the number will play fox news.

As far as playing direct, it does not like the www format the browser uses at all (immediate failure). For radio.com, the format is "https://streams.radio.co/STATION ID/listen. If you can get the fox news station id, the you are set to go.

Does someone (@Evilborg) know how to get the station URL?

2 Likes

Thanks! I'll give it a try

Does this work with Pandora or any of the other streaming services?

Yes. But be aware, this integration is for the Samsung Multiroom series of speaker and soundbars. The device MUST be controlled via the Samsung Multiroom Application. It will not work on newer or older Samsung speakers.

I have tested on Tune-In, Pandora, iHeartRadio, and 8tracks. I have not tested (due to required subscription cost) on other services - but they may work.

The button feature is my favorite. Using a button device and knowing the button number for a preset, you can cause preset music to play using Rule Machine.

1 Like

I am using the R1's on Samsung multiroom

I was not able to add a preset for Pandora though in Hubitat.
Was thinking it would be cool to add a preset to start pandora when I turn on my gym light.
***** NVMND***** Apparently I also had to refresh the device page All good now

See the above. I just tested for 60's Folk and it worked fine.

2 Likes