{
  "description": "validation of device's action to execute",
  "type": "object",
  "properties": {
    "switch": {
      "type": "string",
      "enum": [
        "on",
        "off",
        "stop"
      ]
    },
    "color": {
      "type": ["string", "number"]
      }
    },
    "brightness": {
      "type": ["string", "number"]
    },
    "mode": {
      "type": "string",
      "enum": [
        "auto",
        "manual",
        "cool",
        "heat",
        "dry",
        "fan",
        "silent",
        "energy",
        "sleep"
      ]
    },
    "position": {
      "type": ["string", "number"]
    },
    "fanspeed": {
      "type": ["string", "number"]
    },
    "swing_mode": {
      "type": "string",
      "enum": [
        "auto",
        "on",
        "off",
        "horizon",
        "horizon.off",
        "vertical",
        "vertical.off"
      ]
    },
    "volume": {
      "type": ["string", "number"]
    },
    "channel": {
      "type": ["string", "number"]
    },
    "humidity": {
      "type": ["string", "number"]
    },
    "temperature": {
      "type": ["string", "number"]
    },
    "ping": {
      "type": "string",
      "enum": [
        "trigger"
      ]
  }
}
