@deconz-community/ddf-validator 2.17.0 → 2.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,128 +85,109 @@ export type DDF = {
85
85
  read?: ({
86
86
  fn: "none";
87
87
  } | {
88
- /** Generic function to read ZCL attributes. */
89
- fn?: undefined;
90
- /** Attribute ID. */
91
- at: string | string[];
92
- /** Cluster ID. */
93
- cl: string;
94
88
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
95
89
  ep?: (string | number) | undefined;
96
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
97
- mf?: string | undefined;
98
- /** Javascript expression to transform the raw value. */
99
- eval?: string | undefined;
100
- } | {
101
- /** Generic function to read ZCL attributes. */
102
- fn: "zcl";
103
- /** Attribute ID. */
104
- at: string | string[];
105
90
  /** Cluster ID. */
106
91
  cl: string;
107
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
108
- ep?: (string | number) | undefined;
92
+ /** Attribute ID. */
93
+ at?: (string | string[]) | undefined;
109
94
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
110
95
  mf?: string | undefined;
111
- /** Javascript expression to transform the raw value. */
96
+ /** Zigbee command. */
97
+ cmd?: string | undefined;
98
+ /** Javascript expression to transform the attribute value to the Item value. */
112
99
  eval?: string | undefined;
113
100
  /** Relative path of a Javascript .js file. */
114
101
  script?: string | undefined;
102
+ /** Zigbee command frame control. */
103
+ fc?: (string | number) | undefined;
104
+ /** Generic function to read ZCL attributes. */
105
+ fn?: undefined;
115
106
  } | {
116
- /** Generic function to parse ZCL values from read/report commands. */
117
- fn: "zcl:attr";
118
- /** String hex value or array of string hex values. */
119
- at: string | string[];
120
- /** Cluster ID. */
121
- cl: string;
122
107
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
123
108
  ep?: (string | number) | undefined;
109
+ /** Cluster ID. */
110
+ cl: string;
111
+ /** Attribute ID. */
112
+ at?: (string | string[]) | undefined;
124
113
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
125
114
  mf?: string | undefined;
115
+ /** Zigbee command. */
116
+ cmd?: string | undefined;
126
117
  /** Javascript expression to transform the attribute value to the Item value. */
127
118
  eval?: string | undefined;
128
119
  /** Relative path of a Javascript .js file. */
129
120
  script?: string | undefined;
130
- } | {
121
+ /** Zigbee command frame control. */
122
+ fc?: (string | number) | undefined;
131
123
  /** Generic function to parse ZCL values from read/report commands. */
132
- fn: "zcl:cmd";
133
- /** Cluster ID. */
134
- cl: string;
124
+ fn: "zcl:attr";
125
+ } | {
135
126
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
136
127
  ep?: (string | number) | undefined;
128
+ /** Cluster ID. */
129
+ cl: string;
130
+ /** Attribute ID. */
131
+ at?: (string | string[]) | undefined;
137
132
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
138
133
  mf?: string | undefined;
139
134
  /** Zigbee command. */
140
135
  cmd?: string | undefined;
141
136
  /** Javascript expression to transform the attribute value to the Item value. */
142
137
  eval?: string | undefined;
143
- /** Zigbee command frame control. */
144
- fc?: (string | number) | undefined;
145
138
  /** Relative path of a Javascript .js file. */
146
139
  script?: string | undefined;
140
+ /** Zigbee command frame control. */
141
+ fc?: (string | number) | undefined;
142
+ /** Generic function to parse ZCL values from read/report commands. */
143
+ fn: "zcl:cmd";
147
144
  } | {
148
145
  /** Generic function to read all Tuya datapoints. It has no parameters. */
149
146
  fn: "tuya";
150
147
  }) | undefined;
151
148
  /** Fonction used to parse incoming values. */
152
149
  parse?: ({
153
- /** Generic function to parse ZCL attributes and commands. */
154
- fn?: undefined;
155
- /** Attribute ID. */
156
- at?: (string | string[]) | undefined;
157
- /** Cluster ID. */
158
- cl: string;
159
- cppsrc?: string | undefined;
160
150
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
161
151
  ep?: (string | number) | undefined;
162
- /** Zigbee command. */
163
- cmd?: string | undefined;
164
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
165
- mf?: string | undefined;
166
- /** Javascript expression to transform the raw value. */
167
- eval?: string | undefined;
168
- /** Relative path of a Javascript .js file. */
169
- script?: string | undefined;
170
- } | {
171
- /** Generic function to parse ZCL attributes and commands. */
172
- fn: "zcl";
173
- /** Attribute ID. */
174
- at?: (string | string[]) | undefined;
175
152
  /** Cluster ID. */
176
153
  cl: string;
177
- cppsrc?: string | undefined;
178
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
179
- ep?: (string | number) | undefined;
180
- /** Zigbee command. */
181
- cmd?: string | undefined;
154
+ /** Attribute ID. */
155
+ at?: (string | string[]) | undefined;
182
156
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
183
157
  mf?: string | undefined;
184
- /** Javascript expression to transform the raw value. */
158
+ /** Zigbee command. */
159
+ cmd?: string | undefined;
160
+ /** Javascript expression to transform the attribute value to the Item value. */
185
161
  eval?: string | undefined;
186
162
  /** Relative path of a Javascript .js file. */
187
163
  script?: string | undefined;
164
+ /** Generic function to read ZCL attributes. */
165
+ fn?: undefined;
166
+ cppsrc?: string | undefined;
188
167
  } | {
189
- /** Generic function to parse ZCL values from read/report commands. */
190
- fn: "zcl:attr";
191
- /** String hex value or array of string hex values. */
192
- at: string | string[];
193
- /** Cluster ID. */
194
- cl: string;
195
168
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
196
169
  ep?: (string | number) | undefined;
170
+ /** Cluster ID. */
171
+ cl: string;
172
+ /** Attribute ID. */
173
+ at?: (string | string[]) | undefined;
197
174
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
198
175
  mf?: string | undefined;
176
+ /** Zigbee command. */
177
+ cmd?: string | undefined;
199
178
  /** Javascript expression to transform the attribute value to the Item value. */
200
179
  eval?: string | undefined;
201
180
  /** Relative path of a Javascript .js file. */
202
181
  script?: string | undefined;
203
- } | {
204
182
  /** Generic function to parse ZCL values from read/report commands. */
205
- fn: "zcl:cmd";
206
- /** Cluster ID. */
207
- cl: string;
183
+ fn: "zcl:attr";
184
+ } | {
208
185
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
209
186
  ep?: (string | number) | undefined;
187
+ /** Cluster ID. */
188
+ cl: string;
189
+ /** Attribute ID. */
190
+ at?: (string | string[]) | undefined;
210
191
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
211
192
  mf?: string | undefined;
212
193
  /** Zigbee command. */
@@ -215,6 +196,8 @@ export type DDF = {
215
196
  eval?: string | undefined;
216
197
  /** Relative path of a Javascript .js file. */
217
198
  script?: string | undefined;
199
+ /** Generic function to parse ZCL values from read/report commands. */
200
+ fn: "zcl:cmd";
218
201
  } | {
219
202
  /** Generic function to parse IAS ZONE status change notifications or zone status from read/report command. */
220
203
  fn: "ias:zonestatus";
@@ -224,7 +207,7 @@ export type DDF = {
224
207
  /** Generic function to to convert number to string. */
225
208
  fn: "numtostr";
226
209
  /** The source item holding the number. */
227
- srcitem: "state/airqualityppb" | "state/pm2_5";
210
+ srcitem: "state/y" | "state/x" | "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/current" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/quantity" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/group" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id";
228
211
  /** Comparison operator (lt | le | eq | gt | ge) */
229
212
  op: "lt" | "le" | "eq" | "gt" | "ge";
230
213
  /** Array of (num, string) mappings */
@@ -233,114 +216,108 @@ export type DDF = {
233
216
  /** Specialized function to parse time, local and last set time from read/report commands of the time cluster and auto-sync time if needed. */
234
217
  fn: "time";
235
218
  } | {
236
- /** Generic function to parse custom Xiaomi attributes and commands. */
237
- fn: "xiaomi:special";
238
219
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
239
220
  ep?: (string | number) | undefined;
221
+ /** Attribute ID. */
222
+ at?: (string | string[]) | undefined;
240
223
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
241
224
  mf?: string | undefined;
242
- /** Attribute ID. The attribute to parse, shall be 0xff01, 0xff02 or 0x00f7 */
243
- at?: string | undefined;
225
+ /** Javascript expression to transform the attribute value to the Item value. */
226
+ eval?: string | undefined;
227
+ /** Relative path of a Javascript .js file. */
228
+ script?: string | undefined;
229
+ /** Generic function to parse custom Xiaomi attributes and commands. */
230
+ fn: "xiaomi:special";
244
231
  /** A 8-bit string hex value. */
245
232
  idx: string;
246
- /** Javascript expression to transform the raw value. */
233
+ } | {
234
+ /** Javascript expression to transform the attribute value to the Item value. */
247
235
  eval?: string | undefined;
248
236
  /** Relative path of a Javascript .js file. */
249
237
  script?: string | undefined;
250
- } | {
251
238
  /** Generic function to parse Tuya data. */
252
239
  fn: "tuya";
253
240
  /** Data point ID. 1-255 the datapoint ID. */
254
241
  dpid: number;
255
- /** Javascript expression to transform the raw value. */
256
- eval?: string | undefined;
257
- /** Relative path of a Javascript .js file. */
258
- script?: string | undefined;
259
242
  }) | undefined;
260
243
  /** Fonction used to write value. */
261
244
  write?: ({
262
245
  fn: "none";
263
246
  } | {
264
- fn?: undefined;
265
- /** Attribute ID. */
266
- at?: (string | string[]) | undefined;
267
- "state.timeout"?: number | undefined;
268
- "change.timeout"?: number | undefined;
269
- /** Cluster ID. */
270
- cl: string;
271
- /** Data type. */
272
- dt: string;
273
247
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
274
248
  ep?: (string | number) | undefined;
249
+ /** Cluster ID. */
250
+ cl: string;
251
+ /** Attribute ID. */
252
+ at?: (string | string[]) | undefined;
275
253
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
276
254
  mf?: string | undefined;
277
- /** Javascript expression to transform the raw value. */
255
+ /** Zigbee command. */
256
+ cmd?: string | undefined;
257
+ /** Javascript expression to transform the attribute value to the Item value. */
278
258
  eval?: string | undefined;
279
259
  /** Relative path of a Javascript .js file. */
280
260
  script?: string | undefined;
281
- } | {
282
- fn: "zcl";
283
- /** Attribute ID. */
284
- at?: (string | string[]) | undefined;
285
261
  "state.timeout"?: number | undefined;
286
262
  "change.timeout"?: number | undefined;
287
- /** Cluster ID. */
288
- cl: string;
289
263
  /** Data type. */
290
- dt: string;
264
+ dt?: string | undefined;
265
+ /** Generic function to read ZCL attributes. */
266
+ fn?: undefined;
267
+ cppsrc?: string | undefined;
268
+ } | {
291
269
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
292
270
  ep?: (string | number) | undefined;
271
+ /** Cluster ID. */
272
+ cl: string;
273
+ /** Attribute ID. */
274
+ at?: (string | string[]) | undefined;
293
275
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
294
276
  mf?: string | undefined;
295
- /** Javascript expression to transform the raw value. */
277
+ /** Zigbee command. */
278
+ cmd?: string | undefined;
279
+ /** Javascript expression to transform the attribute value to the Item value. */
296
280
  eval?: string | undefined;
297
281
  /** Relative path of a Javascript .js file. */
298
282
  script?: string | undefined;
299
- } | {
300
- /** Generic function to parse ZCL values from read/report commands. */
301
- fn: "zcl:attr";
302
- /** String hex value or array of string hex values. */
303
- at: string | string[];
304
283
  "state.timeout"?: number | undefined;
305
284
  "change.timeout"?: number | undefined;
306
- /** Cluster ID. */
307
- cl: string;
308
285
  /** Data type. */
309
- dt: string;
286
+ dt?: string | undefined;
287
+ /** Generic function to parse ZCL values from read/report commands. */
288
+ fn: "zcl:attr";
289
+ } | {
310
290
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
311
291
  ep?: (string | number) | undefined;
292
+ /** Cluster ID. */
293
+ cl: string;
294
+ /** Attribute ID. */
295
+ at?: (string | string[]) | undefined;
312
296
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
313
297
  mf?: string | undefined;
298
+ /** Zigbee command. */
299
+ cmd?: string | undefined;
314
300
  /** Javascript expression to transform the attribute value to the Item value. */
315
301
  eval?: string | undefined;
316
302
  /** Relative path of a Javascript .js file. */
317
303
  script?: string | undefined;
318
- } | {
304
+ "state.timeout"?: number | undefined;
305
+ "change.timeout"?: number | undefined;
306
+ /** Data type. */
307
+ dt?: string | undefined;
319
308
  /** Generic function to parse ZCL values from read/report commands. */
320
309
  fn: "zcl:cmd";
321
- /** Cluster ID. */
322
- cl: string;
323
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
324
- ep?: (string | number) | undefined;
325
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
326
- mf?: string | undefined;
327
- /** Zigbee command. */
328
- cmd?: string | undefined;
310
+ } | {
329
311
  /** Javascript expression to transform the attribute value to the Item value. */
330
312
  eval?: string | undefined;
331
313
  /** Relative path of a Javascript .js file. */
332
314
  script?: string | undefined;
333
- } | {
334
315
  /** Generic function to write Tuya data. */
335
316
  fn: "tuya";
336
317
  /** Data point ID. 1-255 the datapoint ID. */
337
318
  dpid: number;
338
319
  /** Data type. */
339
320
  dt: string;
340
- /** Javascript expression to transform the raw value. */
341
- eval?: string | undefined;
342
- /** Relative path of a Javascript .js file. */
343
- script?: string | undefined;
344
321
  }) | undefined;
345
322
  /** Refresh interval used for read fonction, NEED to be superior at value used in binding part. */
346
323
  "refresh.interval"?: number | undefined;
@@ -349,7 +326,7 @@ export type DDF = {
349
326
  /** Defaut value. */
350
327
  default?: unknown | undefined;
351
328
  /** Item name. */
352
- name: "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/y" | "state/x" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id";
329
+ name: "state/y" | "state/x" | "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/current" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/quantity" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/group" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id";
353
330
  }[];
354
331
  example?: unknown | undefined;
355
332
  }[];
@@ -425,128 +402,109 @@ export type DDF = {
425
402
  read?: ({
426
403
  fn: "none";
427
404
  } | {
428
- /** Generic function to read ZCL attributes. */
429
- fn?: undefined;
430
- /** Attribute ID. */
431
- at: string | string[];
432
- /** Cluster ID. */
433
- cl: string;
434
405
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
435
406
  ep?: (string | number) | undefined;
436
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
437
- mf?: string | undefined;
438
- /** Javascript expression to transform the raw value. */
439
- eval?: string | undefined;
440
- } | {
441
- /** Generic function to read ZCL attributes. */
442
- fn: "zcl";
443
- /** Attribute ID. */
444
- at: string | string[];
445
407
  /** Cluster ID. */
446
408
  cl: string;
447
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
448
- ep?: (string | number) | undefined;
409
+ /** Attribute ID. */
410
+ at?: (string | string[]) | undefined;
449
411
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
450
412
  mf?: string | undefined;
451
- /** Javascript expression to transform the raw value. */
413
+ /** Zigbee command. */
414
+ cmd?: string | undefined;
415
+ /** Javascript expression to transform the attribute value to the Item value. */
452
416
  eval?: string | undefined;
453
417
  /** Relative path of a Javascript .js file. */
454
418
  script?: string | undefined;
419
+ /** Zigbee command frame control. */
420
+ fc?: (string | number) | undefined;
421
+ /** Generic function to read ZCL attributes. */
422
+ fn?: undefined;
455
423
  } | {
456
- /** Generic function to parse ZCL values from read/report commands. */
457
- fn: "zcl:attr";
458
- /** String hex value or array of string hex values. */
459
- at: string | string[];
460
- /** Cluster ID. */
461
- cl: string;
462
424
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
463
425
  ep?: (string | number) | undefined;
426
+ /** Cluster ID. */
427
+ cl: string;
428
+ /** Attribute ID. */
429
+ at?: (string | string[]) | undefined;
464
430
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
465
431
  mf?: string | undefined;
432
+ /** Zigbee command. */
433
+ cmd?: string | undefined;
466
434
  /** Javascript expression to transform the attribute value to the Item value. */
467
435
  eval?: string | undefined;
468
436
  /** Relative path of a Javascript .js file. */
469
437
  script?: string | undefined;
470
- } | {
438
+ /** Zigbee command frame control. */
439
+ fc?: (string | number) | undefined;
471
440
  /** Generic function to parse ZCL values from read/report commands. */
472
- fn: "zcl:cmd";
473
- /** Cluster ID. */
474
- cl: string;
441
+ fn: "zcl:attr";
442
+ } | {
475
443
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
476
444
  ep?: (string | number) | undefined;
445
+ /** Cluster ID. */
446
+ cl: string;
447
+ /** Attribute ID. */
448
+ at?: (string | string[]) | undefined;
477
449
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
478
450
  mf?: string | undefined;
479
451
  /** Zigbee command. */
480
452
  cmd?: string | undefined;
481
453
  /** Javascript expression to transform the attribute value to the Item value. */
482
454
  eval?: string | undefined;
483
- /** Zigbee command frame control. */
484
- fc?: (string | number) | undefined;
485
455
  /** Relative path of a Javascript .js file. */
486
456
  script?: string | undefined;
457
+ /** Zigbee command frame control. */
458
+ fc?: (string | number) | undefined;
459
+ /** Generic function to parse ZCL values from read/report commands. */
460
+ fn: "zcl:cmd";
487
461
  } | {
488
462
  /** Generic function to read all Tuya datapoints. It has no parameters. */
489
463
  fn: "tuya";
490
464
  }) | undefined;
491
465
  /** Fonction used to parse incoming values. */
492
466
  parse?: ({
493
- /** Generic function to parse ZCL attributes and commands. */
494
- fn?: undefined;
495
- /** Attribute ID. */
496
- at?: (string | string[]) | undefined;
497
- /** Cluster ID. */
498
- cl: string;
499
- cppsrc?: string | undefined;
500
467
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
501
468
  ep?: (string | number) | undefined;
502
- /** Zigbee command. */
503
- cmd?: string | undefined;
504
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
505
- mf?: string | undefined;
506
- /** Javascript expression to transform the raw value. */
507
- eval?: string | undefined;
508
- /** Relative path of a Javascript .js file. */
509
- script?: string | undefined;
510
- } | {
511
- /** Generic function to parse ZCL attributes and commands. */
512
- fn: "zcl";
513
- /** Attribute ID. */
514
- at?: (string | string[]) | undefined;
515
469
  /** Cluster ID. */
516
470
  cl: string;
517
- cppsrc?: string | undefined;
518
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
519
- ep?: (string | number) | undefined;
520
- /** Zigbee command. */
521
- cmd?: string | undefined;
471
+ /** Attribute ID. */
472
+ at?: (string | string[]) | undefined;
522
473
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
523
474
  mf?: string | undefined;
524
- /** Javascript expression to transform the raw value. */
475
+ /** Zigbee command. */
476
+ cmd?: string | undefined;
477
+ /** Javascript expression to transform the attribute value to the Item value. */
525
478
  eval?: string | undefined;
526
479
  /** Relative path of a Javascript .js file. */
527
480
  script?: string | undefined;
481
+ /** Generic function to read ZCL attributes. */
482
+ fn?: undefined;
483
+ cppsrc?: string | undefined;
528
484
  } | {
529
- /** Generic function to parse ZCL values from read/report commands. */
530
- fn: "zcl:attr";
531
- /** String hex value or array of string hex values. */
532
- at: string | string[];
533
- /** Cluster ID. */
534
- cl: string;
535
485
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
536
486
  ep?: (string | number) | undefined;
487
+ /** Cluster ID. */
488
+ cl: string;
489
+ /** Attribute ID. */
490
+ at?: (string | string[]) | undefined;
537
491
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
538
492
  mf?: string | undefined;
493
+ /** Zigbee command. */
494
+ cmd?: string | undefined;
539
495
  /** Javascript expression to transform the attribute value to the Item value. */
540
496
  eval?: string | undefined;
541
497
  /** Relative path of a Javascript .js file. */
542
498
  script?: string | undefined;
543
- } | {
544
499
  /** Generic function to parse ZCL values from read/report commands. */
545
- fn: "zcl:cmd";
546
- /** Cluster ID. */
547
- cl: string;
500
+ fn: "zcl:attr";
501
+ } | {
548
502
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
549
503
  ep?: (string | number) | undefined;
504
+ /** Cluster ID. */
505
+ cl: string;
506
+ /** Attribute ID. */
507
+ at?: (string | string[]) | undefined;
550
508
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
551
509
  mf?: string | undefined;
552
510
  /** Zigbee command. */
@@ -555,6 +513,8 @@ export type DDF = {
555
513
  eval?: string | undefined;
556
514
  /** Relative path of a Javascript .js file. */
557
515
  script?: string | undefined;
516
+ /** Generic function to parse ZCL values from read/report commands. */
517
+ fn: "zcl:cmd";
558
518
  } | {
559
519
  /** Generic function to parse IAS ZONE status change notifications or zone status from read/report command. */
560
520
  fn: "ias:zonestatus";
@@ -564,7 +524,7 @@ export type DDF = {
564
524
  /** Generic function to to convert number to string. */
565
525
  fn: "numtostr";
566
526
  /** The source item holding the number. */
567
- srcitem: "state/airqualityppb" | "state/pm2_5";
527
+ srcitem: "state/y" | "state/x" | "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/current" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/quantity" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/group" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id";
568
528
  /** Comparison operator (lt | le | eq | gt | ge) */
569
529
  op: "lt" | "le" | "eq" | "gt" | "ge";
570
530
  /** Array of (num, string) mappings */
@@ -573,114 +533,108 @@ export type DDF = {
573
533
  /** Specialized function to parse time, local and last set time from read/report commands of the time cluster and auto-sync time if needed. */
574
534
  fn: "time";
575
535
  } | {
576
- /** Generic function to parse custom Xiaomi attributes and commands. */
577
- fn: "xiaomi:special";
578
536
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
579
537
  ep?: (string | number) | undefined;
538
+ /** Attribute ID. */
539
+ at?: (string | string[]) | undefined;
580
540
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
581
541
  mf?: string | undefined;
582
- /** Attribute ID. The attribute to parse, shall be 0xff01, 0xff02 or 0x00f7 */
583
- at?: string | undefined;
542
+ /** Javascript expression to transform the attribute value to the Item value. */
543
+ eval?: string | undefined;
544
+ /** Relative path of a Javascript .js file. */
545
+ script?: string | undefined;
546
+ /** Generic function to parse custom Xiaomi attributes and commands. */
547
+ fn: "xiaomi:special";
584
548
  /** A 8-bit string hex value. */
585
549
  idx: string;
586
- /** Javascript expression to transform the raw value. */
550
+ } | {
551
+ /** Javascript expression to transform the attribute value to the Item value. */
587
552
  eval?: string | undefined;
588
553
  /** Relative path of a Javascript .js file. */
589
554
  script?: string | undefined;
590
- } | {
591
555
  /** Generic function to parse Tuya data. */
592
556
  fn: "tuya";
593
557
  /** Data point ID. 1-255 the datapoint ID. */
594
558
  dpid: number;
595
- /** Javascript expression to transform the raw value. */
596
- eval?: string | undefined;
597
- /** Relative path of a Javascript .js file. */
598
- script?: string | undefined;
599
559
  }) | undefined;
600
560
  /** Fonction used to write value. */
601
561
  write?: ({
602
562
  fn: "none";
603
563
  } | {
604
- fn?: undefined;
605
- /** Attribute ID. */
606
- at?: (string | string[]) | undefined;
607
- "state.timeout"?: number | undefined;
608
- "change.timeout"?: number | undefined;
609
- /** Cluster ID. */
610
- cl: string;
611
- /** Data type. */
612
- dt: string;
613
564
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
614
565
  ep?: (string | number) | undefined;
566
+ /** Cluster ID. */
567
+ cl: string;
568
+ /** Attribute ID. */
569
+ at?: (string | string[]) | undefined;
615
570
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
616
571
  mf?: string | undefined;
617
- /** Javascript expression to transform the raw value. */
572
+ /** Zigbee command. */
573
+ cmd?: string | undefined;
574
+ /** Javascript expression to transform the attribute value to the Item value. */
618
575
  eval?: string | undefined;
619
576
  /** Relative path of a Javascript .js file. */
620
577
  script?: string | undefined;
621
- } | {
622
- fn: "zcl";
623
- /** Attribute ID. */
624
- at?: (string | string[]) | undefined;
625
578
  "state.timeout"?: number | undefined;
626
579
  "change.timeout"?: number | undefined;
627
- /** Cluster ID. */
628
- cl: string;
629
580
  /** Data type. */
630
- dt: string;
581
+ dt?: string | undefined;
582
+ /** Generic function to read ZCL attributes. */
583
+ fn?: undefined;
584
+ cppsrc?: string | undefined;
585
+ } | {
631
586
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
632
587
  ep?: (string | number) | undefined;
588
+ /** Cluster ID. */
589
+ cl: string;
590
+ /** Attribute ID. */
591
+ at?: (string | string[]) | undefined;
633
592
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
634
593
  mf?: string | undefined;
635
- /** Javascript expression to transform the raw value. */
594
+ /** Zigbee command. */
595
+ cmd?: string | undefined;
596
+ /** Javascript expression to transform the attribute value to the Item value. */
636
597
  eval?: string | undefined;
637
598
  /** Relative path of a Javascript .js file. */
638
599
  script?: string | undefined;
639
- } | {
640
- /** Generic function to parse ZCL values from read/report commands. */
641
- fn: "zcl:attr";
642
- /** String hex value or array of string hex values. */
643
- at: string | string[];
644
600
  "state.timeout"?: number | undefined;
645
601
  "change.timeout"?: number | undefined;
646
- /** Cluster ID. */
647
- cl: string;
648
602
  /** Data type. */
649
- dt: string;
603
+ dt?: string | undefined;
604
+ /** Generic function to parse ZCL values from read/report commands. */
605
+ fn: "zcl:attr";
606
+ } | {
650
607
  /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
651
608
  ep?: (string | number) | undefined;
609
+ /** Cluster ID. */
610
+ cl: string;
611
+ /** Attribute ID. */
612
+ at?: (string | string[]) | undefined;
652
613
  /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
653
614
  mf?: string | undefined;
615
+ /** Zigbee command. */
616
+ cmd?: string | undefined;
654
617
  /** Javascript expression to transform the attribute value to the Item value. */
655
618
  eval?: string | undefined;
656
619
  /** Relative path of a Javascript .js file. */
657
620
  script?: string | undefined;
658
- } | {
621
+ "state.timeout"?: number | undefined;
622
+ "change.timeout"?: number | undefined;
623
+ /** Data type. */
624
+ dt?: string | undefined;
659
625
  /** Generic function to parse ZCL values from read/report commands. */
660
626
  fn: "zcl:cmd";
661
- /** Cluster ID. */
662
- cl: string;
663
- /** Endpoint, 255 means any endpoint, 0 means auto selected from subdevice. */
664
- ep?: (string | number) | undefined;
665
- /** Manufacturer code, must be set to 0x0000 for non manufacturer specific commands. */
666
- mf?: string | undefined;
667
- /** Zigbee command. */
668
- cmd?: string | undefined;
627
+ } | {
669
628
  /** Javascript expression to transform the attribute value to the Item value. */
670
629
  eval?: string | undefined;
671
630
  /** Relative path of a Javascript .js file. */
672
631
  script?: string | undefined;
673
- } | {
674
632
  /** Generic function to write Tuya data. */
675
633
  fn: "tuya";
676
634
  /** Data point ID. 1-255 the datapoint ID. */
677
635
  dpid: number;
678
636
  /** Data type. */
679
637
  dt: string;
680
- /** Javascript expression to transform the raw value. */
681
- eval?: string | undefined;
682
- /** Relative path of a Javascript .js file. */
683
- script?: string | undefined;
684
638
  }) | undefined;
685
639
  /** Refresh interval used for read fonction, NEED to be superior at value used in binding part. */
686
640
  "refresh.interval"?: number | undefined;
@@ -703,8 +657,8 @@ export type DDF = {
703
657
  string,
704
658
  string
705
659
  ];
706
- items: ("state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/y" | "state/x" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id")[];
707
- items_optional?: ("state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/y" | "state/x" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id")[] | undefined;
660
+ items: ("state/y" | "state/x" | "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/current" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/quantity" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/group" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id")[];
661
+ items_optional?: ("state/y" | "state/x" | "state/windowopen" | "state/water" | "state/water_bis" | "state/voltage" | "state/vibrationstrength" | "state/vibration" | "state/valve" | "state/utc" | "state/tiltangle" | "state/tilt" | "state/test" | "state/temperature" | "state/temperature_bis" | "state/targetdistance" | "state/tampered" | "state/speed" | "state/seconds_remaining" | "state/sat" | "state/rotaryevent" | "state/replacefilter" | "state/reachable" | "state/production" | "state/pressure" | "state/pressure_bis" | "state/presenceevent" | "state/presence" | "state/power" | "state/pm2_5" | "state/panel" | "state/orientation_z" | "state/orientation_y" | "state/orientation_x" | "state/open" | "state/open_bis" | "state/on" | "state/music_sync" | "state/mountingmodeactive" | "state/moisture" | "state/measured_value" | "state/lux" | "state/lowbattery" | "state/lockstate" | "state/localtime" | "state/lightlevel" | "state/lift" | "state/lastupdated" | "state/lastset" | "state/lastcheckin" | "state/humidity" | "state/humidity_bis" | "state/hue" | "state/heating" | "state/gradient" | "state/gesture" | "state/fire" | "state/filterruntime" | "state/expectedrotation" | "state/expectedeventduration" | "state/eventduration" | "state/errorcode" | "state/effect" | "state/deviceruntime" | "state/daylight" | "state/dark" | "state/current_P3" | "state/current_P2" | "state/current_P1" | "state/current" | "state/ct" | "state/consumption" | "state/consumption_2" | "state/colormode" | "state/charging" | "state/carbonmonoxide" | "state/buttonevent" | "state/bri" | "state/battery" | "state/angle" | "state/alert" | "state/alarm" | "state/airqualityppb" | "state/airqualityppb_bis" | "state/airquality" | "state/airquality_bis" | "state/action" | "config/windowopen_set" | "config/windowcoveringtype" | "config/volume" | "config/usertest" | "config/unoccupiedheatsetpoint" | "config/tuya_unlock" | "config/triggerdistance" | "config/triggerdistance_bis" | "config/tholdoffset" | "config/tholddark" | "config/temperature" | "config/swingmode" | "config/speed" | "config/sensitivitymax" | "config/sensitivity" | "config/sensitivity_bis" | "config/selftest" | "config/schedule_on" | "config/schedule" | "config/reversed" | "config/resetpresence" | "config/reportgrid" | "config/reachable" | "config/pulseconfiguration" | "config/preset" | "config/pending" | "config/on/startup" | "config/on" | "config/offset" | "config/mountingmode" | "config/mode" | "config/melody" | "config/locked" | "config/lock" | "config/ledindication" | "config/interfacemode" | "config/heatsetpoint" | "config/group" | "config/filterlifetime" | "config/fanmode" | "config/fadingtime" | "config/externalwindowopen" | "config/externalsensortemp" | "config/enrolled" | "config/duration" | "config/displayflipped" | "config/devicemode" | "config/devicemode_bis" | "config/delay" | "config/ctmin" | "config/ctmax" | "config/coolsetpoint" | "config/controlsequence" | "config/configured" | "config/colorcapabilities" | "config/color/xy/startup_y" | "config/color/xy/startup_x" | "config/color/gradient/reversed" | "config/color/gradient/pixel_count" | "config/color/execute_if_off" | "config/color/ct/startup" | "config/clickmode" | "config/checkin" | "config/bri/startup" | "config/bri/onoff_transitiontime" | "config/bri/on_level" | "config/bri/min" | "config/bri/max" | "config/bri/execute_if_off" | "config/battery" | "config/battery_bis" | "config/allowtouchlink" | "config/alert" | "cap/transition_block" | "cap/sleeper" | "cap/on/off_with_effect" | "cap/measured_value/unit" | "cap/measured_value/substance" | "cap/measured_value/quantity" | "cap/measured_value/min" | "cap/measured_value/max" | "cap/groups/not_supported" | "cap/group" | "cap/color/xy/red_y" | "cap/color/xy/red_x" | "cap/color/xy/green_y" | "cap/color/xy/green_x" | "cap/color/xy/blue_y" | "cap/color/xy/blue_x" | "cap/color/gradient/styles" | "cap/color/gradient/pixel_length" | "cap/color/gradient/pixel_count" | "cap/color/gradient/max_segments" | "cap/color/gamut_type" | "cap/color/effects" | "cap/color/ct/min" | "cap/color/ct/max" | "cap/color/ct/computes_xy" | "cap/color/capabilities" | "cap/bri/move_with_onoff" | "cap/bri/min_dim_level" | "cap/alert/trigger_effect" | "attr/uniqueid" | "attr/type" | "attr/swversion" | "attr/swversion_bis" | "attr/swconfigid" | "attr/productname" | "attr/productid" | "attr/powerup" | "attr/poweronlevel" | "attr/poweronct" | "attr/name" | "attr/modelid" | "attr/mode" | "attr/manufacturername" | "attr/lastseen" | "attr/lastannounced" | "attr/id")[] | undefined;
708
662
  };
709
663
 
710
664
  export interface GenericsData {