Bose SoundTouch Binding

Hi @marvkis,
I think a skype call would be best to proceed fast.
We can then talk in german which will make it even faster.

I already thought about several possibilities.

What do you think?

Bye,
Christian

Hi @xianlukas,

a conference call probably would be a good idea, but it could be difficult to find a appointment between us three - @tiknx, what do you think?

Currently I donā€™t have an Skype account (Not any more since it was bought by an Company doing strange things with itā€¦) - But I could initiate a Teamviewer conference - would this also be okay?

Bye,
Chris

Call me oldschool, but i neither have Skype, nor i have a headset. Email would be the best for me

Hi @marvkis and @tiknx,
teamviewer would also be ok.
anyhow we will find a way.

It seems like I am not able to pm to you. The functionality as not available for me as described on the first search result.

I will write you an email.

Bye,
Christian

Hello
I will use the binding for the new sound touch 300 soundbar.
Is the soundbar (soundtouch 300) supported?

I get the following ERROR in connection with the soundtouch 300:

2017-03-23 11:47:39.624 [ERROR] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unknown SourceType: PRODUCT - needs to be defined!

Thank you very much.
crax

Hi @crax,

i wasnā€™t aware that there is a soundbar now. The SourceType PRODUCT seems to map to something specific, and PRODUCT itself dosnā€™t seem to be very meaningful by itā€™s name. Might it be the external HDMI-Port? What iā€™ve seen from the SB 300 spec there is only one HDMI to the TV and one input from an other device. Or are there more inputs?

It would be create if you enable debugging for the plugin, do some actions (like selecting the TV or the external HDMI as source) and send us the debugging output. Maybe with annotations what action you did to the related log statements.
Logging can easily activated during runtime by following entering commands on the CLI:

log:set DEBUG org.openhab.binding.bosesoundtouch
log:tail org.openhab.binding.bosesoundtouch

When done press CTRL-C and set world back to normality

log:set INFO org.openhab.binding.bosesoundtouch

When we have the details we try to adopt the plugin, but give use some time :wink:

Bye,
Chris

Hi marvkis,

i set the log level to DEBUGā€¦ here is my result:

13:18:14.879 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: handleCommand(bosesoundtouch:device:9884E3B0F11B:power, ON);
13:18:14.940 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<?xml version="1.0" encoding="UTF-8" ?><msg><header deviceID="9884E3B0F11B" url="key" method="POST"><request requestID="0" msgType="RESPONSE"><info mainNode="keyPress" type="new" /></request></header><body><status>/key</status></body></msg>")
13:18:14.947 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<?xml version="1.0" encoding="UTF-8" ?><msg><header deviceID="9884E3B0F11B" url="key" method="POST"><request requestID="0" msgType="RESPONSE"><info mainNode="keyRelease" type="new" /></request></header><body><status>/key</status></body></msg>")
13:18:15.236 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<updates deviceID="9884E3B0F11B"><nowSelectionUpdated><preset id="0"><ContentItem unusedField="0" source="PRODUCT" sourceAccount="HDMI_1" isPresetable="false" /></preset></nowSelectionUpdated></updates>")
13:18:15.243 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>")
13:18:15.248 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: audiospeakerattributeandsetting
13:18:15.251 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>")
13:18:15.257 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: audiospeakerattributeandsetting
13:18:15.296 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<userActivityUpdate deviceID="9884E3B0F11B" />")
13:18:15.302 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during INIT: userActivityUpdate
13:18:15.345 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<updates deviceID="9884E3B0F11B"><nowPlayingUpdated><nowPlaying deviceID="9884E3B0F11B" source="PRODUCT" sourceAccount="HDMI_1"><ContentItem unusedField="0" source="PRODUCT" sourceAccount="HDMI_1" isPresetable="false" /><art artImageStatus="SHOW_DEFAULT_IMAGE" /><playStatus>PLAY_STATE</playStatus></nowPlaying></nowPlayingUpdated></updates>")
13:18:15.370 [ERROR] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unknown SourceType: PRODUCT - needs to be defined!
13:18:15.391 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText("<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>")
13:18:15.396 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: audiospeakerattributeandsetting

Here the log with the same entering command and with the new plugin:

