Alexa 技能不适用于“增加/减少device_name到百分比”。
示例:我 - Alexa,将设备增加 20%
Alexa - 抱歉,设备没有响应。
但是,当我签入 Alexa 应用程序时,它会将亮度提高 20%。
要求 :
{
"directive": {
"header": {
"namespace": "Alexa.BrightnessController",
"name": "AdjustBrightness",
"payloadVersion": "3",
"messageId": "0d-4605-9d50",
"correlationToken": ""
},
"endpointId": "device",
"cookie": {
"Load": "LOAD_1",
"NodeIndex": "0",
"Type": "LIGHT",
"Name": "96005E",
"Thing": "device_0001"
}
},
"payload": {
"brightnessDelta": 20
}
}
}
回复 :
{
"context": {
"properties": [
{
"namespace": "Alexa.BrightnessController",
"name": "brightness",
"value": 71,
"timeOfSample": "2017-02-03T16:20:50.52Z",
"uncertaintyInMilliseconds": 500
}
]
},
"event": {
"header": {
"namespace": "Alexa",
"name": "Response",
"payloadVersion": "3",
"messageId": "48CE-BBE5",
"correlationToken": ""
},
"endpoint": {
"scope": {
"type": "BearerToken",
"token": "access-token-from-Amazon"
},
"endpointId": "device"
},
"payload": {}
}
}
当我命令“将设备设置为 20%”时,它工作正常,来自 Alexa 的“OK”响应。
注意:我已经尝试过 Alexa.PercentageController 它仍然给了我相同的错误响应。