init
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://cognitive-agent.local/domains/ambient_light/function-parameters.schema.json",
|
||||
"title": "AmbientLightFunctionParameters",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"spec": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"domain": {"const": "ambient_light"},
|
||||
"operations": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"oneOf": [
|
||||
{
|
||||
"properties": {
|
||||
"capability": {"const": "ambient_light.set_power"},
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["state"],
|
||||
"properties": {"state": {"enum": ["on", "off"]}}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"capability": {"const": "ambient_light.set_illumination"},
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["color_hex", "brightness_pct"],
|
||||
"properties": {
|
||||
"color_hex": {"type": "string", "pattern": "^#[0-9A-Fa-f]{6}$"},
|
||||
"brightness_pct": {"type": "integer", "minimum": 0, "maximum": 100}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"properties": {
|
||||
"capability": {"const": "ambient_light.set_mode"},
|
||||
"parameters": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["mode"],
|
||||
"properties": {
|
||||
"mode": {"enum": ["camping", "rest", "cinema", "meditation", "romantic", "off", "on"]}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user