14:31:22.087 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: handleCommand(bosesoundtouch:device:9884E3B0F11B:power, ON);
14:31:22.132 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<?xml version="1.0" encoding="UTF-8" ?><msg><header deviceID="9884E3B0F11B" url="key" method="POST"><request requestID="0" msgType="RESPONSE"><info mainNode="keyPress" type="new" /></request></header><body><status>/key</status></body></msg>')
14:31:22.151 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<?xml version="1.0" encoding="UTF-8" ?><msg><header deviceID="9884E3B0F11B" url="key" method="POST"><request requestID="0" msgType="RESPONSE"><info mainNode="keyRelease" type="new" /></request></header><body><status>/key</status></body></msg>')
14:31:22.416 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<updates deviceID="9884E3B0F11B"><nowSelectionUpdated><preset id="0"><ContentItem unusedField="0" source="PRODUCT" sourceAccount="HDMI_1" isPresetable="false" /></preset></nowSelectionUpdated></updates>')
14:31:22.436 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>')
14:31:22.443 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: 'audiospeakerattributeandsetting'
14:31:22.446 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>')
14:31:22.453 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: 'audiospeakerattributeandsetting'
14:31:22.489 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<userActivityUpdate deviceID="9884E3B0F11B" />')
14:31:22.494 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during INIT: 'userActivityUpdate'
14:31:22.532 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<updates deviceID="9884E3B0F11B"><nowPlayingUpdated><nowPlaying deviceID="9884E3B0F11B" source="PRODUCT" sourceAccount="HDMI_1"><ContentItem unusedField="0" source="PRODUCT" sourceAccount="HDMI_1" isPresetable="false" /><art artImageStatus="SHOW_DEFAULT_IMAGE" /><playStatus>PLAY_STATE</playStatus></nowPlaying></nowPlayingUpdated></updates>')
14:31:22.696 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<updates deviceID='9884E3B0F11B'><audiospeakerattributeandsetting><audiospeakerattributeandsetting><rear available="false" active="false" wireless="false" /><subwoofer01 available="false" active="false" wireless="false" /></audiospeakerattributeandsetting></audiospeakerattributeandsetting></updates>')
14:31:22.701 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during Updates: 'audiospeakerattributeandsetting'

greetz
crax

hi @crax
Sorry for the long time you had to wait.

It would be nice if you could post the result of

http://ip_of_soundtouch:8090/sources

this perhaps will help us too

Hi @tiknx
no problem :wink:

here me result:

<sources deviceID="9884E3B0F11B">
<sourceItem source="STORED_MUSIC" sourceAccount="**********" status="READY" isLocal="false">QNAP</sourceItem>
<sourceItem source="INTERNET_RADIO" status="READY" isLocal="false"/>
<sourceItem source="PRODUCT" sourceAccount="TV" status="READY" isLocal="true">TV</sourceItem>
<sourceItem source="PRODUCT" sourceAccount="HDMI_1" status="READY" isLocal="true">HDMI_1</sourceItem><sourceItem source="QPLAY" sourceAccount="QPlay1UserName" status="UNAVAILABLE" isLocal="false">QPlay1UserName</sourceItem>
<sourceItem source="QPLAY" sourceAccount="QPlay2UserName" status="UNAVAILABLE" isLocal="false">QPlay2UserName</sourceItem>
<sourceItem source="UPNP" sourceAccount="UPnPUserName" status="UNAVAILABLE" isLocal="false">UPnPUserName</sourceItem>
<sourceItem source="STORED_MUSIC_MEDIA_RENDERER" sourceAccount="StoredMusicUserName" status="UNAVAILABLE" isLocal="false">StoredMusicUserName</sourceItem>
<sourceItem source="NOTIFICATION" status="UNAVAILABLE" isLocal="false"/>
<sourceItem source="BLUETOOTH" status="READY" isLocal="true"/>
<sourceItem source="SPOTIFY" sourceAccount="*****" status="READY" isLocal="false">*****</sourceItem>
<sourceItem source="SPOTIFY" status="UNAVAILABLE" isLocal="false"/></sources>

Hi @crax

i have just updated the 300 version in the dist repo. Try it and let us know if it works

Hi @tiknx
here is the log form the KARAF console.

