Hi I just upgraded HASS to 0.92.2 so that I could install the latest alexa_media_player. I had to re-configure both echo and dot for them to show up under by amazon account. Now they do and they show up under hass. I can see the players (mostly showing the correct state Standby or playing something). I can control the playback. But the reason for me installing this plugin is voice notifications.
As you can see in the attachment two devices and a group were recognised.
I tried calling the service in many different combination (many more than this). I have restarted hass many times.
notify.alexa_media
{
"message": "Just testing",
"data": {
"type": "announce"
},
"target":["90F00718649XXXXX", "G090LF09645XXXXX"]
}
notify.alexa_media
{
"message":"Just testing",
"data": {
"type": "tts"
},
"target":["90F00718649XXXXX", "G090LF09645XXXXX"]
}
notify.alexa_media_bathroom
notify.alexa_media_bathroom
{
"message": "Just testing",
"data": {
"type": "announce"
}
}
notify.alexa_media_bathroom
notify.alexa_media_bathroom
{
"message": "Just testing",
"data": {
"type": "announce"
},
"target":["90F00718649XXXXX", "Bathroom", "Bedroom", "G090LF09645XXXXX"]
}
notify.alexa_media_bathroom
notify.alexa_media_bathroom
{
"message": "Just testing",
"data": {
"type": "tts"
},
"target":["90F00718649XXXXX", "Bathroom", "Bedroom", "G090LF09645XXXXX"]
}
And a somewhat corresponding log:
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] Converting: <Entity Bedroom: paused> to (entities): <Entity Bedroom: paused>
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity Everywhere: standby>, Everywhere, 1****************************XXX, media_player.everywhere)
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity This Device: standby>, This Device, C****************************XXX, media_player.this_device)
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity MR's Alexa Apps: standby>, MR's Alexa Apps, F****************************XXX, media_player.mr_s_alexa_apps)
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] TTS entities: [<Entity Bedroom: paused>]
2019-05-11 13:00:48 DEBUG (SyncWorker_0) [custom_components.alexa_media.notify] TTS by <Entity Bedroom: paused> : Just testing
2019-05-11 13:00:50 INFO (SyncWorker_4) [homeassistant.components.command_line.switch] Running state command: curl -s http://10.0.1.23:3000/api/local/info/mission | jq .cleanMissionStatus.cycle | sed -e 's/^"//' -e 's/"$//'
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Message: Just testing, kwargs: {'target': ['G090LF09645XXXXX'], 'data': {'type': 'tts'}}
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: G090LF09645XXXXX against (<Entity Bathroom: paused>, Bathroom, 9************XXX, media_player.bathroom)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: G090LF09645XXXXX against (<Entity Bedroom: paused>, Bedroom, G************XXX, media_player.bedroom)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Converting: G090LF09645XXXXX to (entities): <Entity Bedroom: paused>
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: G090LF09645XXXXX against (<Entity Everywhere: standby>, Everywhere, 1****************************XXX, media_player.everywhere)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: G090LF09645XXXXX against (<Entity This Device: standby>, This Device, C****************************XXX, media_player.this_device)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: G090LF09645XXXXX against (<Entity MR's Alexa Apps: standby>, MR's Alexa Apps, F****************************XXX, media_player.mr_s_alexa_apps)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity Bathroom: paused>, Bathroom, 9************N4D, media_player.bathroom)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity Bedroom: paused>, Bedroom, G************E5S, media_player.bedroom)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Converting: <Entity Bedroom: paused> to (entities): <Entity Bedroom: paused>
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity Everywhere: standby>, Everywhere, 1****************************XXX, media_player.everywhere)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity This Device: standby>, This Device, C****************************XXX, media_player.this_device)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] Testing item: <Entity Bedroom: paused> against (<Entity MR's Alexa Apps: standby>, MR's Alexa Apps, F****************************XXX, media_player.mr_s_alexa_apps)
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] TTS entities: [<Entity Bedroom: paused>]
2019-05-11 13:00:51 DEBUG (SyncWorker_4) [custom_components.alexa_media.notify] TTS by <Entity Bedroom: paused> : Just testing
No errors just utter silence. I have changed device language to English (United States) - from English (United Kingdom) in an effort to debug which is reflected during component init:
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] XXXXXXXXXXXX: Found 5 devices, 1 bluetooth
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] Locale en-us found for 9************XXX
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] Locale en-us found for G************XXX
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] Locale en-gb found for C****************************XXX
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] Locale en-us found for F****************************XXX
2019-05-11 12:52:08 DEBUG (SyncWorker_0) [custom_components.alexa_media] XXXXXXXXXXXX: Existing: [] New: ['Bathroom', 'Bedroom', 'Everywhere', 'This Device', "MR's Alexa Apps"]; Filtered by: include_devices: [] exclude_devices:[]
2019-05-11 12:52:08 INFO (MainThread) [homeassistant.components.notify] Setting up notify.alexa_media
2019-05-11 12:52:08 INFO (MainThread) [homeassistant.setup] Setup of domain media_player took 3.7 seconds.
Any help or suggestion would be much appreciated.