sonos_cloud icon indicating copy to clipboard operation
sonos_cloud copied to clipboard

Speakers seem unavailable

Open Steveelliott111 opened this issue 2 years ago • 7 comments

Noticed I wasnt getting TTS announcements on door open etc.

The speakers the app creates are all showing as unavailable (hence no tts announcements) but the 'real' sonos speakers are all working correctly in HA

Pulled from log : (Far as I'm aware i've not changed any credentials)

2022-09-06 21:27:18.258 ERROR (MainThread) [custom_components.sonos_cloud] Household request failed (401): {"fault":{"faultstring":"Invalid Access Token","detail":{"errorcode":"keymanagement.service.invalid_access_token"}}}

Steveelliott111 avatar Sep 06 '22 20:09 Steveelliott111

It could be a transient error on the Sonos side or your credentials may have actually expired somehow. Have you tried reloading the integration or just restarting HA?

jjlawren avatar Sep 08 '22 04:09 jjlawren

I have seen the same issue occur about 3 times over the past month or so. One time it fixed itself. Other 2 times I ended up deleting the integration and re-adding it to get it to work again.

Edit: Reloading the integration or restarting HA did not solve the problem for me.

tpantano avatar Sep 08 '22 14:09 tpantano

I just started getting the same error, so no I have no doorbell 🙈

Could it be lack of some token refresh or similar? It has worked flawlessly for months until now, so an expired token seems likely.

Restarting the integration and restarting home assistant doesn't resolve the error.

Znegl avatar Sep 30 '22 12:09 Znegl

Experiencing the same issue. Have had the integration working for quite some time, and then suddenly getting invalid access token out of the blue every 1-3 days. Where removing and readding the integration fixes the problem for a day or two, until it has to be redone.

markus-lassfolk avatar Oct 05 '22 13:10 markus-lassfolk

The token refresh logic relies on HA core which has been quite reliable in my experience. This feels like a transient issue with the Sonos hosts, but I don't have hard data to back that up. Is everyone that's seeing this getting identical log entries?

If you hit this, set the logger for this integration (custom_components.sonos_cloud) to debug and reload the integration (or restart HA with the debug logger in your config).

jjlawren avatar Oct 05 '22 15:10 jjlawren

Debug log;
filtered.txt

markus-lassfolk avatar Oct 12 '22 11:10 markus-lassfolk

I have also the same issue... Since HA has changed to the registration information (not necessary in configuration.yaml)

mbuerki84 avatar Oct 14 '22 19:10 mbuerki84