Hello,
I am currently facing the problem that my Safety Error Response does not work as expected. At least there is no reaction or a false reaction from Alexa like "Device is not responding..".
We planned to use the Safety Error Response in an async way. So in regards of the documentations:
https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-safety-errorresponse.html
https://developer.amazon.com/en-US/docs/alexa/device-apis/alexa-errorresponse.html
I expect that our payload needs to look like this:
{ "event":{ "header":{ "namespace":"Alexa.Safety", "name":"ErrorResponse", "messageId":"Unique identifier, preferably a version 4 UUID", "correlationToken":"Opaque correlation token that matches the request", "payloadVersion":"3" }, "endpoint":{ "scope":{ "type":"BearerToken", "token":"access-token-from-Amazon" }, "endpointId":"Endpoint ID" }, "payload":{ "type":"OBSTACLE_DETECTED", "message":"There is an obstacle in the way." } } }
In reality if I intercept the request against the Alexa Eventgateway it looks equal:
{ "headers":{ "Content-Type":[ "application/json" ], "Authorization":[ "Basic Atza|TOKEN" ] }, "body":{ "event":{ "header":{ "namespace":"Alexa.Safety", "name":"ErrorResponse", "messageId":"SOME_UUID", "payloadVersion":"3", "correlationToken":"MATCHING_CORRELATION_TOKEN" }, "endpoint":{ "endpointId":"DEVICE_ID", "scope":{ "type":"BearerToken", "token":"Atza|TOKEN" } }, "payload":{ "type":"OBSTACLE_DETECTED", "message":"There is an obstacle in the way." } } } }
My question is: Is it expected, that alexa says: "Device is not responding" instead of "Obstacle was detected, please check your garage" or something like this?