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

Shuffle only works using the switch-gui - not by code #667

Closed
me1337me opened this issue Apr 29, 2020 · 3 comments
Closed

Shuffle only works using the switch-gui - not by code #667

me1337me opened this issue Apr 29, 2020 · 3 comments

Comments

@me1337me
Copy link

me1337me commented Apr 29, 2020

Describe the bug
I use node-red and set up a call service to let my echo dot play a playlist.
Then I wanted to have it shuffle. Therefore I set up another call service node as follows:

grafik

That didnt work, neither before or after the play_media node.

I also tried to use the switch, before and after the play_media. I tried toggle, turn_on and a combination of first turn_off then turn_on
grafik

None of these worked ;(

But when I go to devices in Hass.io, select the switch and toggle it, shuffle is true (checked in "states")

What am I doing wrong?

System details

  • Home-assistant (version): 0.108.9
  • Hassio (Yes/No): Yes
  • alexa_media (version from const.py or HA startup): 2.5.15
  • alexapy (version from pip show alexapy or HA startup): ???
@me1337me me1337me changed the title Shuffle only works using the switch Shuffle only works using the switch-gui - not by code Apr 29, 2020
@alandtse
Copy link
Owner

The shuffle switch is only active when the media player allows it. Are you using the node_red when it is in fact available? Does it work in the dev tools services tab?

@me1337me
Copy link
Author

Someone from HA forum told me how to solve it. I had to add "shuffle" to the command string to play the playlist:
{"media_content_id":"shuffle playlist nu metal and rock songs","media_content_type":"AMAZON_MUSIC"}

@alandtse
Copy link
Owner

Closing as solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants