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

Echo Buttons (and possibly other Alexa Gadgets) showing on Sources list #166

Closed
gadgetchnnel opened this issue Apr 22, 2019 · 5 comments · Fixed by #175
Closed

Echo Buttons (and possibly other Alexa Gadgets) showing on Sources list #166

gadgetchnnel opened this issue Apr 22, 2019 · 5 comments · Fixed by #175
Labels
bug Something isn't working

Comments

@gadgetchnnel
Copy link

The Sources list appears to pick up all Bluetooth devices connected to the Alexa device, and not just speakers or devices (such as mobile phones) using the Echo as a Bluetooth speaker.
Since Alexa Gadgets (such as the Echo Buttons and the Echo Wall Clock) connect over Bluetooth, these are also being included in the list. For me that means that I have several Echo Buttons showing in the list.

Is it possible to filter this list so it only has speakers are included?
If the type isn't returned it may be possible to do it by name. I know Echo Buttons all have names starting with EchoBtn. I don't know about the Echo Wall Clock as this hasn't yet launched in the UK.

@alandtse
Copy link
Owner

We are pulling information from this link. Can you use your appropriate region and provide us info for what Echo Buttons look like? Please mask any sensitive info like serial #s.

@alandtse alandtse added the question Further information is requested label Apr 23, 2019
@gadgetchnnel
Copy link
Author

gadgetchnnel commented Apr 23, 2019

Here are three devices from the pairedDeviceList collection for my Echo Dot:

Paired phone:

{
"address": "**:**:**:**:**:**",
"connected": true,
"deviceClass": "OTHER",
"friendlyName": "HM20PRO",

"profiles": [
"A2DP-SOURCE",
"AVRCP"
]
}

Bluetooth speaker

{
"address": "**:**:**:**:**:**",
"connected": true,
"deviceClass": "OTHER",
"friendlyName": "Altius001",

"profiles": [
"AVRCP",
"A2DP-SINK"
]
}

Echo Button

{
"address": "**:**:**:**:**:**",
"connected": false,
"deviceClass": "GADGET",
"friendlyName": "EchoBtnA5B",

"profiles": [
"AVRCP"
]
}

It looks like Echo Buttons and other Alexa Gadgets can be identified by their devcie class being GADGET. The phone and speaker both have a class of OTHER.

Edit: Also, it seems that Bluetooth speakers have a Bluetooth profile of A2DP-SINK while the phone has a profile of A2DP-SOURCE if it is necessary to distinguish between these.

@alandtse
Copy link
Owner

I think the solution is to actually check for A2DP-Source in Profiles.

@alandtse alandtse added bug Something isn't working and removed question Further information is requested labels Apr 26, 2019
@alandtse
Copy link
Owner

@gadgetchnnel can you please test #170?

@gadgetchnnel
Copy link
Author

@alandtse I've tested that and it appears to work well, excluding the Echo Buttons and showing my phone which was paired with the Echo Dot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants