Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next and previous track command not working in Spotify SingleRoom mode #49

Closed
B5r1oJ0A9G opened this issue Jul 19, 2023 · 3 comments
Closed
Labels
wontfix This will not be worked on

Comments

@B5r1oJ0A9G
Copy link
Owner

          allright, now it partly works for me, I don't know what exactly changed, I did a ton of restarting, reinstalling and so on concerning other problems. HA still does not realize if music is playing via spotify multiroom. If I hit play though, it starts playing from the multiroom speaker. Background-image still does not appear, but who cares. What bothers me is that i cant skip or replay songs. Imma just dump the log report here, can't make out what is of relevance and what not

` [140228859544000] 'HassRaumfeldHost' object has no attribute 'async_room_next_track'

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 193, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1704, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1741, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 680, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 964, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 717, in _handle_entity_call
await result
File "/config/custom_components/teufel_raumfeld/media_player.py", line 419, in async_media_next_track
await self._raumfeld.async_room_next_track(self._room)
AttributeError: 'HassRaumfeldHost' object has no attribute 'async_room_next_track'
`

Originally posted by @MaxSchuck in #4 (comment)

@B5r1oJ0A9G
Copy link
Owner Author

teufel_raumfeld is using (currently) incorrect function calls from hassfeld for playing next or previous tracks. In fact, the functions are not consistently correct defined in hassfeld.

@B5r1oJ0A9G
Copy link
Owner Author

The function names are corrected now in hassfeld with its release of version 0.3.11-alpha2. This new version will be used by teufel_hassfeld in the current master branch.

@MaxSchuck,
@ulilicht,
Please consider to test the current master branch and report back whether the error is fixed.

@B5r1oJ0A9G
Copy link
Owner Author

Released in v0.1.13-alpha1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant