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

Feature request: add function to connect to paired bluetooth device #322

Closed
alandtse opened this issue Aug 31, 2019 · 2 comments
Closed
Labels
enhancement New feature or request

Comments

@alandtse
Copy link
Owner

alandtse commented Aug 31, 2019

The Source List in the media_player UI is intended to only be bluetooth audio sources. We recently fixed a bug in #316 where sometimes we weren't enforcing this distinction.

Some users have been using it as a way to pair devices with their Alexa device so this will break their use case. One use case below:


Ok, I get your point and if you put it like that than the bluetooth device should never show on that source property whatsoever. As you say it should be a new feature.
My usecase was like so:
Whenever I say "Alexa play music",
I detect this event in HA,
I trigger my sound system bt pair,
Alexa pairs to sound system,
And music plays on my sound system

btw, if you fix this bug without adding the new feature, my usecase will break :)

Originally posted by @danielmihalache1983 in #316 (comment)

@alandtse alandtse added the enhancement New feature or request label Aug 31, 2019
@alandtse
Copy link
Owner Author

alandtse commented Aug 31, 2019

Oh wait, the media_player.select_source should still work for selecting a device to pair to. You just need to know the friendlyName of your paired device. That can be found in the Alexa app or from the Alexa json.

Connect (case sensitive)

{
  "entity_id": "media_player.great_room",
  "source": "Alan’s MacBook Pro"
}

Disconnect

{
  "entity_id": "media_player.great_room",
  "source": "Local Speaker"
}

@danielmihalache1983
Copy link

danielmihalache1983 commented Aug 31, 2019

Ok, I get it.

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

No branches or pull requests

2 participants