Closed emilerj closed 7 months ago
metoo
Hello, have you solved it?
Not yet. It seems noone could answer this issue.
Ok, thank you。 我很费解,为什么亚马逊没有多的log提示。 我发过去的json也完全是对的,通过了他们的Validation Schema.
Is this still happening? I don't see an error message when I set all interface retrievable false.
Closing due to inactivity.
I changed the "proactivelyReported" to be ture, and "retrievable" to be false. Alexa app was always show "There was a problem". If I changed "retrievable" to be ture, it disappeared and everything seems OK.
1.Is the "retrievable" must be true?
2. when responsing the command like "Alexa.PowerController" synchronously, is it required the "endpoint" paramter with scope?
This following JSON is the example of ChangeReport when discovery and the status of device changed. The report response is 202 code and I validated that the message was OK according to the “validation_schemas” document. It seemed that the report status did not work.
{ "context": { "properties": [] }, "event": { "header": { "messageId": "8UJjVopqgIrISeCGDx82QOF3Vcvnmcjf", "namespace": "Alexa", "name": "ChangeReport", "payloadVersion": "3" }, "endpoint": { "scope": { "type": "BearerToken", "token": "Atza|IwEBIP32iJfp0uy2owLwbgTxbPi3y2cpSz23rJUFbdkoppuZDXx7aD2natjo06n60jYcRU1VyUPLU31l8rVQUJHocusEqortO9pS2mildZ9X0yBi2T01QzXeNWiWOFxZFp86WZziLYzbVxDQxZb0y05Zvb6qVGUTuTmDC3OGBKds0ZJMqxe2YfUeFO41WZSRpe6GvHLDBUl-nUX6QsKAyEW-dZs0zh9hkESRJRXUtu9sl9QfyYt-5CDbelbn7Na5wCUEbfFtWLGwhRyURgGYP9Np7ThBbCBecicBCyu3gfCOml31Ygb6c-t8YsKUWLcjHTLBauz-dcnTMC-whhraEv3faMRc_-s7PbhbAnvbpCDXojbiEA" }, "endpointId": "my device id" }, "payload": { "change": { "cause": { "type": "PERIODIC_POLL" }, "properties": [ { "namespace": "Alexa.PowerController", "name": "powerState", "value": "ON", "timeOfSample": "2017-12-29T09:26:23.7Z", "uncertaintyInMilliseconds": 7 }, { "namespace": "Alexa.EndpointHealth", "name": "connectivity", "value": { "value": "OK" }, "timeOfSample": "2017-12-29T09:26:23.7Z", "uncertaintyInMilliseconds": 7 } ] } } } }