While testing the Alexa.Safety.ErrorResponse events implementing a garage door opener, I noticed that the error types aren't matching.
When sending back a "SAFETY_BEAM_BREACHED" error type, the response was "I can't close the garage door because there is an obstacle detected.".
{ "event": { "header": { "namespace": "Alexa.Safety", "name": "ErrorResponse", "payloadVersion": "3", "messageId": "<messageId>", "correlationToken": "<correlationToken>" }, "payload": { "type": "SAFETY_BEAM_BREACHED", "message": "Unable to close door because a safety beam was breached." }, "endpoint": { "endpointId": "GarageDoor" } } }
Likewise, when sending back an "OBSTACLE_DETECTED" error type, the response was "I can't close the garage door because of a garage malfunction. Please check on it."
{ "event": { "header": { "namespace": "Alexa.Safety", "name": "ErrorResponse", "payloadVersion": "3", "messageId": "<messageId>", "correlationToken": "<correlationToken>" }, "payload": { "type": "OBSTACLE_DETECTED", "message": "Unable to close door because an obstacle is detected." }, "endpoint": { "endpointId": "GarageDoor" } } }
Below is the discovery response for the device I was testing with:
{ "endpointId": "GarageDoor", "manufacturerName": "<manufacturer>", "description": "<description>", "friendlyName": "Garage Door", "displayCategories": [ "GARAGE_DOOR" ], "cookie": {}, "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa.ModeController", "instance": "GarageDoor.Opening", "version": "3", "properties": { "supported": [ { "name": "mode" } ], "proactivelyReported": false, "retrievable": true, "nonControllable": false }, "capabilityResources": { "friendlyNames": [ { "@type": "asset", "value": { "assetId": "Alexa.Setting.Opening" } } ] }, "configuration": { "ordered": false, "supportedModes": [ { "value": "OPEN", "modeResources": { "friendlyNames": [ { "@type": "asset", "value": { "assetId": "Alexa.Value.Open" } } ] } }, { "value": "CLOSE", "modeResources": { "friendlyNames": [ { "@type": "asset", "value": { "assetId": "Alexa.Value.Close" } } ] } } ] }, "semantics": { "actionMappings": [ { "@type": "ActionsToDirective", "actions": [ "Alexa.Actions.Close", "Alexa.Actions.Lower" ], "directive": { "name": "SetMode", "payload": { "mode": "CLOSE" } } }, { "@type": "ActionsToDirective", "actions": [ "Alexa.Actions.Open", "Alexa.Actions.Raise" ], "directive": { "name": "SetMode", "payload": { "mode": "OPEN" } } } ], "stateMappings": [ { "@type": "StatesToValue", "states": [ "Alexa.States.Closed" ], "value": "CLOSE" }, { "@type": "StatesToValue", "states": [ "Alexa.States.Open" ], "value": "OPEN" } ] } }, { "type": "AlexaInterface", "interface": "Alexa.EndpointHealth", "version": "3", "properties": { "supported": [ { "name": "connectivity" } ], "proactivelyReported": false, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa", "version": "3" } ] }