TTS on Alexa?

I did reboot yes and I see some entries but nothing error related?

2019-08-18 15:47:04 INFO (SyncWorker_1) [custom_components.alexa_media]
2019-08-18 15:47:04 INFO (SyncWorker_1) [custom_components.alexa_media] Loaded alexapy==0.7.1
2019-08-18 15:47:05 DEBUG (SyncWorker_1) [custom_components.alexa_media] Setting up Alexa devices
2019-08-18 15:47:05 DEBUG (SyncWorker_10) [custom_components.alexa_media] s[email protected]: Websocket created: <WebsocketEchoClient(Thread-3, started daemon 2948328384)>
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] s
[email protected]: Found 7 devices, 1 bluetooth
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-gb found for GCBG
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for G
CBG
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for GCBG
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for G
CBG
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-gb found for G539
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for G
539
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-gb found for G0S8
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for G
0S8
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-us found for 82f1
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for 8
2f1
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-gb found for G1T5
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for G
1T5
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-gb found for 2287
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for 2
287
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] Locale en-us found for 0bdb
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] DND False found for 0
bdb
2019-08-18 15:47:08 DEBUG (SyncWorker_10) [custom_components.alexa_media] s[email protected]: Existing: [] New: [‘Fire TV’, “Someone’s Echo Dot”, “Someone’s 2nd Echo Dot”, ‘Home Cinema’, “Someone’s Fire”, ‘This Device’, “Someone’s Alexa Apps”]; Filtered by: include_devices: [] exclude_devices:[]
2019-08-18 15:47:09 DEBUG (SyncWorker_10) [custom_components.alexa_media] s
[email protected]: Updated last_called: {‘serialNumber’: ‘0bdb’, ‘timestamp’: 1564091691704}
2019-08-18 15:47:09 DEBUG (SyncWorker_10) [custom_components.alexa_media] s*****[email protected]: last_called changed: to {‘serialNumber’: '0
bdb’, ‘timestamp’: 1564091691704}
2019-08-18 15:47:09 DEBUG (Thread-3) [custom_components.alexa_media] s[email protected]: Websocket succesfully connected
2019-08-18 15:47:09 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] s
[email protected]: Refreshing Fire TV
2019-08-18 15:47:09 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] Fire TV: Last_called check: self: GCBG reported:
2019-08-18 15:47:09 DEBUG (SyncWorker_10) [custom_components.alexa_media.switch] Loading switches
2019-08-18 15:47:09 DEBUG (SyncWorker_10) [custom_components.alexa_media.switch] Media Players not loaded yet; delaying load
2019-08-18 15:47:10 DEBUG (SyncWorker_18) [custom_components.alexa_media.alarm_control_panel] s
[email protected]: No Alexa Guard entity found
2019-08-18 15:47:10 DEBUG (SyncWorker_18) [custom_components.alexa_media.alarm_control_panel] s
[email protected]: Skipping creation of uninitialized device:
2019-08-18 15:47:14 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] s
[email protected]: Refreshing Home Cinema
2019-08-18 15:47:14 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] Home Cinema: Last_called check: self: 8****************************2f1 reported:
2019-08-18 15:47:20 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] s
**[email protected]: Refreshing This Device
2019-08-18 15:47:20 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] This Device: Last_called check: self: 2****************************287 reported:
2019-08-18 15:47:23 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] Adding [, <Entity Someone’s Echo Dot: standby>, <Entity Someone’s 2nd Echo Dot: standby>, , <Entity Someone’s Fire: standby>, , <Entity Someone’s Alexa Apps: standby>]

I don’t necessarily see anything wrong in there either. It looks like at least some of the devices are being discovered.

Are the media players that are greyed out listed as being in the “adding” list in the last line of the log? from your picture above it’s impossible to tell if the one’s greyed out are in that list or not.

