{
  "description": "validation of a standard rokid homebase device's actions",
  "type": "object",
  "properties": {
    "switch": {
      "type": ["string", "null"],
      "enum": [
        "on",
        "off",
        "stop",
        null
      ]
    },
    "color": {
      "type": ["number","null"],
      "minimum": 0,
      "maximum": 16777215
    },
    "brightness": {
      "type": ["number","null"],
      "minimum": 0,
      "maximum": 100
    },
    "mode": {
      "type": ["string", "null"],
      "enum": [
        "auto",
        "manual",
        "cool",
        "heat",
        "dry",
        "fan",
        "silent",
        "energy",
        "sleep"
      ]
    },
    "swing_mode": {
      "type": ["string", "null"],
      "enum": [
        "auto",
        "on",
        "off",
        "horizon",
        "horizon.off",
        "vertical",
        "vertical.off",
        null
      ]
    },
    "volume": {
      "type": ["number","null"],
      "minimum": 0,
      "maximum": 100
    },
    "channel": {
      "type": ["number","null"],
      "minimum": 0
    },
    "humidity": {
      "type": ["number","null"],
      "minimum": 0,
      "maximum": 100
    },
    "temperature": {
      "type": ["number","null"],
      "minimum": 0,
      "maximum": 100
    }
  }
}
