求助:触发Chime事件时无法播放警报音频(Alexa.SecurityPanelController.Alert)
问题描述:安防警报触发时Alexa音频播放无响应
我正在按照Alexa官方文档指引,尝试在安防设备触发警报时通过Alexa播放自定义警报音频,目前遇到以下问题:
- Alexa应用中我的设备设置里没有音频播放设备配置的菜单入口
- 警报触发时,按要求发送Chime事件后,Alexa网关返回202状态码,但没有任何声音播放,设备日志中也无相关事件记录
设备发现响应内容
{ "event": { "header": { "namespace": "Alexa.Discovery", "name": "Discover.Response", "messageId": "807271bc-177c-494c-bde9-f320e499f1a6", "payloadVersion": "3" }, "payload": { "endpoints": [ { "capabilities": [ { "type": "AlexaInterface", "interface": "Alexa.SecurityPanelController.Alert", "version": "1.1", "properties": { "supported": [ { "name": "sirenState" } ], "proactivelyReported": true, "retrievable": true }, "configuration": { "assets": [ { "id": "b75ce6f5-1dbb-48d1-9863-7fb45444703b", "url": "https://mywebsite.com/assets/public/audio/arm_sound.wav" }, { "id": "a4118533-5352-4918-b283-afc5fb6b1cd5", "url": "https://mywebsite.com/assets/public/audio/beep.ogg" } ], "playlists": [ { "id": "cc2c1eb9-81eb-4d50-98c1-dc2d4fcd9e98", "playOrder": [ { "assetId": "b75ce6f5-1dbb-48d1-9863-7fb45444703b" } ] } ], "alerts": [ { "type": "SIREN", "defaultPlaylistId": "cc2c1eb9-81eb-4d50-98c1-dc2d4fcd9e98" } ] } }, { "type": "AlexaInterface", "interface": "Alexa.SecurityPanelController", "version": "3", "properties": { "supported": [ { "name": "armState" }, { "name": "burglaryAlarm" } ], "proactivelyReported": true, "retrievable": true }, "configuration": { "supportedArmStates": [ { "value": "ARMED_AWAY" }, { "value": "ARMED_STAY" }, { "value": "DISARMED" } ] } }, { "type": "AlexaInterface", "interface": "Alexa.EndpointHealth", "version": "3.2", "properties": { "supported": [ { "name": "connectivity" } ], "proactivelyReported": true, "retrievable": true } }, { "type": "AlexaInterface", "interface": "Alexa", "version": "3" } ], "description": "My alarm...", "displayCategories": [ "SECURITY_PANEL" ], "endpointId": "659d0a3a6485cf4d09544f72", "friendlyName": "Office alarm", "manufacturerName": "My alarm" } ] } } }
发送的Chime事件内容
{ "event": { "header": { "namespace": "Alexa.SecurityPanelController.Alert", "name": "Chime", "messageId": uuid.v4(), "payloadVersion": "3" }, "endpoint": { "scope": { "type": "BearerToken", "token": user.alexaEventGateway.access_token }, "endpointId": device._id.toString(), }, "payload": { "playList": "cc2c1eb9-81eb-4d50-98c1-dc2d4fcd9e98", "timestamp": timeOfSample } }, "context": { "properties": [ { "namespace": "Alexa.SecurityPanelController.Alert", "name": "sirenState", "value": { "state": burglaryAlarm ? "ON":"OFF" }, "timeOfSample": timeOfSample, "uncertaintyInMilliseconds": 0 }, { "namespace": "Alexa.SecurityPanelController", "name": "burglaryAlarm", "value": { "value": burglaryAlarm? 'ALARM':'OK' }, "timeOfSample": timeOfSample, "uncertaintyInMilliseconds": 0 }, { "namespace": "Alexa.SecurityPanelController", "name": "armState", "value": this.device.armState, "timeOfSample": timeOfSample, "uncertaintyInMilliseconds": 0 }, { "namespace": "Alexa.EndpointHealth", "name": "connectivity", "value": { "value": "OK" }, "timeOfSample": timeOfSample, "uncertaintyInMilliseconds": 0 } ] } }
内容的提问来源于stack exchange,提问作者matzrm
相关产品推荐
相关产品推荐