More is being logged about disabling polling, maybe related

	Line 20716: 2019-08-18 15:47:49 DEBUG (SyncWorker_13) [custom_components.alexa_media.media_player] This Device: Last_called check: self: 2****************************287 reported: 0****************************bdb
	Line 20717: 2019-08-18 15:47:49 DEBUG (SyncWorker_13) [custom_components.alexa_media.media_player] Disabling polling for This Device
	Line 20719: 2019-08-18 15:47:49 DEBUG (SyncWorker_19) [custom_components.alexa_media.media_player] Disabling polling for someone's 2nd Echo Dot
	Line 20723: 2019-08-18 15:47:49 DEBUG (SyncWorker_14) [custom_components.alexa_media.media_player] s*****[email protected]: Refreshing Home Cinema
	Line 20724: 2019-08-18 15:47:49 DEBUG (SyncWorker_14) [custom_components.alexa_media.media_player] Home Cinema: Last_called check: self: 8****************************2f1 reported: 0****************************bdb
	Line 20725: 2019-08-18 15:47:49 DEBUG (SyncWorker_14) [custom_components.alexa_media.media_player] Disabling polling for Home Cinema
	Line 20728: 2019-08-18 15:47:49 DEBUG (SyncWorker_9) [custom_components.alexa_media.media_player] Disabling polling for Someone's Alexa Apps
	Line 20731: 2019-08-18 15:47:49 DEBUG (SyncWorker_0) [custom_components.alexa_media.media_player] Disabling polling for Someone's Fire

Should they be always off as a media player? Doesn’t look right
image

No they should be listed as being in “standby” if not being used.

What about the answer to my last question above?

Yes, they are two echo dots, one fire tablet, one alexa apps type, all greyed out. Funny enough I have logged in to my Alexa app on my phone and they showed up as offline so I have re-logged in and they do show up ok in the Alexa app. Maybe a re-login on the custom component will do something?

Maybe but it looks like the log says they are added.

Have you checked the entity_id’s of you media players to make sure they haven’t changed?

If they did then that might explain why they are “unavailable” even though the log shows that entities have been added.

Ok so I have reinstalled the integration, set the location to amazon.co.uk and now they are all blue (on standby as expected) but no luck on anything actually working, so frustrating as it all looks good.

At least it’s a step in the right direction…

try the tts from the services page again.

this time make sure you put only one echo device in the data field.

So something like this:

{
“message”:“testing”,
“data”:{“type”:“announce”, “method”:“all”},
“target”:“media_player.your_echo_device”
}

Ok here is what I get when I send text for TTs (from the media player card above)

2019-08-18 17:41:36 DEBUG (SyncWorker_17) [alexapy.alexaapi] Running sequence: Alexa.Speak data: {"behaviorId": "PREVIEW", "sequenceJson": "{\"@type\": \"com.amazon.alexa.behaviors.model.Sequence\", \"startNode\": {\"@type\": \"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\", \"type\": \"Alexa.Speak\", \"operationPayload\": {\"deviceType\": \"A3S5BH2HU6VAYF\", \"deviceSerialNumber\": \"G090LFXXXXXXXXX\", \"locale\": \"en-gb\", \"customerId\": null, \"textToSpeak\": \"Sorry, text to speech can only be called  with the media player alexa tts service\"}}}", "status": "ENABLED"}

And this is what I got after testing against the notify.alexa_media service with your JSON above:

2019-08-18 17:45:24 DEBUG (SyncWorker_2) [alexapy.alexaapi] Running sequence: AlexaAnnouncement data: {"behaviorId": "PREVIEW", "sequenceJson": "{\"@type\": \"com.amazon.alexa.behaviors.model.Sequence\", \"startNode\": {\"@type\": \"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\", \"type\": \"AlexaAnnouncement\", \"operationPayload\": {\"deviceType\": \"A3S5BH2HU6VAYF\", \"deviceSerialNumber\": \"G090LFXXXXXXX\", \"locale\": \"en-gb\", \"customerId\": \"A3AKQXBDCPPKO2\", \"expireAfter\": \"PT5S\", \"content\": [{\"locale\": \"en-gb\", \"display\": {\"title\": \"Home Assistant\", \"body\": \"testing\"}, \"speak\": {\"type\": \"text\", \"value\": \"testing\"}}], \"target\": {\"customerId\": \"A3AXXXXXXX\", \"devices\": [{\"deviceSerialNumber\": \"G090LFXXXXXXX\", \"deviceTypeId\": \"A3S5BH2HU6VAYF\"}]}}}}", "status": "ENABLED"}