23:11:11.959 [ERROR] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unknown SourceType: 'INVALID_SOURCE' - needs to be defined!
23:12:15.521 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:15.522 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:15.525 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:15.528 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:15.903 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:15.905 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:15.906 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:15.908 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:16.074 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:16.078 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:16.081 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:16.084 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:16.184 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:16.186 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:16.187 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:16.189 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:16.645 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:16.647 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:16.649 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:16.650 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:17.315 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:17.317 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:17.318 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:17.320 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:20.004 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:12:20.010 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:20.013 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:20.016 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:20.019 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:12:49.599 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:12:49.605 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:12:49.607 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:12:49.610 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:12:49.612 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:13:19.601 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:13:19.609 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:13:19.612 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:13:19.614 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:13:19.616 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:13:49.611 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:13:49.620 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:13:49.623 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:13:49.626 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:13:49.629 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:14:19.602 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:14:19.610 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:14:19.613 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:14:19.615 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:14:19.617 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:14:49.638 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:14:49.647 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:14:49.651 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:14:49.654 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:14:49.658 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:15:05.263 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'favoriteEnabled'
23:15:05.271 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'shuffleSetting'
23:15:05.274 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'repeatSetting'
23:15:05.277 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'streamType'
23:15:05.279 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during NowPlaying: 'trackID'
23:15:25.829 [ERROR] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unknown SourceType: 'INVALID_SOURCE' - needs to be defined!
23:21:37.252 [DEBUG] [dtouch.handler.BoseSoundTouchHandler] - SoundTouch 300: onWebSocketText('<userActivityUpdate deviceID="9884E3B0F11B" />')
23:21:37.265 [WARN ] [undtouch.internal.XMLResponseHandler] - SoundTouch 300: Unhandled XML entity during INIT: 'userActivityUpdate'

And here is my new result from the browser:
(http://ip_of_soundtouch:8090/sources)

<sources deviceID="9884E3B0F11B">
<sourceItem source="STORED_MUSIC" sourceAccount="4d696e69-444c-164e-9d41-00089bcf9544/0" status="READY" isLocal="false">QNAP</sourceItem>
<sourceItem source="INTERNET_RADIO" status="READY" isLocal="false"/>
<sourceItem source="PRODUCT" sourceAccount="TV" status="READY" isLocal="true">TV</sourceItem>
<sourceItem source="PRODUCT" sourceAccount="HDMI_1" status="READY" isLocal="true">HDMI_1</sourceItem>
<sourceItem source="QPLAY" sourceAccount="QPlay1UserName" status="UNAVAILABLE" isLocal="false">QPlay1UserName</sourceItem>
<sourceItem source="QPLAY" sourceAccount="QPlay2UserName" status="UNAVAILABLE" isLocal="false">QPlay2UserName</sourceItem>
<sourceItem source="UPNP" sourceAccount="UPnPUserName" status="UNAVAILABLE" isLocal="false">UPnPUserName</sourceItem>
<sourceItem source="STORED_MUSIC_MEDIA_RENDERER" sourceAccount="StoredMusicUserName" status="UNAVAILABLE" isLocal="false">StoredMusicUserName</sourceItem>
<sourceItem source="NOTIFICATION" status="UNAVAILABLE" isLocal="false"/>
<sourceItem source="BLUETOOTH" status="READY" isLocal="true"/>
<sourceItem source="SPOTIFY" sourceAccount="******" status="READY" isLocal="false">*******</sourceItem>
<sourceItem source="SPOTIFY" status="UNAVAILABLE" isLocal="false"/>
</sources>

I dont need the sources any more thank you. They are always the same.
How did you try to switch the Source? With the binding or with the remote, or on the Soundtouch itself?
Would be nice to see logs of all of them.

An please turn on tracing when logging

log:set TRACE org.openhab.binding.bosesoundtouch
log:tail org.openhab.binding.bosesoundtouch

I have just updated your test version.
Please try it. If it works iā€™m and propably youā€™r happy.
If not, please post the trace log for all possibilities: RemoteControl, SoundBar 300, openhab

Gentlemen,

First a sincere ā€œthank youā€ for making this possible. As I am the happy owner of a SoundTouch 300 as well, I decided to try to install this binding and give it a quick try. I took it from a link posted by Thomas on February 11th, I hope that is still the most recent version

I copied this to my addons folder, retarted OH2 (I am on the stable version), and sure enough my soundtouch showed up in the inbox. Configuring it was easy, and so far I played a little with it. A few first observations:

  • When I switch it on from OH2, my TV (a fairly old Sony, connected via HDMI with the SoundTouch) also switches on and the SoundTouch starts playing the TV sound

  • I switched it off, started the Spotify app on my phone and let it play via the SoundTouch. OH2 recognizes it switched on, and I can use the controls to go forward/backward in the playlist, as well as pause/continue. The volume control works, and much more subtle than the spotify app, which for me is a big plus :).

  • In the logging I see a lot of warnings, at first similar as posted by Daniel

