# \[APP\]\[Pro\] Sonos (LocalAPI)

**URL:** <https://community.homey.app/t/app-pro-sonos-localapi/147985>\
**Category:** Apps\
**Tags:** app, homey-pro\
**Created:** [December 28, 2025, 12:48pm UTC](https://community.homey.app/t/app-pro-sonos-localapi/147985 "2025-12-28T12:48:49Z")\
**Posts on this page:** 1\
**Showing post:** 219

<div class="post-metadata">

**Author:** ![Amersfoort](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Amersfoort](https://community.homey.app/u/Amersfoort)\
**Post date:** [May 6, 2026, 4:00pm UTC](https://community.homey.app/t/app-pro-sonos-localapi/147985/219 "2026-05-06T16:00:06Z")

</div>

Case: I use a Homey script to retrieve all my favorite TuneIn stations and Spotify playlists via the local Sonos API. The result is a list of names, image URLs, and URIs.

It seems impossible to me to play music based on a URI.

I would like to use a Sonos card to play the TuneIn or Spotify URI. Is it technically possible to send the URI in a variable to a Sonos card to play the selected music?

I want to avoid having to create dozens of conditions in a flow to control a Sonos favorites card based on a playlist/TuneIn name, aside from maintenance such as changing favorites.

EDIT - better not this (only half of the favorites, the other half are favorite Spotify playlists):

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/8/783f3b7c3a0e1cd8074c396649922dd772657b35.png)

> [@xiutit](#):
>
> I have added a tag and a trigger card

Switching from TuneIn to Spotify (or back) doesn’t activate one of the cards below on my Sonos playbar. Or is my test wrong?

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12e2cfe7069ac92dc6aaf89d390acf2d92d5f8bb.png)

---

_[View the full topic](https://community.homey.app/t/app-pro-sonos-localapi/147985)._
