File size: 1,459 Bytes
c977cb2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[
  {
    "name": "set_device_state",
    "description": "Turn a smart-home device on or off.",
    "parameters": {
      "type": "object",
      "properties": {
        "device_id": {
          "type": "string",
          "description": "Device ID formatted as <device_type>.<room>"
        },
        "state": {
          "type": "string",
          "description": "on or off"
        }
      },
      "required": [
        "device_id",
        "state"
      ]
    }
  },
  {
    "name": "set_brightness",
    "description": "Set the brightness of a light.",
    "parameters": {
      "type": "object",
      "properties": {
        "device_id": {
          "type": "string",
          "description": "Light ID formatted as light.<room>"
        },
        "level": {
          "type": "integer",
          "description": "Brightness percentage from 0 to 100"
        }
      },
      "required": [
        "device_id",
        "level"
      ]
    }
  },
  {
    "name": "set_temperature",
    "description": "Set the target temperature of a room.",
    "parameters": {
      "type": "object",
      "properties": {
        "zone_id": {
          "type": "string",
          "description": "Climate zone ID formatted as climate.<room>"
        },
        "celsius": {
          "type": "integer",
          "description": "Target temperature in degrees Celsius"
        }
      },
      "required": [
        "zone_id",
        "celsius"
      ]
    }
  }
]