From 5a1f0376ddb28bc93fa766d2404a93b6f694c798 Mon Sep 17 00:00:00 2001 From: jsetton Date: Mon, 11 Mar 2019 15:48:25 -0400 Subject: [PATCH] Updated thermostat controller schema capabilities --- .../alexa_smart_home_message_schema.json | 27 ++++++++----------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/validation_schemas/alexa_smart_home_message_schema.json b/validation_schemas/alexa_smart_home_message_schema.json index 09227c4..7da8914 100644 --- a/validation_schemas/alexa_smart_home_message_schema.json +++ b/validation_schemas/alexa_smart_home_message_schema.json @@ -50,6 +50,15 @@ } } }, + "thermostatMode": { + "enum": [ + "AUTO", + "COOL", + "HEAT", + "ECO", + "OFF" + ] + }, "channel": { "type": "object", "additionalProperties": false, @@ -1380,14 +1389,7 @@ ] }, "value": { - "enum": [ - "HEAT", - "COOL", - "AUTO", - "ECO", - "OFF", - "CUSTOM" - ] + "$ref": "#/definitions/common.properties/thermostatMode" }, "timeOfSample": { "$ref": "#/definitions/common.properties/timestamp" @@ -1469,14 +1471,7 @@ "type": "array", "uniqueItems": true, "items": { - "type": "string", - "enum": [ - "HEAT", - "COOL", - "AUTO", - "ECO", - "OFF" - ] + "$ref": "#/definitions/common.properties/thermostatMode" } } }