Eight descriptors written from their pages, each with its version, the value of its property and the payload of every directive. Seven replace a stub; Alexa.HumiditySensor is new, as AlexaInterfaceType.HUMIDITY_SENSOR. LockController is deferrable: defer() on a lock logs no warning. A 1.x declaration of LockController, MotionSensor, PercentageController or PowerLevelController now lists its property in discovery, where 1.5.2 listed none: the zoo's lock, motion sensor and heater come out as the JSON Alexa accepted. A payload that does not fit (hue 361, 900 K) is answered with INVALID_VALUE. 48 examples of the eight pages are saved as fixtures. 191 tests pass, 168 before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
39 lines
952 B
JSON
39 lines
952 B
JSON
{
|
|
"event": {
|
|
"header": {
|
|
"namespace": "Alexa",
|
|
"name": "StateReport",
|
|
"messageId": "Unique identifier, preferably a version 4 UUID",
|
|
"correlationToken": "Opaque correlation token that matches the request",
|
|
"payloadVersion": "3"
|
|
},
|
|
"endpoint": {
|
|
"scope": {
|
|
"type": "BearerToken",
|
|
"token": "OAuth2.0 bearer token"
|
|
},
|
|
"endpointId": "Endpoint ID"
|
|
},
|
|
"payload": {}
|
|
},
|
|
"context": {
|
|
"properties": [
|
|
{
|
|
"namespace": "Alexa.MotionSensor",
|
|
"name": "detectionState",
|
|
"value": "NOT_DETECTED",
|
|
"timeOfSample": "2024-07-03T10:20:50.52Z",
|
|
"uncertaintyInMilliseconds": 0
|
|
},
|
|
{
|
|
"namespace": "Alexa.EndpointHealth",
|
|
"name": "connectivity",
|
|
"value": {
|
|
"value": "OK"
|
|
},
|
|
"timeOfSample": "2024-07-03T09:56:50.12Z",
|
|
"uncertaintyInMilliseconds": 0
|
|
}
|
|
]
|
|
}
|
|
}
|