{
  "@context": [
    "http://w3c.github.io/wot/w3c-wot-td-context.jsonld",
    {
      "st": "http://example.org/smartthings#"
    }
  ],
  "@type": "capability",
  "name": "switchlevel",
  "encodings": [
    "JSON"
  ],
  "uris": [
    "level"
  ],
  "properties": {
    "valueType": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "type": "number",
      "minimum": 0,
      "maximum": 100
    },
    "writable": false
  },
  "actions": [
    {
      "@type": "st:setlevel",
      "name": "setlevel",
      "inputData": {
        "valueType": {
          "$schema": "http://json-schema.org/draft-04/schema#",
          "type": "object",
          "required": [
            "level"
          ],
          "properties": {
            "level": {
              "type": "number",
              "minimum": 0,
              "maximum": 100
            },
            "transitiontime": {
              "type": "number",
              "minumum": 0,
              "maximum": 6553
            }
          }
        }
      }
    }
  ]
}
