Initial Commit.
This commit is contained in:
@@ -0,0 +1,78 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-04/schema#",
|
||||
"title": "HueLight Command",
|
||||
"description": "",
|
||||
"version": "1.0.0",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"description": "",
|
||||
"type": "string",
|
||||
"pattern": "hos/huelight/command"
|
||||
},
|
||||
"switch": {
|
||||
"$ref": "hos:schema://core/types/boolean/command"
|
||||
},
|
||||
"brightness": {
|
||||
"$ref": "hos:schema://core/types/percentage/command"
|
||||
},
|
||||
"color": {
|
||||
"$ref": "hos:schema://core/types/color/command"
|
||||
},
|
||||
"alert": {
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"pattern": "hos/huelight/command/alert"
|
||||
},
|
||||
"set": {
|
||||
"type": "string",
|
||||
"enum": ["none", "select", "lselect"]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [ "type", "set" ]
|
||||
},
|
||||
"effect": {
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"pattern": "hos/huelight/command/effect"
|
||||
},
|
||||
"set": {
|
||||
"type": "string",
|
||||
"enum": ["none", "colorloop"]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"required": [ "type", "set" ]
|
||||
},
|
||||
"advproperties": {
|
||||
"description": "",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"pattern": "hos/huelight/command/advproperties"
|
||||
},
|
||||
"transitiontime": {
|
||||
"type": "integer"
|
||||
}
|
||||
},
|
||||
"additionalProperties": true,
|
||||
"required": [ "type" ]
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
"anyOf": [
|
||||
{ "required": [ "type", "switch" ] },
|
||||
{ "required": [ "type", "brightness" ] },
|
||||
{ "required": [ "type", "color" ] },
|
||||
{ "required": [ "type", "alert" ] },
|
||||
{ "required": [ "type", "effect" ] }
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user