[APP][Pro] Sonos (LocalAPI)

Yes, but i’m talking about the TTS. My beam has 2 surround speakers (era 100) but Homey only sends the TTS voice through the selected speaker in Homey. It doesn’t let me make them all say the same at the exact same time. Homey lets them all speak TTS individually, but i want the Beam TTS on the surround speakers too, not only on the beam itself.

Ah ok. I am not using that feature, so I cannot help you with that. Maybe @xiutit can provide you with more guidance on how to achieve that.

1 Like

This looks kinda weird… And it should probably say Play sound Homey at volume 41% not at volume 41volume%?

Also pausing and unpausing works faster with Cloud version, the Local is kinda glitching between paused and playing when trying to unpause.

Could you also add the AND is charging for the Sonos Roam 2? The official app has it.

@xiutit could you try to fix these?

Hi @xiutit !

Your solution seems like an ok compromise without losing any functionality: I’ve tested this and it works nicely, my shuffle behavior works as expected now, great (and fast) work!

Maybe an alternative idea is to incorporate the add or replace que behavior in the “play favorite” flow card itself as an extra select option? So it becomes something like <Play (Sonos favorite) and (add to/replace) current que>? This way the behavior of the play favorite or playlist card is really clear and easily adjustable without having to look for an extra flowcard? But it might make the flowcard a bit more complicated…

I know I’ve asked a lot already but one other thing I’m still missing is a way to instantly detect grouping/ungrouping of speakers (instead of polling the “groepsleden” variable every 5 minutes or something).

Before, with the older Sonos app, I did this with the “Started/Stopped playing” triggers, but for this app apparently when you group a speaker it doesn’t actually trigger their dedicated “Started/Stopped playing” command. So now I can’t detect if somebody has grouped or ungrouped a speaker manually (like from the speaker itself for example).

So what I’m looking for is a flowcard trigger for each speaker. Could this be something you could look into?

Thank you!

Hello,
here’s a free way to generate a TTS:

Below the Microsoft Azure TextToSpeech costs for the free (F0) licence. The neural voices are state-of-the-art voices incomparable with most other TTS services, and the first 500000 characters are free per month.

Yes, it’s a bit more complex to setup Azure voices, but it’s worth using it on Sonos.

1 Like

I don’t like leaving my Visa card information everywhere. Especially not with Microsoft in the US…
:smiling_face_with_sunglasses:

As far as I know this is not possible. It’s using the Sonos announce feature, but that only plays on the targeted speaker.

For all my speakers this is instantly. Not sure how I can reproduce this.

Added in V1.8.0 now released in test live.

Added in V1.8.0 now released in test live.

2 Likes

Hello,
this only seems to work with Google Chromecast devices.
Not even if Google Assistant is running on Sonos (Sonos One).

1 Like

Ah. Alright, thanks.

Hi again, @xiutit!

Thank you for this update, it’s just what I needed and seems to work fine apart from one weird bug I’ve found. Whenever “Living” gets ungrouped it briefly shows as “Sub Mini & Living & Living” for me, and then after a minute or so reverts back to regular “Living”:

I have now found an extremely hacky way to fix this in my flows, but it’s not ideal.

When I first started using your app there was an issue with speaker discovery and I (as a test by accident, it’s now removed to be clear) added the Sub Mini as an individual speaker (instead of in it’s regular “Living” group with 2 Sonos One’s), is that messing with the grouping here somehow?

Thank you!

Can you add WHEN starts charging and WHEN stops charging aswell for the Sonos Roam 2? Also the pausing/unpausing works instantly for me too, but there’s a little glitch with the pause button GUI. Edit: Could this be a problem if i got both cloud and local version connected? If so, could you try to change how the TTS works?

Since the last update (v1.8.0), the Group Members capability shows some weird behavior.

Ik have two Sonos systems. The first is called ‘Woonkamer’; the second ‘Kantoor’.

  • When I group Kantoor with Woonkamer, the Group Members capability directly changes from ‘Kantoor’ to ‘Kantoor & Woonkamer & Kantoor’. So the Kantoor-system is mentioned twice.

  • After approx. a minute the capability is updated again and shows the correct grouping: ‘Woonkamer & Kantoor’.

Similarly, if I don’t group the system:

It’s probably a stereo pair. I’ll try to recreate this to check the behavior.

You are right: the Kantoor-system consists of a stereo pair of 2 Play:1s. The Woonkamer-system is a surround setup with Playbar, Play:3s and a Sub.

Hello, @xiutit The Sonos Roam 2 IS charging condition card says it’s charging even when it’s not charging. It will always respond as “true”. Edit: i have also tried reinstalling the app.

Also would it be possible to add a Play song card? as in Play … from … (song and song provider?) as in “Play Ordinary from Spotify”