alexa_media_player: Notify stopped working (Sorry, let's start over again...)
Describe the bug My notify service stopped working, I have tested the service notify.alexa_media, and nothing happens, no errors whatsoever.
To Reproduce
- Go to “developer tools”
- Click on “Services”
- Call service “notify.alexa_media”
- Type these service data: target: “media_player.game_room” message: “test message” Data: type: “tts”
- The “call service” button turns green, but nothing happens.
Expected behavior Alexa saying “test message”
Screenshots Just get a green button after pressing “call service”
System details
- Home-assistant (version): 2020.12.1
- Hassio (Yes/No): YES (and did the restart several times).
- alexa_media: 3.4.1 version from
const.py
- alexapy : 1.17.2 from pip
- Amazon [2FA is enabled]: Yes
Logs
previews entries shows my cookies so I'm not including it
2020-12-17 13:38:04 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Initating Async Handshake.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Starting message parsing loop.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] WebSocket Connection Closed. <Task finished name='Task-1197' coro=<WebsocketEchoClient.process_messages() done, defined at /usr/local/lib/python3.8/site-packages/alexapy/alexawebsocket.py:138> result=None>
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding PING.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding WebSocket Handshake MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Handshake MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding Gateway Register MSG.
2020-12-17 13:38:05 DEBUG (MainThread) [alexapy.alexawebsocket] Encoding PING.
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bootstrap returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2020-12-17 13:38:06 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2020-12-17 13:38:07 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=a1716dbb5f0c44aa9982ee49675d2407&deviceType=A3C9PE6TNYLTCH&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:07 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090U509849623WN&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:07 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090VC0985030W41&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:07 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090U5099145005P&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:08 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=B0F00712521302HC&deviceType=AB72C64C86AW2&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:08 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/phoenix returned 400:Bad Request:application/octet-stream
2020-12-17 13:38:08 WARNING (MainThread) [alexapy.helpers] alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f331df9c520>,), {}): An error occured accessing AlexaAPI: An exception of type TypeError occurred. Arguments:
("'NoneType' object is not subscriptable",)
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/devices-v2/device returned 200:OK:application/json
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/dnd/device-status-list returned 200:OK:application/json
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/notifications returned 200:OK:application/json
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/device-preferences returned 200:OK:application/json
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/bluetooth?cached=false returned 200:OK:application/json
2020-12-17 13:38:16 DEBUG (MainThread) [alexapy.alexaapi] static GET: https://alexa.amazon.com/api/activities?startTime=&size=10&offset=1 returned 200:OK:application/json
2020-12-17 13:38:18 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090VC0985030W41&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:18 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090U509849623WN&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:18 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=G090U5099145005P&deviceType=A32DOYMUN6DTXA&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:18 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=B0F00712521302HC&deviceType=AB72C64C86AW2&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:38:18 DEBUG (MainThread) [alexapy.alexaapi] GET: https://alexa.amazon.com/api/np/player?deviceSerialNumber=a1716dbb5f0c44aa9982ee49675d2407&deviceType=A3C9PE6TNYLTCH&screenWidth=2560 returned 200:OK:application/json
2020-12-17 13:39:23 DEBUG (MainThread) [alexapy.alexaapi] Creating sequence for 1 items
2020-12-17 13:39:23 DEBUG (MainThread) [alexapy.alexaapi] Running behavior with data: {"behaviorId": "PREVIEW", "sequenceJson": "{\"@type\": \"com.amazon.alexa.behaviors.model.Sequence\", \"startNode\": {\"@type\": \"com.amazon.alexa.behaviors.model.SerialNode\", \"nodesToExecute\": [{\"@type\": \"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode\", \"type\": \"Alexa.Speak\", \"operationPayload\": {\"deviceType\": \"AB72C64C86AW2\", \"deviceSerialNumber\": \"B0F00712521302HC\", \"locale\": \"en-us\", \"customerId\": \"A2M2Q5VWCMFUQ0\", \"textToSpeak\": \"New notification: this is a test\", \"target\": {\"customerId\": \"A2M2Q5VWCMFUQ0\", \"devices\": [{\"deviceSerialNumber\": \"B0F00712521302HC\", \"deviceTypeId\": \"AB72C64C86AW2\"}]}, \"skillId\": \"amzn1.ask.1p.saysomething\"}}]}}", "status": "ENABLED"}
2020-12-17 13:39:23 DEBUG (MainThread) [alexapy.alexaapi] POST: https://alexa.amazon.com/api/behaviors/preview returned 400:Bad Request:application/octet-stream
Additional context I’m getting error on alexa guard, since I have Ring alarm system.
alexaapi.get_guard_details((<alexapy.alexalogin.AlexaLogin object at 0x7f5b4457a280>,), {}): An error occured accessing AlexaAPI: An exception of type TypeError occurred. Arguments: ("'NoneType' object is not subscriptable",)
1:44:15 PM – /usr/local/lib/python3.8/site-packages/alexapy/helpers.py (WARNING)
but yet, the controls I use on Ring alarm works as excpected.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (8 by maintainers)
If your device is registered in Mexico that can do that too. You may need to login to alexa.mx. But if you have a solution then no biggie.
Alexapy is me too so no need