diff --git a/templates/definition/common-schema.json b/templates/definition/common-schema.json index 3d03aae5b..0e8c41a1d 100644 --- a/templates/definition/common-schema.json +++ b/templates/definition/common-schema.json @@ -199,7 +199,6 @@ "enum": [ "string", "bool", - "number", "float", "int", "list", @@ -207,12 +206,6 @@ "duration" ] }, - "validvalues": { - "type": "array", - "items": { - "type": "string" - } - }, "choice": { "type": "array", "items": { diff --git a/templates/definition/defaults-schema.json b/templates/definition/defaults-schema.json index a444cfd95..aede6d993 100644 --- a/templates/definition/defaults-schema.json +++ b/templates/definition/defaults-schema.json @@ -50,6 +50,7 @@ }, "required": [ "generic", + "heating", "sockets", "switchsockets", "scooter" diff --git a/templates/definition/devices-schema.json b/templates/definition/devices-schema.json index 2d6f47c72..efedc8b1f 100644 --- a/templates/definition/devices-schema.json +++ b/templates/definition/devices-schema.json @@ -65,7 +65,9 @@ "type": "string" } }, - "required": ["name"], + "required": [ + "name" + ], "title": "Template" }, "Product": { @@ -80,14 +82,28 @@ } }, "anyOf": [ - {"required": ["brand"]}, - {"required": ["description"]} + { + "required": [ + "brand" + ] + }, + { + "required": [ + "description" + ] + } ], "title": "Product" }, "Groups": { "type": "string", - "enum": ["generic", "switchsockets", "scooter", "sockets"] + "enum": [ + "generic", + "heating", + "switchsockets", + "scooter", + "sockets" + ] }, "Linked": { "type": "object", @@ -99,7 +115,11 @@ }, "usage": { "type": "string", - "enum": ["grid", "pv", "battery"] + "enum": [ + "grid", + "pv", + "battery" + ] }, "multiple": { "type": "boolean" @@ -109,11 +129,21 @@ "minLength": 1 } }, - "required": ["template", "usage"] + "required": [ + "template", + "usage" + ] }, "Capability": { "type": "string", - "enum": ["1p3p", "iso151182", "rfid", "smahems", "mA"] + "enum": [ + "1p3p", + "battery-control", + "iso151182", + "rfid", + "smahems", + "mA" + ] } } } \ No newline at end of file