78 lines
1.8 KiB
JSON
78 lines
1.8 KiB
JSON
{
|
|
"$schema": "http://json-schema.org/draft-04/schema#",
|
|
"title": "HueLight Command",
|
|
"description": "",
|
|
"version": "1.0.0",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"description": "",
|
|
"type": "string",
|
|
"pattern": "hue/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": "hue/huelight/command/alert"
|
|
},
|
|
"set": {
|
|
"type": "string",
|
|
"enum": ["none", "select", "lselect"]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [ "type", "set" ]
|
|
},
|
|
"effect": {
|
|
"description": "",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"pattern": "hue/huelight/command/effect"
|
|
},
|
|
"set": {
|
|
"type": "string",
|
|
"enum": ["none", "colorloop"]
|
|
}
|
|
},
|
|
"additionalProperties": false,
|
|
"required": [ "type", "set" ]
|
|
},
|
|
"advproperties": {
|
|
"description": "",
|
|
"type": "object",
|
|
"properties": {
|
|
"type": {
|
|
"type": "string",
|
|
"pattern": "hue/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" ] }
|
|
]
|
|
} |