registry: ThermostatController 3.2 and ThermostatController.Schedule
The thermostat is described from its page: one, two or three setpoints with holdUntil, AdjustTargetTemperature, SetThermostatMode with the six modes (EM_HEAT is new), ResumeSchedule, adaptiveRecoveryStatus, and its seven error types under Alexa.ThermostatController. A declaration gives supportedModes, supportsScheduling and the properties the device has; without them discovery is what 1.5.2 sent: HEAT, COOL, AUTO, OFF and the three setpoints with thermostatMode. supportedModes without HEAT or COOL is refused where it is declared. ThermostatController.Schedule replaces its stub. Wire change for a 1.x declaration of it: version 3.2 (was 1) and scheduleEnabled listed (was nothing). SetAdaptiveRecovery is taken only with supportsAdaptiveRecovery. 24 examples of three pages are saved as fixtures; the page folds the SetWeeklySchedule example away, its payload is tested from the tables. 207 tests pass, 191 before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
af1489696d
commit
f555a5df70
67 changed files with 2445 additions and 58 deletions
25
test/fixtures/alexa-docs/alexa-thermostatcontroller/AdjustTargetTemperature.directive.json
vendored
Normal file
25
test/fixtures/alexa-docs/alexa-thermostatcontroller/AdjustTargetTemperature.directive.json
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "AdjustTargetTemperature",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3.2"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"targetSetpointDelta": {
|
||||
"value": -2,
|
||||
"scale": "CELSIUS"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/AdjustTargetTemperature.response.json
vendored
Normal file
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/AdjustTargetTemperature.response.json
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "HEAT",
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 18,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 20,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
73
test/fixtures/alexa-docs/alexa-thermostatcontroller/ChangeReport-air-conditioner.json
vendored
Normal file
73
test/fixtures/alexa-docs/alexa-thermostatcontroller/ChangeReport-air-conditioner.json
vendored
Normal file
|
|
@ -0,0 +1,73 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "ChangeReport",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {
|
||||
"change": {
|
||||
"cause": {
|
||||
"type": "RULE_TRIGGER"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "COOL",
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 18,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "adaptiveRecoveryStatus",
|
||||
"value": "PRECOOLING",
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 19.1,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-01T08:01:00.00Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EndpointHealth",
|
||||
"name": "connectivity",
|
||||
"value": {
|
||||
"value": "OK"
|
||||
},
|
||||
"timeOfSample": "2024-06-30T23:59:00.32Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
66
test/fixtures/alexa-docs/alexa-thermostatcontroller/ChangeReport.json
vendored
Normal file
66
test/fixtures/alexa-docs/alexa-thermostatcontroller/ChangeReport.json
vendored
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "ChangeReport",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2.0 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {
|
||||
"change": {
|
||||
"cause": {
|
||||
"type": "PHYSICAL_INTERACTION"
|
||||
},
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "EM_HEAT",
|
||||
"timeOfSample": "2024-01-01T08:00:00.05Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 18,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.05Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 19.1,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.05Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.EndpointHealth",
|
||||
"name": "connectivity",
|
||||
"value": {
|
||||
"value": "OK"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T07:50:00.00Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
20
test/fixtures/alexa-docs/alexa-thermostatcontroller/ResumeSchedule.directive.json
vendored
Normal file
20
test/fixtures/alexa-docs/alexa-thermostatcontroller/ResumeSchedule.directive.json
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "ResumeSchedule",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3.2"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {}
|
||||
}
|
||||
}
|
||||
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/ResumeSchedule.response.json
vendored
Normal file
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/ResumeSchedule.response.json
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "HEAT",
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 18,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 17.9,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
32
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-dual.directive.json
vendored
Normal file
32
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-dual.directive.json
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "SetTargetTemperature",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3.2"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"lowerSetpoint": {
|
||||
"value": 68,
|
||||
"scale": "FAHRENHEIT"
|
||||
},
|
||||
"upperSetpoint": {
|
||||
"value": 72,
|
||||
"scale": "FAHRENHEIT"
|
||||
},
|
||||
"holdUntil": {
|
||||
"duration": "PT30M"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
56
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-dual.response.json
vendored
Normal file
56
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-dual.response.json
vendored
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "AUTO",
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "lowerSetpoint",
|
||||
"value": {
|
||||
"value": 68,
|
||||
"scale": "FAHRENHEIT"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "upperSetpoint",
|
||||
"value": {
|
||||
"value": 72,
|
||||
"scale": "FAHRENHEIT"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 66.5,
|
||||
"scale": "FAHRENHEIT"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
29
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-single.directive.json
vendored
Normal file
29
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-single.directive.json
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "SetTargetTemperature",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3.2"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"targetSetpoint": {
|
||||
"value": 20,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"holdUntil": {
|
||||
"start": "2017-10-04T14:00Z",
|
||||
"end": "2017-10-04T14:15Z"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-single.response.json
vendored
Normal file
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetTargetTemperature-single.response.json
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "HEAT",
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 20,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-01-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 19.3,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-01-21T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
24
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetThermostatMode.directive.json
vendored
Normal file
24
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetThermostatMode.directive.json
vendored
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"directive": {
|
||||
"header": {
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "SetThermostatMode",
|
||||
"messageId": "Unique version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token",
|
||||
"payloadVersion": "3.2"
|
||||
},
|
||||
"endpoint": {
|
||||
"scope": {
|
||||
"type": "BearerToken",
|
||||
"token": "OAuth2 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id",
|
||||
"cookie": {}
|
||||
},
|
||||
"payload": {
|
||||
"thermostatMode": {
|
||||
"value": "COOL"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetThermostatMode.response.json
vendored
Normal file
46
test/fixtures/alexa-docs/alexa-thermostatcontroller/SetThermostatMode.response.json
vendored
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa",
|
||||
"name": "Response",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID",
|
||||
"correlationToken": "Opaque correlation token that matches the request",
|
||||
"payloadVersion": "3"
|
||||
},
|
||||
"endpoint": {
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "COOL",
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 17,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 19,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-02-03T16:20:50.52Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
63
test/fixtures/alexa-docs/alexa-thermostatcontroller/StateReport-air-conditioner.json
vendored
Normal file
63
test/fixtures/alexa-docs/alexa-thermostatcontroller/StateReport-air-conditioner.json
vendored
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{
|
||||
"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 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "COOL",
|
||||
"timeOfSample": "2020-02-26T18:20:00.00Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 20,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2020-02-26T18:20:00.00Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "adaptiveRecoveryStatus",
|
||||
"value": "INACTIVE",
|
||||
"timeOfSample": "2020-02-26T18:20:00.00Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.PowerController",
|
||||
"name": "powerState",
|
||||
"value": "ON",
|
||||
"timeOfSample": "2020-02-26T18:20:00.00Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EndpointHealth",
|
||||
"name": "connectivity",
|
||||
"value": {
|
||||
"value": "OK"
|
||||
},
|
||||
"timeOfSample": "2020-02-26T18:20:00.00Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
59
test/fixtures/alexa-docs/alexa-thermostatcontroller/StateReport.json
vendored
Normal file
59
test/fixtures/alexa-docs/alexa-thermostatcontroller/StateReport.json
vendored
Normal file
|
|
@ -0,0 +1,59 @@
|
|||
{
|
||||
"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 bearer token"
|
||||
},
|
||||
"endpointId": "endpoint id"
|
||||
},
|
||||
"payload": {}
|
||||
},
|
||||
"context": {
|
||||
"properties": [
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "thermostatMode",
|
||||
"value": "HEAT",
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.ThermostatController",
|
||||
"name": "targetSetpoint",
|
||||
"value": {
|
||||
"value": 20,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-01T08:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 500
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.TemperatureSensor",
|
||||
"name": "temperature",
|
||||
"value": {
|
||||
"value": 19.9,
|
||||
"scale": "CELSIUS"
|
||||
},
|
||||
"timeOfSample": "2024-07-06T15:02:00.12Z",
|
||||
"uncertaintyInMilliseconds": 1000
|
||||
},
|
||||
{
|
||||
"namespace": "Alexa.EndpointHealth",
|
||||
"name": "connectivity",
|
||||
"value": {
|
||||
"value": "OK"
|
||||
},
|
||||
"timeOfSample": "2024-07-06T15:00:00.12Z",
|
||||
"uncertaintyInMilliseconds": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
91
test/fixtures/alexa-docs/alexa-thermostatcontroller/discovery-air-conditioner.json
vendored
Normal file
91
test/fixtures/alexa-docs/alexa-thermostatcontroller/discovery-air-conditioner.json
vendored
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa.Discovery",
|
||||
"name": "Discover.Response",
|
||||
"payloadVersion": "3",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID"
|
||||
},
|
||||
"payload": {
|
||||
"endpoints": [
|
||||
{
|
||||
"endpointId": "Unique ID of the endpoint",
|
||||
"manufacturerName": "Manufacturer of the endpoint",
|
||||
"description": "Smart Air Conditioner",
|
||||
"friendlyName": "Living room A/C",
|
||||
"displayCategories": [
|
||||
"THERMOSTAT",
|
||||
"TEMPERATURE_SENSOR"
|
||||
],
|
||||
"additionalAttributes": {
|
||||
"manufacturer": "Manufacturer of the endpoint",
|
||||
"model": "Model of the device",
|
||||
"serialNumber": "Serial number of the device",
|
||||
"firmwareVersion": "Firmware version of the device",
|
||||
"softwareVersion": "Software version of the device",
|
||||
"customIdentifier": "Optional custom identifier for the device"
|
||||
},
|
||||
"cookie": {},
|
||||
"capabilities": [
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.ThermostatController",
|
||||
"version": "3.2",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "targetSetpoint"
|
||||
},
|
||||
{
|
||||
"name": "thermostatMode"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
},
|
||||
"configuration": {
|
||||
"supportedModes": [
|
||||
"OFF",
|
||||
"COOL"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.PowerController",
|
||||
"version": "3",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "powerState"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.EndpointHealth",
|
||||
"version": "3.1",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "connectivity"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa",
|
||||
"version": "3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
100
test/fixtures/alexa-docs/alexa-thermostatcontroller/discovery.json
vendored
Normal file
100
test/fixtures/alexa-docs/alexa-thermostatcontroller/discovery.json
vendored
Normal file
|
|
@ -0,0 +1,100 @@
|
|||
{
|
||||
"event": {
|
||||
"header": {
|
||||
"namespace": "Alexa.Discovery",
|
||||
"name": "Discover.Response",
|
||||
"payloadVersion": "3",
|
||||
"messageId": "Unique identifier, preferably a version 4 UUID"
|
||||
},
|
||||
"payload": {
|
||||
"endpoints": [
|
||||
{
|
||||
"endpointId": "Unique ID of the endpoint",
|
||||
"manufacturerName": "Manufacturer of the endpoint",
|
||||
"description": "Smart Thermostat by Thermostat Maker",
|
||||
"friendlyName": "Hallway Thermostat",
|
||||
"displayCategories": [
|
||||
"THERMOSTAT",
|
||||
"TEMPERATURE_SENSOR"
|
||||
],
|
||||
"additionalAttributes": {
|
||||
"manufacturer": "Manufacturer of the endpoint",
|
||||
"model": "Model of the device",
|
||||
"serialNumber": "Serial number of the device",
|
||||
"firmwareVersion": "Firmware version of the device",
|
||||
"softwareVersion": "Software version of the device",
|
||||
"customIdentifier": "Optional custom identifier for the device"
|
||||
},
|
||||
"cookie": {},
|
||||
"capabilities": [
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.ThermostatController",
|
||||
"version": "3.2",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "lowerSetpoint"
|
||||
},
|
||||
{
|
||||
"name": "upperSetpoint"
|
||||
},
|
||||
{
|
||||
"name": "thermostatMode"
|
||||
},
|
||||
{
|
||||
"name": "adaptiveRecoveryStatus"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
},
|
||||
"configuration": {
|
||||
"supportedModes": [
|
||||
"HEAT",
|
||||
"COOL",
|
||||
"AUTO",
|
||||
"EM_HEAT"
|
||||
],
|
||||
"supportsScheduling": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.TemperatureSensor",
|
||||
"version": "3",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "temperature"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa.EndpointHealth",
|
||||
"version": "3.2",
|
||||
"properties": {
|
||||
"supported": [
|
||||
{
|
||||
"name": "connectivity"
|
||||
}
|
||||
],
|
||||
"proactivelyReported": true,
|
||||
"retrievable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "AlexaInterface",
|
||||
"interface": "Alexa",
|
||||
"version": "3"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue