[APP][Pro] Sonos (LocalAPI)

The app doesn’t see all my speakers. If I want to add the speakers in my dining room manually the iPhone app is only capable of adding a comma in the ip-address instead of a dot. That obvious won’t work…

Enter the full IP address, including the dots, into another app, copy the full IP address, and then paste it into the Sonos (Local) app. Or use the Homey WebApp.
I know it’s just a workaround, but it will help you add your Sonos speakers for now.

But of course, it should be possible to enter a dot. However, I suspect this is an issue with the Homey iOS app, not the Sonos (Local) app.

That worked. Thanks!!!

This is fixed in v2.0 now in test.

@SunBeech @John_William_Brekke
In v2.0, I have also introduced a first basic test version of a widget inspired by @SunBeech’s style. It shows Sonos Favorites, and when tapped, it will play them on the speaker selected in the settings.

Would anyone be willing to test it? Any feedback would be appreciated.

Sure! I will test it right now, also i don’t think the app has this yet? But could you make a button on the sonos device to turn on and off touch controls for supported speakers? Sonos Move 2 has touch controls and a turn touch controls on/off setting. Would be amazing to do this with your app! (And in flows of course.)

It works amazing!! Both the widget and IP settings seems to work! Thanks for this amazing app. :grin:

Nicely done :grinning_face:.

Some observations:

  • The names of the favorites on the bottom row are being capped. It seems the widget is not high enough to accommodate the full names:
  • If I change the setting of the number of favorites displayed from 8 to 12, the widget still only shows 8 widgets. Edit - Disregard this comment: I now see that I can scroll through the widget/list.
  • Is it possible to change the order of favorites?
  • Is is possible to select only a specific set of favorites?

Could you take a look on this one? @xiutit

Speakers with Touch controls such as Sonos Beam Gen 2, Sonos Move 2, etc… has this touch control setting. Is this possible to add for you?

Added in v2.0.1, can you test it out?

Thanks for the feedback. Working on that!

It works amazing! Thank you so much :grin::grin:

Thanks for this great Sonos app and all the work that you put into it to make it better and add new features.

The new Sonos Favorites widget is also great on the dashboard.

I’ve send you a donation, keep up the good work!

Thank you very much! Really appreciated!

In v2.1.0 I have tried to add support for this, although there are some limitations in what the settings page currently allows.

I have added 12 configurable “slots” where you can select your Sonos Favorites. If all slots are left empty, the widget will show all favorites as before. Once you select favorites in one or more slots, the widget will only show those selected favorites, in the order you configured them.

Currently, the playback time is updated approximately once every 15 seconds. Could an update take place every second?

Is it then also possible to “rewind” or “fast-forward” the playing (Spotify) track by manually moving the playtime slider? I realize that this is not possible with streaming radio.

First: this is an absolutely fantastic improvement for Sonos owners.
I hate having to rely on (more) cloud services and this solution is both responsive and hassle free.

I have a feature request. Right now it is possible to set or disable Sonos alarms.
But you can’t update/create them nor is it possible to check if one is enabled in the “if” section.

What I love about the Sonos native Alarm is that is plays “something” regardless of whether it can access the music service. So you never oversleep.

I used to fix this, poorly, with having a missive repeating “play” → wait 30 seconds → if not playing repeat.
With your control I now enable the correct Sonos alarm 5 minutes prior to my homey alarm turning on.
This works but only if I keep the two in sync manually.
Ideal world, when a Sonos alarm triggers I can trigger a flow in the Homey. (wife likes the Sonos app better and getting her to change that habit…)

But given that Sonos likely doesn’t trigger anything that can trigger the Homey, if I were able to periodically check what alarms are set for a room, or even only if a particular Sonos alarm is enabled and for what time I can sync the Homey to that and have it start up the lights, coffee maker etc based on it

I’ll look into this. Not sure yet what is possible.

Yes, this is technically possible. I had it working in a test version on my own Homey, but removed it before release because the implementation did not feel polished enough yet.

I’ll revisit this and see if I can add it in a cleaner way.

update: possible false flag.
I have a potential bug report. Play [Favorite] does not empty the queue. Combined with shuffle this created some truly magnificent audio mixes. It’s easily fixed by invoking the “clear queue” command. It felt like this is unintended behavior given the name of the function so I wanted to report this

Update info:

Wife reported similar behavior when streaming Spotify from her phone to the Sonos. Repeated testing here has shown that sometimes it does seem to clear the queue and other times it doesn’t. So I’m thinking this is one of those Sonos “quirks” rather than in implementation thing

another potential bug (sorry I’m converting my existing flows today so I’m running into these)>
Is there a reason why favorites from “Audible” don’t show up? Is it because they are audio books and thus behave differently?

I have an automation when going the bed that starts an audio book with a 45 min timer, than the next day when I start it it picks up where I left off (the audible integration does that automatically in “regular Sonos”). My automation actually starts the book but rewinds it 30 minutes before playing as I’ve usually fallen asleep at 15 to 20 minute in

@Amersfoort Seeking flow card is now available in V2.2.0.

@LeonK Audible audiobooks seem to be handled a bit differently by Sonos, but in v2.2.0 they should now show up in the Favorites list. Could you please let me know if this works for you?

Seeking is also available now as a Flow card, so it should be possible to use that in your bedtime automation as well.

I don’t know what’s possible, but is it possible to get duration (in seconds), progress (in seconds) and progress (in %)? Would be really cool.

That data is already available and visible in the developer tools. What would you want to do with them? I could add them as a sensor.