Datasets:

Modalities:
Text
Formats:
json
ArXiv:
License:
File size: 10,403 Bytes
cffba29
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
{
  "Humidifier": {
    "meta": {
      "name": "Humidifier",
      "description": "Humidifier. Users can query and set power, sleep mode, target humidity, and humidification intensity. When the device is on and the humidity of its space is below the target, it gradually increases humidity according to the humidification intensity; it produces no further humidification effect when turned off or when the space has reached the target humidity. Current space humidity is provided by the containing space.",
      "version": "1.0.0",
      "from": ""
    },
    "properties": {
      "update": {
        "power": {
          "type": "boolean",
          "description": "Whether the humidifier is powered.",
          "mode": 3,
          "value": {
            "default": false
          }
        },
        "sleep_mode": {
          "type": "boolean",
          "description": "Whether sleep mode is enabled.",
          "mode": 3,
          "value": {
            "default": false
          }
        },
        "target_humidity": {
          "type": "integer",
          "description": "Desired humidity for the containing space.",
          "mode": 3,
          "value": {
            "default": 50,
            "unit": "%RH",
            "minimum": 0,
            "maximum": 100,
            "step": 1,
            "step_origin": 0
          }
        },
        "humidification_intensity": {
          "type": "string",
          "description": "Humidification output intensity.",
          "mode": 3,
          "value": {
            "default": "medium",
            "choices": [
              "low",
              "medium",
              "high"
            ]
          }
        }
      },
      "disabled": []
    },
    "functions": {
      "update": {
        "get_sleep_mode": {
          "description": "Return the sleep mode setting while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "mutation": false,
          "reads": [
            "power",
            "sleep_mode"
          ],
          "writes": [],
          "semantics": {
            "kind": "read",
            "property": "sleep_mode",
            "response_key": "sleep_mode",
            "preconditions": {
              "power": true
            }
          },
          "response": {
            "sleep_mode": {
              "type": "boolean",
              "description": "Whether sleep mode is enabled."
            }
          },
          "errorcodes": {}
        },
        "set_sleep_mode": {
          "description": "Enable or disable sleep mode while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {
              "value": {
                "type": "boolean",
                "description": "Requested sleep mode setting."
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          },
          "mutation": true,
          "reads": [
            "power",
            "sleep_mode"
          ],
          "writes": [
            "sleep_mode"
          ],
          "semantics": {
            "kind": "set",
            "property": "sleep_mode",
            "parameter": "value",
            "preconditions": {
              "power": true
            }
          },
          "response": {},
          "errorcodes": {}
        },
        "get_target_humidity": {
          "description": "Return the target humidity while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "mutation": false,
          "reads": [
            "power",
            "target_humidity"
          ],
          "writes": [],
          "semantics": {
            "kind": "read",
            "property": "target_humidity",
            "response_key": "target_humidity",
            "preconditions": {
              "power": true
            }
          },
          "response": {
            "target_humidity": {
              "type": "integer",
              "description": "Configured target humidity in percent relative humidity."
            }
          },
          "errorcodes": {}
        },
        "set_target_humidity": {
          "description": "Set the target humidity to an integer from 0 through 100 while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {
              "value": {
                "type": "integer",
                "minimum": 0,
                "maximum": 100,
                "description": "Target humidity in percent relative humidity."
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          },
          "mutation": true,
          "reads": [
            "power",
            "target_humidity"
          ],
          "writes": [
            "target_humidity"
          ],
          "semantics": {
            "kind": "set",
            "property": "target_humidity",
            "parameter": "value",
            "preconditions": {
              "power": true
            }
          },
          "response": {},
          "errorcodes": {}
        },
        "get_humidification_intensity": {
          "description": "Return the humidification intensity while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "mutation": false,
          "reads": [
            "power",
            "humidification_intensity"
          ],
          "writes": [],
          "semantics": {
            "kind": "read",
            "property": "humidification_intensity",
            "response_key": "humidification_intensity",
            "preconditions": {
              "power": true
            }
          },
          "response": {
            "humidification_intensity": {
              "type": "string",
              "description": "Current humidification intensity."
            }
          },
          "errorcodes": {}
        },
        "set_humidification_intensity": {
          "description": "Set humidification intensity to low, medium, or high while the humidifier is powered.",
          "parameters_schema": {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "enum": [
                  "low",
                  "medium",
                  "high"
                ],
                "description": "Requested humidification intensity."
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          },
          "mutation": true,
          "reads": [
            "power",
            "humidification_intensity"
          ],
          "writes": [
            "humidification_intensity"
          ],
          "semantics": {
            "kind": "set",
            "property": "humidification_intensity",
            "parameter": "value",
            "preconditions": {
              "power": true
            }
          },
          "response": {},
          "errorcodes": {}
        },
        "get_power": {
          "description": "Get the current power state.",
          "parameters_schema": {
            "type": "object",
            "properties": {},
            "required": [],
            "additionalProperties": false
          },
          "mutation": false,
          "reads": [
            "power"
          ],
          "writes": [],
          "semantics": {
            "kind": "read",
            "property": "power",
            "response_key": "power"
          },
          "response": {
            "power": {
              "type": "boolean",
              "description": "Current power state."
            }
          },
          "errorcodes": {}
        },
        "set_power": {
          "description": "Set power and dependent property access. While off, every non-power property is inaccessible through public getters/setters. Turning on restores access. A property marked auto_reset resets only when turning on.",
          "parameters_schema": {
            "type": "object",
            "properties": {
              "value": {
                "type": "boolean"
              }
            },
            "required": [
              "value"
            ],
            "additionalProperties": false
          },
          "mutation": true,
          "reads": [
            "power"
          ],
          "writes": [
            "power"
          ],
          "semantics": {
            "kind": "set",
            "property": "power",
            "parameter": "value"
          },
          "response": {},
          "errorcodes": {}
        }
      },
      "disabled": []
    },
    "events": {
      "update": {
        "tick": {
          "description": "On each tick, while powered, increase the containing space's humidity by a deterministic contribution when its current humidity is below target_humidity. The contribution is 1 percentage point at low intensity, 2 at medium intensity, and 3 at high intensity; sleep mode halves the contribution using integer reduction, with a minimum contribution of 1 while humidification is needed. Emit no humidity contribution when unpowered or when current humidity is at least target_humidity.",
          "effect_properties": [
            {
              "name": "power",
              "description": "Whether the humidifier is powered."
            },
            {
              "name": "sleep_mode",
              "description": "Whether sleep mode is enabled."
            },
            {
              "name": "target_humidity",
              "description": "Desired humidity for the containing space."
            },
            {
              "name": "humidification_intensity",
              "description": "Configured humidification output intensity."
            }
          ]
        }
      },
      "disabled": []
    }
  }
}