-
-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Media players cause alexa to fail discovering any devices. #34029
Comments
Hey there @home-assistant/cloud, @ochlocracy, mind taking a look at this issue as its been labeled with a integration ( |
As petro said, I have the same problem for a few releases now. source_list: AUX, Blu-ray, Bluetooth, CBL/SAT, DVD/Blu-ray, Favorites, Game, Internet Radio, Media Player, Media Server, Online Music, Spotify, TV Audio, Tuner, iPod/USB
sound_mode_list: MUSIC, MOVIE, GAME, AUTO, STANDARD, VIRTUAL, MATRIX, ROCK ARENA, JAZZ CLUB, VIDEO GAME, MONO MOVIE, DIRECT, PURE DIRECT, DOLBY DIGITAL, DTS SURROUND, MCH STEREO, STEREO, ALL ZONE STEREO
friendly_name: Denon AVR-X1300W
supported_features: 85949 |
@Petro31 I suspect it's the To help diagnose, customize the entity for the media player, and override the Remove the customization when finished. |
@eifinger Can you provide the relevant entity capability information from your discovery response? I just need to section with your Denon Receiver. https://www.home-assistant.io/integrations/alexa.smart_home/#debugging |
I'm having the same issue. I believe I've located the problem. I'm using Yamaha receivers (two different models). Looking at the JSON that's passed to the Alexa service, I see this on the non-working receiver under "capabilities":
However, this is missing entirely on the working receiver. Looking at the states, I can see differences there as well: Working:
Not working:
My theory is that the presence of a "sound_mode_list" in the media_player component causes the Alexa component to generate a blank "configurations"-"modes" list in the JSON sent to Alexa. This must error the device discovery process out. Please let me know if you'd like me to gather any more information! |
On an semi-related note. I noticed my workaround is not working either. Discovery is happening but the device does not respond to volume voice commands. Alexa keeps saying that 'it doesn't support that', when it did 2 days ago. |
@ochlocracy here is my discovery response for denon: {
'capabilities': [{
'interface': 'Alexa.PowerController',
'properties': {
'proactivelyReported': True,
'retrievable': True,
'supported': [{
'name': 'powerState'
}]
},
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa.Speaker',
'properties': {
'proactivelyReported': True,
'retrievable': True,
'supported': [{
'name': 'volume'
},
{
'name': 'muted'
}
]
},
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa.PlaybackController',
'supportedOperations': ['Next',
'Pause',
'Play',
'Previous'
],
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa.PlaybackStateReporter',
'properties': {
'proactivelyReported': True,
'retrievable': True,
'supported': [{
'name': 'playbackState'
}]
},
'type': 'AlexaInterface',
'version': '3'
},
{
'inputs': [{
'name': 'AUX '
'1'
},
{
'name': 'BLURAY'
},
{
'name': 'GAME'
},
{
'name': 'MEDIA '
'PLAYER'
},
{
'name': 'TUNER'
}
],
'interface': 'Alexa.InputController',
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa.ChannelController',
'type': 'AlexaInterface',
'version': '3'
},
{
'configurations': {
'modes': {
'supported': [{
'name': 'MUSIC'
},
{
'name': 'MOVIE'
}
]
}
},
'interface': 'Alexa.EqualizerController',
'properties': {
'proactivelyReported': False,
'retrievable': False,
'supported': [{
'name': 'mode'
}]
},
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa.EndpointHealth',
'properties': {
'proactivelyReported': True,
'retrievable': True,
'supported': [{
'name': 'connectivity'
}]
},
'type': 'AlexaInterface',
'version': '3'
},
{
'interface': 'Alexa',
'type': 'AlexaInterface',
'version': '3'
}
],
'cookie': {},
'description': 'media_player.denon_avr_x1300w '
'via Home '
'Assistant',
'displayCategories': ['TV'],
'endpointId': 'media_player#denon_avr_x1300w',
'friendlyName': 'Receiver',
'manufacturerName': 'Home '
'Assistant'
} |
@ochlocracy here is my discovery from the media players section ( not the complete discovery tough, just a snippet): {
"displayCategories":[
"TV"
],
"cookie":{
},
"endpointId":"media_player#denon_avr_x2000",
"friendlyName":"Denon AVR-X2000",
"description":"media_player.denon_avr_x2000 via Home Assistant",
"manufacturerName":"Home Assistant",
"capabilities":[
{
"type":"AlexaInterface",
"interface":"Alexa.PowerController",
"version":"3",
"properties":{
"supported":[
{
"name":"powerState"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.Speaker",
"version":"3",
"properties":{
"supported":[
{
"name":"volume"
},
{
"name":"muted"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.InputController",
"version":"3",
"inputs":[
{
"name":"AUX 1"
},
{
"name":"BLURAY"
},
{
"name":"CD"
},
{
"name":"DVD"
},
{
"name":"GAME"
},
{
"name":"MEDIA PLAYER"
},
{
"name":"TUNER"
}
]
},
{
"type":"AlexaInterface",
"interface":"Alexa.EqualizerController",
"version":"3",
"properties":{
"supported":[
{
"name":"mode"
}
],
"proactivelyReported":False,
"retrievable":False
},
"configurations":{
"modes":{
"supported":[
{
"name":"MUSIC"
},
{
"name":"MOVIE"
}
]
}
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.EndpointHealth",
"version":"3",
"properties":{
"supported":[
{
"name":"connectivity"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa",
"version":"3"
}
]
},
{
"displayCategories":[
"TV"
],
"cookie":{
},
"endpointId":"media_player#televisione",
"friendlyName":"Televisione",
"description":"media_player.televisione via Home Assistant",
"manufacturerName":"Home Assistant",
"capabilities":[
{
"type":"AlexaInterface",
"interface":"Alexa.PowerController",
"version":"3",
"properties":{
"supported":[
{
"name":"powerState"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.Speaker",
"version":"3",
"properties":{
"supported":[
{
"name":"volume"
},
{
"name":"muted"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.PlaybackController",
"version":"3",
"supportedOperations":[
"Next",
"Pause",
"Play",
"Previous"
]
},
{
"type":"AlexaInterface",
"interface":"Alexa.PlaybackStateReporter",
"version":"3",
"properties":{
"supported":[
{
"name":"playbackState"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.ChannelController",
"version":"3"
},
{
"type":"AlexaInterface",
"interface":"Alexa.EndpointHealth",
"version":"3",
"properties":{
"supported":[
{
"name":"connectivity"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa",
"version":"3"
}
]
},
{
"displayCategories":[
"TV"
],
"cookie":{
},
"endpointId":"media_player#spotify_REDACTED",
"friendlyName":"Spotify REDACTED",
"description":"media_player.spotify_REDACTED via Home Assistant",
"manufacturerName":"Home Assistant",
"capabilities":[
{
"type":"AlexaInterface",
"interface":"Alexa.PowerController",
"version":"3",
"properties":{
"supported":[
{
"name":"powerState"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.Speaker",
"version":"3",
"properties":{
"supported":[
{
"name":"volume"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.PlaybackController",
"version":"3",
"supportedOperations":[
"Next",
"Pause",
"Play",
"Previous"
]
},
{
"type":"AlexaInterface",
"interface":"Alexa.PlaybackStateReporter",
"version":"3",
"properties":{
"supported":[
{
"name":"playbackState"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa.SeekController",
"version":"3"
},
{
"type":"AlexaInterface",
"interface":"Alexa.ChannelController",
"version":"3"
},
{
"type":"AlexaInterface",
"interface":"Alexa.EndpointHealth",
"version":"3",
"properties":{
"supported":[
{
"name":"connectivity"
}
],
"proactivelyReported":True,
"retrievable":True
}
},
{
"type":"AlexaInterface",
"interface":"Alexa",
"version":"3"
}
]
}, |
I did this for both my Yamaha & Denon and now Alexa can discovered them both as well as control them. |
I've done some other tests, I can confirm that removing ONLY the media_player in the alexa included domains did the trick, and the discovery worked fine. |
Same issue with my Denon AVR-X3500H. It worked for the first night I configured it, but not the following morning. My hunch is that it's because I turned off the receiver that night -- I've noticed that the media player entity won't get created if the receiver is off while Home Assistant starts (by "off" I mean still powered, but red light showing under power button). @ochlocracy 's suggestion above fixed the issue (thanks @ochlocracy !). Specifically:
I'm now able to see the media player in Alexa and control it with my voice. Happy to help troubleshoot, if testers are needed. |
Just checking in here with a discovery problem of my Denon AVR-X4500H. Would've liked to try the workaround of "supported-features" customization but since my X4500H only shows 65036, I'd be ending up with a negative value when substracting 65536. |
I have just opened PR #36285 with a potential fix. Could someone test it? |
@balloob I am on version 0.115.6 of HomeAssistant which schould already include PR #36285, However my Marantz receiver (DenonAVR integration) blocks alexa from discovering any devices (also other devices than the Marantz). Bassically PR #36285 did not solve the issue for the DenonAVR integration. |
Please open a new issue if you still encounter this issue on the latest version of Home Assistant. |
The problem
Certain media players cause Nabu Casa and Alexa SmartHome Skill to fail discovering ALL devices produced by the integration.
@eifinger mentioned his Denon media players in a chat on Discord causing issues.
For me it's 2 Yamaha Receivers (yamaha network receiver).
Here is information on the 2 recievers:
It should be interesting to note that the 2 following universal media_players transfer over properly with discovery:
Environment
Buster (Debian 10) on a Nuc running home assistant supervised.
Problem-relevant
configuration.yaml
Problem is simple. With the 2 yamaha media_players, discovery on alexa's side fails to find ANY devices. Without the 2 media_players, discovery works fine.
Here's a snippit of the json response to alexa. This is just 1 media player item.
Here's a VALID working one
unfortunately, it doesn't look like there are any differences that would be causing the problem. It may be related to the communication process that media_players go through when adding them to Alexa.
Traceback/Error logs
Additional information
The text was updated successfully, but these errors were encountered: