# \[APP\]\[Pro\] Bluesound - Multi-room Music. The Hi-Res Way

**URL:** <https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [August 22, 2018, 11:26am UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121 "2018-08-22T11:26:31Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [September 24, 2018, 7:51pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/21 "2018-09-24T19:51:33Z")

</div>

I didn’t got the auto updated for 1.2.6 beta yet. As soon as I get it, i’ll test it.

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [September 24, 2018, 8:22pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/22 "2018-09-24T20:22:22Z")

</div>

I got the update and I can communicate with my devices again. I will let you know if i see something weird.

If all is stable, my flows should come back into action and should notice that tomorrow when I wake up with music 🙂

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [September 26, 2018, 7:50pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/23 "2018-09-26T19:50:18Z")

</div>

> [@Quakerix](#):
>
> If all is stable, my flows should come back into action and should notice that tomorrow when I wake up with music

Are you still sleeping or is the app working again … 🤔 😁

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [September 27, 2018, 10:03am UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/24 "2018-09-27T10:03:31Z")

</div>

hi 🙂 hehe. I woke up. But the music didn’t turn on.

One Bluesound device was properly up & running  
The other device was marked as offline (while it was online. Even the Test Connection said it was OK). But it remained offline.

Then I tried debugging it but couldn’t find any reason why it remained offline.

This morning the device suddenly was online. Not sure if it was the reboot of Homey, device, glitch in the matrix. But its online now.

I feel like there’s bug somewhere in the ‘checking if its online’. I created a flow that restarts the app every 24 hours. In the previous version that seemed to solve sometimes these issues.

Anyway; its up. I’m going to try and test and keep you up to date.

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [September 27, 2018, 8:47pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/25 "2018-09-27T20:47:43Z")

</div>

It looks like somehow someway, these devices go offline while they are not:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/6/67e7505bb32ccba3483a144354fbf033a70737bf.jpeg)

The test connection shows green light. But even restarting the app isn’t helping.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [September 28, 2018, 5:36am UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/26 "2018-09-28T05:36:41Z")

</div>

> [@Quakerix](#):
>
> The test connection shows green light. But even restarting the app isn’t helping

Then it’s time to do a command line install and supply me with extra logging. You can use the debug branch for this.

[https://github.com/jghaanstra/com.bluesound/tree/debug](https://github.com/jghaanstra/com.bluesound/tree/debug)

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [October 19, 2018, 4:41pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/27 "2018-10-19T16:41:05Z")

</div>

It’s been running stable last month. I think te connection issues were resolved after router restart

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [October 31, 2018, 8:22pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/28 "2018-10-31T20:22:58Z")

</div>

Again devices are continuously offline.

I think there’s an issue if you have multiple bluesound devices. For the past month device A was working stable, 0 issues (after i did a router restart). But device B was offline all the time, always.

Today i had some time to play so i decided to remove device B and to add it again. And now that device is online, but guess what. Device A is now offline. Restarting the bluesound device has no effect.

@Phuturist no other way to debug then command line? Even VPN to my network wouldn’t help?

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [October 31, 2018, 8:26pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/29 "2018-10-31T20:26:17Z")

</div>

One other question. The Bluesound App is able to change INPUT.

Is there a way to capture what the mobile app is sending?

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [October 31, 2018, 8:45pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/30 "2018-10-31T20:45:22Z")

</div>

> [@Quakerix](#):
>
> @Phuturist no other way to debug then command line? Even VPN to my network wouldn’t help?

That would probably work as well but I’d also need develop access to your Homey. I would not be comfortable doing this. Debugging on command line is not that hard, why not give it a try?

> [@\[HOW TO\] CLI install method](https://community.homey.app/t/how-to-cli-install-method/198):
>
> Homey Pro only!!! It does not work this way with Homey (cloud), it only supports CLI run which is there only for development purposes. Installing Node.js Check Node.js version on Homey: Homey App: Settings - General - About - Node.js version Download Node.js (use Homey’s version or higher) from [https://nodejs.org/](https://nodejs.org/) and install it on your computer. Download the app you want to install from GitHub Go to the repository on [GitHub](https://github.com/) (the correct link for the app you want to install is at the bottom…

> [@Quakerix](#):
>
> One other question. The Bluesound App is able to change INPUT.
> 
> Is there a way to capture what the mobile app is sending?

Sure, you just need to set up a man in the middle attack. It’s doable but if CLI installs already seem to scare you I dont think this is something for you. But why do you need this, there is already a change input action card in the Homey Bluesound app.

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [November 2, 2018, 8:50pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/31 "2018-11-02T20:50:50Z")

</div>

Its not scaring me 🙂 I’m looking for most efficient approach since i don’t have much time ☹

I’ll get the CLI working. Keep you posted

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [November 7, 2018, 8:05pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/32 "2018-11-07T20:05:22Z")

</div>

Hey @Phuturist,

I was doing some research regarding switching input (TV, Platenspeler, BlueOS, Bluetooth) and I got a great tip from their support.

There’s a log file in the bluOS device that logs all the HTTP calls. And while I was searching for the command to switch input. I was curious if I could see any Homey activity and detect why the device is marked as offline while it being online. Since my receiver is powered off completely while i’m not at home. It boots/turn on when i’m home. And gladly Homey detected after 15min or more that the device is online. But I didn’t see any Homey calls in the log. So how are you detecting whether a device is online? Do you ping? call the API? And what the frequency?

Then the other more fun part. Switching the input. There’s good and bad news. The good news, its possible! And I found it:

[http://192.168.178.249:11000/ExternalSource?id=%2B](http://192.168.178.249:11000/ExternalSource?id=%2B)  
[http://192.168.178.249:11000/ExternalSource?id=-](http://192.168.178.249:11000/ExternalSource?id=-)

The blueOS app has a left and right button to switch between the inputs. You can’t go directly to an input. You go left, or right. That’s the bad news. So I can’t say, switch to TV or switch to Platenspeler etc. Which is exactly what I want, since I detect when the TV is on. So I know when to switch to that input, same for platenspeler etc.

But I did a little bit more research and checked what the differences when calling the Status command being on different inputs. And I was almost happy. Because, the JSON that’s return with calling the Status command for the inputs Platenspeler, TV, Bluetooth have the same structure but the BluOS is different. Let me show you the results:

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/7/78d18fe0dcda6a43eae91c05ff1d90981926ee7f.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/0/075bfaf69f7ca6d45640c412b70b84ca9236c231.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/f/f0bd9520494f4478585f9d4a3c7c7ee1d44994ac.png)  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/949066773cc687eee7fd3214f9ddde6adcaccacb.png)

What do you think? Could you build a card that is a ‘switch input card’, with free text. And you do something like:

Switch input API-call  
Status API-call  
If (title2 matches ‘input-field’ e.g. Plantenspeler) { stop }  
else { start-over }

The only issue is title2 works for Platenspeler, TV and Bluetooth. But not for BluOS. So that needs to be an exception.

What do you think? @Phuturist

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [November 7, 2018, 8:25pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/33 "2018-11-07T20:25:53Z")

</div>

So my NAD device is offline again.

If you are not checking whether a device is online using the API and you are doing a PING. Maybe the device has a built in firewall or my router has a firewall or some kind of protection somewhere and blocks your pings to check whether the device is online.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [November 8, 2018, 5:08pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/34 "2018-11-08T17:08:16Z")

</div>

> [@Quakerix](#):
>
> So how are you detecting whether a device is online? Do you ping? call the API? And what the frequency?

The polling frequency (setting of the device in Homey) is used to make a connection to the device and retrieve the status. If no valid connection can be made the device will go offline and Homey will try to reconnect every 63 seconds to see if the device is available again. If you woul do a CLI install it might tell you why Homey is not able to make a connection to retrieve the status.

I’l look at your findings for a potential switch input card but I’m currently quite busy with other stuff.

---

<div class="post-metadata">

**Author:** ![Its\_Me](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/its_me/32/7869_2.png) [@Its\_Me](https://community.homey.app/u/Its_Me)\
**Post date:** [November 8, 2018, 6:58pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/35 "2018-11-08T18:58:53Z")

</div>

Running the 1.2.6 version without problems on three devices (Node2, Soundbar and Flex). All stay online all the time and no functionality missing. Itś even possible to create a linked group in a flow!  
Thanks for the development and support in the past. Itś getting time for you to get some Bluesound stuff I guess 😀

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [November 8, 2018, 6:59pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/36 "2018-11-08T18:59:25Z")

</div>

I understand; I Will try to find the time for the CLI.

If You manage to make successful input switch I’ll make sure you can order some beers.

But no hurry! Already happy with your support. This is why homey (community) is awesome

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [November 8, 2018, 7:04pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/37 "2018-11-08T19:04:04Z")

</div>

> [@Quakerix](#):
>
> What do you think? Could you build a card that is a ‘switch input card’, with free text.

Although I understand your need and understand there does not seem to be an alternative way what you are suggesting is quite hacky. What if someone enters a non existing input, if you would not catch that as well you could end up in an endless cycle of input switching … 😱

I’ll start with adding cards for switching input up and input down and give it some more thought.

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [November 9, 2018, 6:04pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/38 "2018-11-09T18:04:50Z")

</div>

@Quakerix could you tell me what entries are in the current autocomplete actioncard for changing inputs? Does this not already contain the inputs you want to switch to?

---

<div class="post-metadata">

**Author:** ![Quakerix](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/quakerix/32/10155_2.png) [@Quakerix](https://community.homey.app/u/Quakerix)\
**Post date:** [November 10, 2018, 6:47pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/39 "2018-11-10T18:47:29Z")

</div>

No they don’t, they show:  
Radio paradise(?)  
Spotify  
Bluetooth

And I’m not sure if the card does something.

I know it’s quite hacky. It was the only thing that I could think of. You can always limit it to 5 or 6 since there are physically no more inputs. If you have idea 🙂

---

<div class="post-metadata">

**Author:** ![Phuturist](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/phuturist/32/49_2.png) [@Phuturist](https://community.homey.app/u/Phuturist)\
**Post date:** [November 11, 2018, 8:43pm UTC](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121/40 "2018-11-11T20:43:56Z")

</div>

> [@Quakerix](#):
>
> I know it’s quite hacky. It was the only thing that I could think of. You can always limit it to 5 or 6 since there are physically no more inputs. If you have idea

No other ideas. I have uploaded a new release to Github that has a new action card for changing inputs up and down and an experimental action card that switches the input till a maximum of 5 times or until the given input matches the actual input. Since I have no way of testing the app it needs to be tested by somebody else first before I will push it to the app store. Could you run the app using the command line and let me know if it works? If it does not work it would be nice if you could post the command line logging.

> **[GitHub - roelofoomen/com.bluesound: Homey app to control Bluesound devices](https://github.com/roelofoomen/com.bluesound)**
>
> Homey app to control Bluesound devices. Contribute to roelofoomen/com.bluesound development by creating an account on GitHub.

[Previous page](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121.md?page=1)

[Next page](https://community.homey.app/t/app-pro-bluesound-multi-room-music-the-hi-res-way/121.md?page=3)
