jjlawren / sonos_cloud

Sonos cloud API integration for Home Assistant with improved TTS/alerts handling
121 stars 5 forks source link

Integration not creating entities? #30

Closed aaronganek closed 2 years ago

aaronganek commented 2 years ago

My Sonos Cloud HACS integration appears to setup fine, but no devices and entities are added.

I would like to control a remote Sonos setup from my home assistant. I figure Sonos Cloud is the perfect tool to pull in non-local media_player entities. (I do not need TTS and other special audio injection functions. Ideally, I would be able to see the state of my remote sonos player, play/pause function, control volume.)

Of note, I am using S1 with connect:amps that only support S1.

Seen here in the attached image: I have Sonos Cloud and Sonos (local) running side-by-side. Sonos local show my 6 local devices. I would expect Sonos Cloud to show 7 cloud devices (my 6 here + 1 more remote at a different site, but under the same Sonos account). All 7 show up when I login to sonos.com.

image

I get the following in the logs: Is "AUDIO_CLIP" support required for integration / or only for the audio injection functions?

2022-07-11 16:48:19 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration sonos_cloud which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Master Bedroom (RINCON_000E5836XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Living Room (RINCON_949F3EB2XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Dining Room (RINCON_000E5839XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Kitchen (RINCON_000E5836XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Patio (RINCON_000E5836XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Master Bathroom (RINCON_000E5836XXXXX1400) does not support AUDIO_CLIP 2022-07-11 16:50:43 WARNING (MainThread) [custom_components.sonos_cloud] Rooftop (RINCON_000E5839XXXXX1400) does not support AUDIO_CLIP

jjlawren commented 2 years ago

Sorry, this integration only offers an interface to the AUDIO_CLIP API call used for alerts/TTS. It seems like your devices on S1 do not support it.

I have no current plans to expand the use of the cloud API for other purposes as the local API is preferred. The difference here is that AUDIO_CLIP is only available via the cloud call, at least in my own research/testing.