And the service call

2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Message: testing, kwargs: {'target': ['Kitchen Dot'], 'data': {'type': 'announce', 'method': 'all'}}
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: Kitchen Dot against (<Entity Kitchen Dot: paused>, Kitchen Dot, G************539, media_player.kitchen_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Converting: Kitchen Dot to (entities): <Entity Kitchen Dot: paused>
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: Kitchen Dot against (<Entity Home Cinema Dot: standby>, Home Cinema Dot, G************0S8, media_player.home_cinema_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: <Entity Kitchen Dot: paused> against (<Entity Kitchen Dot: paused>, Kitchen Dot, G************539, media_player.kitchen_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Converting: <Entity Kitchen Dot: paused> to (serialnumbers): xxxxxxx
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: <Entity Kitchen Dot: paused> against (<Entity Home Cinema Dot: standby>, Home Cinema Dot, G************0S8, media_player.home_cinema_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Announce targets: ['G************539'] entities: [<Entity Kitchen Dot: paused>]
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] s*****[email protected]: Announce by <Entity Kitchen Dot: paused> to targets: ['G************539']: testing
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [alexapy.alexaapi] Running sequence: AlexaAnnouncement data: {"behaviorId": "PREVIEW", "sequenceJson": "{\"@type\": \"com.amazon.alexa.behaviors.model.Sequence\", \"startNode\": {\"@type\": \"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\", \"type\": \"AlexaAnnouncement\", \"operationPayload\": {\"deviceType\": \"A3S5BH2HU6VAYF\", \"deviceSerialNumber\": \"xxxxxxx\", \"locale\": \"en-gb\", \"customerId\": \"xxxxxxx\", \"expireAfter\": \"PT5S\", \"content\": [{\"locale\": \"en-gb\", \"display\": {\"title\": \"Home Assistant\", \"body\": \"testing\"}, \"speak\": {\"type\": \"text\", \"value\": \"testing\"}}], \"target\": {\"customerId\": \"xxxxxxx\", \"devices\": [{\"deviceSerialNumber\": \"xxxxxxx\", \"deviceTypeId\": \"A3S5BH2HU6VAYF\"}]}}}}", "status": "ENABLED"}

Did either of them result in any announcement?

Neither did. Maybe it’s my region? I’m in Ireland, and using the amazon.co.uk location since there is no Irish one

maybe but you would think it would give an error or something in the debug logs if that was the case.

maybe it’s time to get @alandtse involved in this one.

I’m out of ideas.

@sd_dracula please enable debugging on alexapy too and dm me the results of trying to do a TTS and of changing the volume using a hardware button. Just add another line with alexapy: debug with the same indentation as the Alexa media component.

One issue to note is some devices are reporting as en-us and some are en-gb. You should see if there’s a setting for those devices to out them on the right locals.

@alandtse Ok added the alexapy: debug and rebooted. See below for logs when I changed volume.
The en-us/en-gb was happening earlier when I had amazon.com as the URL (and all devices were greyed out) and then changed it to amazon.co.uk and they became available and also all on en-gb now.

2019-08-18 19:21:33 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-18 19:21:33 DEBUG (Thread-3) [custom_components.alexa_media] s*****[email protected]: Received websocket command: PUSH_VOLUME_CHANGE : {'destinationUserId': 'xxxxxxxxxxxxxxxx', 'dopplerId': {'deviceSerialNumber': 'xxxxxxxxxxxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'isMuted': None, 'volumeSetting': 82}
2019-08-18 19:21:33 DEBUG (Thread-3) [custom_components.alexa_media] Updating media_player volume: {'destinationUserId': 'xxxxxxxxxxxxxxxx', 'dopplerId': {'deviceSerialNumber': 'xxxxxxxxxxxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'isMuted': None, 'volumeSetting': 82}
2019-08-18 19:21:33 DEBUG (SyncWorker_17) [custom_components.alexa_media.media_player] Kitchen Dot volume updated: 82
2019-08-18 19:21:33 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-18 19:21:33 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x5f215a22 f 0x00000001 0x68b9f52e 0x00000224 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxxxxxxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:xxxxxxxxxxxxxxxx {"payload":"{\\"destinationUserId\\":\\"xxxxxxxxxxxxxxxx\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"xxxxxxxxxxxxxxxx\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"isMuted\\":null,\\"volumeSetting\\":85}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-18 19:21:33 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x5f215a22 f 0x00000001 0x68b9f52e 0x00000224 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxxxxxxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:xxxxxxxxxxxxxxxx {"payload":"{\\"destinationUserId\\":\\"xxxxxxxxxxxxxxxx\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"xxxxxxxxxxxxxxxx\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"isMuted\\":null,\\"volumeSetting\\":85}","command":"PUSH_VOLUME_CHANGE"}FABE'
2019-08-18 19:21:33 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-18 19:21:33 DEBUG (Thread-3) [custom_components.alexa_media] s*****[email protected]: Received websocket command: PUSH_VOLUME_CHANGE : {'destinationUserId': 'xxxxxxxxxxxxxxxx', 'dopplerId': {'deviceSerialNumber': 'xxxxxxxxxxxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'isMuted': None, 'volumeSetting': 85}
2019-08-18 19:21:33 DEBUG (Thread-3) [custom_components.alexa_media] Updating media_player volume: {'destinationUserId': 'xxxxxxxxxxxxxxxx', 'dopplerId': {'deviceSerialNumber': 'xxxxxxxxxxxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'isMuted': None, 'volumeSetting': 85}
2019-08-18 19:21:33 DEBUG (SyncWorker_16) [custom_components.alexa_media.media_player] Kitchen Dot volume updated: 85
2019-08-18 19:21:35 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-18 19:21:35 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x5f215be1 f 0x00000001 0x67b6f661 0x00000224 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxxxxxxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:xxxxxxxxxxxxxxxx {"payload":"{\\"destinationUserId\\":\\"xxxxxxxxxxxxxxxx\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"xxxxxxxxxxxxxxxx\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"isMuted\\":null,\\"volumeSetting\\":82}","command":"PUSH_VOLUME_CHANGE"}FABE'

Please also show logs doing the notify. You should be seeing media updates if you start playing Amazon music since you are getting volume updates. Please confirm.

See below after I played some music via spotify to the dot:

2019-08-18 21:45:25 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-18 21:45:25 DEBUG (Thread-3) [custom_components.alexa_media] s*****[email protected]: Received websocket command: PUSH_AUDIO_PLAYER_STATE : {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': '5d892bed-5adc-428b-9339-e784e3cdf5e6', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'INTERRUPTED', 'errorMessage': None}
2019-08-18 21:45:25 DEBUG (Thread-3) [custom_components.alexa_media] Updating media_player: {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': '5d892bed-5adc-428b-9339-e784e3cdf5e6', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'INTERRUPTED', 'errorMessage': None}
2019-08-18 21:45:25 DEBUG (SyncWorker_4) [custom_components.alexa_media.media_player] Kitchen Dot state update: INTERRUPTED
2019-08-18 21:45:25 DEBUG (SyncWorker_4) [custom_components.alexa_media.media_player] s*****[email protected]: Refreshing Kitchen Dot
2019-08-18 21:45:25 DEBUG (SyncWorker_4) [custom_components.alexa_media.media_player] Kitchen Dot: Last_called check: self: G************539 reported: G************0S8
2019-08-18 21:45:27 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-18 21:45:27 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x5f46d9ad f 0x00000001 0xa5400521 0x00000288 GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:130-6448843-0186743-1566152432000 {"payload":"{\\"destinationUserId\\":\\"xxxxxxx\\",\\"mediaReferenceId\\":\\"cafea31d-81e2-443f-8029-0521ae65dc6d\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"xxxxxxx\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"error\\":false,\\"audioPlayerState\\":\\"PLAYING\\",\\"errorMessage\\":null}","command":"PUSH_AUDIO_PLAYER_STATE"}FABE'
2019-08-18 21:45:27 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-18 21:45:27 DEBUG (Thread-3) [custom_components.alexa_media] s*****[email protected]: Received websocket command: PUSH_AUDIO_PLAYER_STATE : {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': 'cafea31d-81e2-443f-8029-0521ae65dc6d', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'PLAYING', 'errorMessage': None}
2019-08-18 21:45:27 DEBUG (Thread-3) [custom_components.alexa_media] Updating media_player: {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': 'cafea31d-81e2-443f-8029-0521ae65dc6d', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'PLAYING', 'errorMessage': None}
2019-08-18 21:45:27 DEBUG (SyncWorker_17) [custom_components.alexa_media.media_player] Kitchen Dot state update: PLAYING
2019-08-18 21:45:27 DEBUG (SyncWorker_17) [custom_components.alexa_media.media_player] s*****[email protected]: Refreshing Kitchen Dot
2019-08-18 21:45:27 DEBUG (SyncWorker_17) [custom_components.alexa_media.media_player] Kitchen Dot: Last_called check: self: G************539 reported: G************0S8
2019-08-18 21:46:03 DEBUG (Thread-3) [alexapy.alexawebsocket] Received WebSocket MSG.
2019-08-18 21:46:03 DEBUG (Thread-3) [alexapy.alexawebsocket] Received b'MSG 0x00000362 0x5f46fd22 f 0x00000001 0x2555413a 0x0000028c GWM MSG 0x0000b479 0x0000005c urn:tcomm-endpoint:service:serviceName:DeeWebsiteMessagingService:domain:prod:realm:USAmazon 0x00000081 urn:tcomm-endpoint:device:customerId:xxxxxxx:deviceType:ALEGCNGL9K0HM:deviceSerialNumber:130-6448843-0186743-1566152432000 {"payload":"{\\"destinationUserId\\":\\"xxxxxxx\\",\\"mediaReferenceId\\":\\"d61c59a8-ba97-43f6-9145-1cc59b0c821c\\",\\"dopplerId\\":{\\"deviceSerialNumber\\":\\"xxxxxxx\\",\\"deviceType\\":\\"A3S5BH2HU6VAYF\\"},\\"error\\":false,\\"audioPlayerState\\":\\"INTERRUPTED\\",\\"errorMessage\\":null}","command":"PUSH_AUDIO_PLAYER_STATE"}FABE'
2019-08-18 21:46:03 DEBUG (Thread-3) [alexapy.alexawebsocket] Received Standard MSG.
2019-08-18 21:46:03 DEBUG (Thread-3) [custom_components.alexa_media] s*****[email protected]: Received websocket command: PUSH_AUDIO_PLAYER_STATE : {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': 'd61c59a8-ba97-43f6-9145-1cc59b0c821c', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'INTERRUPTED', 'errorMessage': None}
2019-08-18 21:46:03 DEBUG (Thread-3) [custom_components.alexa_media] Updating media_player: {'destinationUserId': 'xxxxxxx', 'mediaReferenceId': 'd61c59a8-ba97-43f6-9145-1cc59b0c821c', 'dopplerId': {'deviceSerialNumber': 'xxxxxxx', 'deviceType': 'A3S5BH2HU6VAYF'}, 'error': False, 'audioPlayerState': 'INTERRUPTED', 'errorMessage': None}
2019-08-18 21:46:03 DEBUG (SyncWorker_1) [custom_components.alexa_media.media_player] Kitchen Dot state update: INTERRUPTED
2019-08-18 21:46:03 DEBUG (SyncWorker_1) [custom_components.alexa_media.media_player] s*****[email protected]: Refreshing Kitchen Dot
2019-08-18 21:46:03 DEBUG (SyncWorker_1) [custom_components.alexa_media.media_player] Kitchen Dot: Last_called check: self: G************539 reported: G************0S8

And after the service call

2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Message: testing, kwargs: {'target': ['Kitchen Dot'], 'data': {'type': 'announce', 'method': 'all'}}
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: Kitchen Dot against (<Entity Kitchen Dot: paused>, Kitchen Dot, G************539, media_player.kitchen_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Converting: Kitchen Dot to (entities): <Entity Kitchen Dot: paused>
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: Kitchen Dot against (<Entity Home Cinema Dot: standby>, Home Cinema Dot, G************0S8, media_player.home_cinema_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: <Entity Kitchen Dot: paused> against (<Entity Kitchen Dot: paused>, Kitchen Dot, G************539, media_player.kitchen_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Converting: <Entity Kitchen Dot: paused> to (serialnumbers): xxxxxxx
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Testing item: <Entity Kitchen Dot: paused> against (<Entity Home Cinema Dot: standby>, Home Cinema Dot, G************0S8, media_player.home_cinema_dot)
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] Announce targets: ['G************539'] entities: [<Entity Kitchen Dot: paused>]
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [custom_components.alexa_media.notify] s*****[email protected]: Announce by <Entity Kitchen Dot: paused> to targets: ['G************539']: testing
2019-08-18 21:50:29 DEBUG (SyncWorker_15) [alexapy.alexaapi] Running sequence: AlexaAnnouncement data: {"behaviorId": "PREVIEW", "sequenceJson": "{\"@type\": \"com.amazon.alexa.behaviors.model.Sequence\", \"startNode\": {\"@type\": \"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\", \"type\": \"AlexaAnnouncement\", \"operationPayload\": {\"deviceType\": \"A3S5BH2HU6VAYF\", \"deviceSerialNumber\": \"xxxxxxx\", \"locale\": \"en-gb\", \"customerId\": \"xxxxxxx\", \"expireAfter\": \"PT5S\", \"content\": [{\"locale\": \"en-gb\", \"display\": {\"title\": \"Home Assistant\", \"body\": \"testing\"}, \"speak\": {\"type\": \"text\", \"value\": \"testing\"}}], \"target\": {\"customerId\": \"xxxxxxx\", \"devices\": [{\"deviceSerialNumber\": \"xxxxxxx\", \"deviceTypeId\": \"A3S5BH2HU6VAYF\"}]}}}}", "status": "ENABLED"}

Please confirm whether the media player is working or not. The logs say it’s updating.
Next step is to see if the generated payload from an app routine matches what we’re sending alexapy. Can you please create a routine that does TTS or announce and confirm it work in the app. If it does, then we’ll need it’s json data. Please see this page for instructions.

Hi @alandtse I was able to get the notifiy.alexa_media to also work as per https://github.com/keatontaylor/alexa_media_player/issues/292 (maybe this will help others also)
Thanks again for your help

what exactly did you change in your config to get it working?

Not a whole lot, I did exclude a bunch of things and only left the echo dots in there though, maybe that was it

alexa_media:
  accounts:
    - email: !secret amazon_user
      password: !secret amazon_password
      url: amazon.co.uk
      debug: False
      exclude_devices:
      - "Your Alexa Apps"
      - "This Device"
      - "Home Cinema"
      - "Fire TV"