Alors,
Pour configuration.yaml c’est ok
Pour secret.yaml c’est ok
Pour le service spotcast.start il indique qu’il y a un problème de token :
Cette erreur provient d'une intégration personnalisée
Logger: homeassistant.core
Source: custom_components/spotcast/spotcast_controller.py:164
Integration: Spotcast (documentation, issues)
First occurred: 20:21:31 (13 occurrences)
Last logged: 21:02:31
Error executing service: <ServiceCall spotcast.start (c:01GQWZJA5FEQ475RM11S3R6CKA): entity_id=media_player.livoom, uri=spotify:playlist:37i9dQZF1DXdrln2UyZD7F, start_volume=101, offset=0, repeat=off, force_playback=False, limit=20, random_song=False, ignore_fully_played=False, shuffle=False>
Error executing service: <ServiceCall spotcast.start (c:01GQWZJSK39GP071DXCQGRXTCF): entity_id=media_player.livoom, uri=spotify:playlist:37i9dQZF1DX2czWA9hqErK, start_volume=101, offset=0, repeat=off, force_playback=False, limit=20, random_song=False, ignore_fully_played=False, shuffle=False>
Error executing service: <ServiceCall spotcast.start (c:01GQWZJTPZ9J1ZADZE495WSPQ9): entity_id=media_player.livoom, uri=spotify:playlist:37i9dQZF1DX2czWA9hqErK, start_volume=101, offset=0, repeat=off, force_playback=False, limit=20, random_song=False, ignore_fully_played=False, shuffle=False>
Error executing service: <ServiceCall spotcast.start (c:01GQWZJTXC6NHKNPFED9AFPRBS): entity_id=media_player.livoom, uri=spotify:playlist:37i9dQZF1DX2czWA9hqErK, start_volume=101, offset=0, repeat=off, force_playback=False, limit=20, random_song=False, ignore_fully_played=False, shuffle=False>
Error executing service: <ServiceCall spotcast.start (c:01GQWZJV5B68J8SJSED4JYCQ2D): entity_id=media_player.livoom, uri=spotify:playlist:37i9dQZF1DX2czWA9hqErK, start_volume=101, offset=0, repeat=off, force_playback=False, limit=20, random_song=False, ignore_fully_played=False, shuffle=False>
Traceback (most recent call last):
File "/config/custom_components/spotcast/spotcast_controller.py", line 157, in get_spotify_token
).result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 458, in result
return self.__get_result()
File "/usr/local/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/config/custom_components/spotcast/spotcast_controller.py", line 177, in start_session
raise TokenError()
custom_components.spotcast.spotcast_controller.TokenError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1773, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1798, in _execute_service
await self._hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/spotcast/__init__.py", line 199, in start_casting
client = spotcast_controller.get_spotify_client(account)
File "/config/custom_components/spotcast/spotcast_controller.py", line 214, in get_spotify_client
return spotipy.Spotify(auth=self.get_token_instance(account).access_token)
File "/config/custom_components/spotcast/spotcast_controller.py", line 149, in access_token
self.ensure_token_valid()
File "/config/custom_components/spotcast/spotcast_controller.py", line 145, in ensure_token_valid
self.get_spotify_token()
File "/config/custom_components/spotcast/spotcast_controller.py", line 164, in get_spotify_token
raise HomeAssistantError("Could not get spotify token.")
homeassistant.exceptions.HomeAssistantError: Could not get spotify token.
Pour le service soucre , il indique que ce n’est pas supporté :
Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:150
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 23:10:01 (4 occurrences)
Last logged: 23:29:58
[547226961376] Error handling message: Entity media_player.spotify_litzy1512 does not support this service. (unknown_error) from 192.168.2.80 (Mozilla/5.0 (Linux; Android 12; SM-A415F Build/SP1A.210812.016; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/109.0.5414.86 Mobile Safari/537.36 Home Assistant/2022.12.0-3026 (Android 12; SM-A415F))
[547211608656] Error handling message: Could not get spotify token. (unknown_error) from 127.0.0.1 (Mozilla/5.0 (X11; CrOS armv7l 12371.89.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36)
Merci pour votre aide
P.S. Le problème ne viendrait pas de Redirect URI ???