So far that is all I did, obviously it would be even more awesome if somehow OH2 could display the song/source currently being played. From the warmings I deduct that that is not (yet) possible. It would make for example. a HabPanel widget very cool.

I typed this just to let you know I am playing with it. If there is anything I could contribute, like doing more tests, please let me know. Best regards, Peter

Hi Peter,

Iā€™m not really sure yet. Does the HDMI work? Neither Chris nor i have a 300 so we just can try.
Is the selected Source ProductTV or ProductHDMI?

Does it work by switching the source from OpenHAB, or only by switching with the remote control?

Hi Thomas,

I am still familiarizing myself with the 300, so I am not yet sure about all the options. In my setup, it is connected wired to my my main router. I initially tried using WiFi, could not get it too work, not even with the help of the Bose forum where it was stated my problems would dissappear when doing a factory reset, they did not, but as there was a UTP cable available, I used it, likely it also gives more reliability then WiFi.

The soundtouch is connected to my TV via HDMI, and they seem to interact nicely with each other. When switching on my TV, the soundbar also switches on and plays the TV sound, the TV also recognizes this and switches off its own speakers. The TV remoteā€™s volume buttons control the 300ā€™s volume.

Yesterday, when playing with your binding, I noticed it also works the other way, when switching on the soundbar, the TV automagically follows. The TV is kinda ā€œsmartā€, and 10 years old, but I donā€™t use that, it is not even connected to my home network, so all communication, sound and commands, apparently go via de HDMI cable.

I still need to check if this behavior is related to the selected source, hopefully tonight I have the opportunity to do some more investigations (if the familiy does not want to watch TV that is). With Easter coming up, and probably not too good weather, I might be able to spend some time on this, including integration in HabPanel or so.

BTW, just to be clear, I am not having any problems, I am just playing with the binding and wanted to let you and Chris know your work is being used and appreciated :slight_smile:

@PeterJ thanks for your feedback.

@all
I have just updated the binding. The 300 test folder ist deleted. The functionality is included in the 2.1.0 binding. I hope this works!

There are quite some changes in the background, but the binding should work in the same way it did before. This is because my future target is, to have more than just the 6 Presets brought by Soundtouch.
I donā€™t really know at the moment how i should save the additional Presets. But this should be possible in the future.

So let us know, if the changes bring any problems.

edit:
@PeterJ or @crax
Please post the result of
http://ip_of_soundtouch:8090/info

Since we realized, that there are more than just the Soundtouch 10/20/30 we decided to support all of them.

I had a look at the bose website, and there seems to be the following products. If someone knows an other one, please tell us:

  • SoundTouch 10 wireless speaker
  • SoundTouch 20 wireless speaker
  • SoundTouch 30 wireless speaker
  • SoundTouch 300 soundbar
  • Wave SoundTouch music system IV
  • SoundTouch Wireless Link adapter
  • SoundTouch SA-5 amplifier

We know the sources from ST10/ST20/ST30 and ST300

it would be nice to have the sources from the other products. So if anyone owns one of the bold written products please post the result of

http://ip_of_soundtouch:8090/info
http://ip_of_soundtouch:8090/sources

There are a lot more SoundTouch products than that. Click on the ā€œMoreā€ after the current products on soundtouch.com to see them all. All of the home theater systems from the last few years are there. The ones with a console (LifeStyle and any with three-digit product numbers) will have multiple wired inputs. All the rest have at most BT and Aux In (in addition to streaming). The original versions had AirPlay, and not Bluetooth. I think 20 and 30 are the only products where they were upgraded with a hardware version ā€“ for all the rest, the AirPlay to BT change came with a name/configuration change (e.g., 300 replaced 120/130). I have an SA-4 and the Link adapter at home, I can confirm the ā€œ/info and /sourcesā€ output this weekend, but Iā€™ve let my whole OpenHab install get too stale to test the binding.

@mishakim
Thanks for this information. I just thought only those devices with Soundtouch in their namespace use the Soundtouch App. And therefore the Soundtouch API.

@all
if your decive supports the API please post the results of the two URL i posted above.