diff --git a/schema.json b/schema.json index 695cbfd70..a5e157eaa 100644 --- a/schema.json +++ b/schema.json @@ -112,7 +112,7 @@ "type": "object", "properties": { "mode": { - "type": "string" + "$ref": "#/definitions/pollMode" }, "interval": { "$ref": "#/definitions/duration" @@ -173,6 +173,13 @@ "pv", "minpv" ] + }, + "pollMode": { + "enum": [ + "alway", + "charging", + "connected" + ] } } }