zigbee-herdsman-converters 14.0.670 → 14.0.672

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.
@@ -8120,17 +8120,6 @@ const converters = {
8120
8120
  }
8121
8121
  },
8122
8122
  },
8123
- dawon_card_holder: {
8124
- cluster: 'ssIasZone',
8125
- type: 'commandStatusChangeNotification',
8126
- convert: (model, msg, publish, options, meta) => {
8127
- const zoneStatus = msg.data.zonestatus;
8128
- return {
8129
- card: (zoneStatus & 1) > 0,
8130
- battery_low: (zoneStatus & 1<<3) > 0,
8131
- };
8132
- },
8133
- },
8134
8123
  tuya_light_wz5: {
8135
8124
  cluster: 'manuSpecificTuya',
8136
8125
  type: ['commandDataResponse', 'commandDataReport'],
@@ -6,6 +6,30 @@ const extend = require('../lib/extend');
6
6
  const e = exposes.presets;
7
7
  const ea = exposes.access;
8
8
 
9
+ const fzLocal = {
10
+ dawon_card_holder: {
11
+ cluster: 'ssIasZone',
12
+ type: 'commandStatusChangeNotification',
13
+ convert: (model, msg, publish, options, meta) => {
14
+ const zoneStatus = msg.data.zonestatus;
15
+ return {
16
+ card: (zoneStatus & 1) > 0,
17
+ battery_low: (zoneStatus & 1<<3) > 0,
18
+ };
19
+ },
20
+ },
21
+ };
22
+
23
+
24
+ const tzLocal = {
25
+ dawon_card_holder: {
26
+ key: ['card'],
27
+ convertGet: async (entity, key, meta) => {
28
+ await entity.read('ssIasZone', ['zoneState']);
29
+ },
30
+ },
31
+ };
32
+
9
33
  module.exports = [
10
34
  {
11
35
  zigbeeModel: ['PM-C140-ZB'],
@@ -13,15 +37,16 @@ module.exports = [
13
37
  vendor: 'Dawon DNS',
14
38
  description: 'IOT remote control smart buried-type outlet',
15
39
  fromZigbee: [fz.on_off, fz.metering],
16
- toZigbee: [tz.on_off],
40
+ toZigbee: [tz.on_off, tz.metering_power, tz.currentsummdelivered],
17
41
  configure: async (device, coordinatorEndpoint, logger) => {
18
42
  const endpoint = device.getEndpoint(1);
19
43
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
20
44
  await reporting.onOff(endpoint);
21
45
  await reporting.readMeteringMultiplierDivisor(endpoint);
22
46
  await reporting.instantaneousDemand(endpoint);
47
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 3600, change: 5});
23
48
  },
24
- exposes: [e.switch(), e.power(), e.energy()],
49
+ exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy().withAccess(ea.STATE_GET)],
25
50
  },
26
51
  {
27
52
  zigbeeModel: ['PM-B530-ZB'],
@@ -29,15 +54,16 @@ module.exports = [
29
54
  vendor: 'Dawon DNS',
30
55
  description: 'IOT smart plug 16A',
31
56
  fromZigbee: [fz.on_off, fz.metering],
32
- toZigbee: [tz.on_off],
57
+ toZigbee: [tz.on_off, tz.metering_power, tz.currentsummdelivered],
33
58
  configure: async (device, coordinatorEndpoint, logger) => {
34
59
  const endpoint = device.getEndpoint(1);
35
60
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
36
61
  await reporting.onOff(endpoint);
37
62
  await reporting.readMeteringMultiplierDivisor(endpoint);
38
63
  await reporting.instantaneousDemand(endpoint);
64
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 3600, change: 5});
39
65
  },
40
- exposes: [e.switch(), e.power(), e.energy()],
66
+ exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy().withAccess(ea.STATE_GET)],
41
67
  },
42
68
  {
43
69
  zigbeeModel: ['PM-B540-ZB'],
@@ -45,13 +71,14 @@ module.exports = [
45
71
  vendor: 'Dawon DNS',
46
72
  description: 'IOT smart plug 16A',
47
73
  fromZigbee: [fz.device_temperature, fz.on_off, fz.metering],
48
- toZigbee: [tz.on_off],
74
+ toZigbee: [tz.on_off, tz.metering_power, tz.currentsummdelivered],
49
75
  configure: async (device, coordinatorEndpoint, logger) => {
50
76
  const endpoint = device.getEndpoint(1);
51
77
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering', 'genDeviceTempCfg']);
52
78
  await reporting.onOff(endpoint);
53
79
  await reporting.readMeteringMultiplierDivisor(endpoint);
54
80
  await reporting.instantaneousDemand(endpoint);
81
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 3600, change: 5});
55
82
  await reporting.deviceTemperature(endpoint);
56
83
  // some firmware is not defined powersource
57
84
  if (device.powerSource === 'Unknown') {
@@ -59,7 +86,7 @@ module.exports = [
59
86
  device.save();
60
87
  }
61
88
  },
62
- exposes: [e.device_temperature(), e.switch(), e.power(), e.energy()],
89
+ exposes: [e.device_temperature(), e.switch(), e.power().withAccess(ea.STATE_GET), e.energy().withAccess(ea.STATE_GET)],
63
90
  },
64
91
  {
65
92
  zigbeeModel: ['PM-B430-ZB'],
@@ -248,15 +275,16 @@ module.exports = [
248
275
  vendor: 'Dawon DNS',
249
276
  description: 'IOT remote control smart buried-type 16A outlet',
250
277
  fromZigbee: [fz.on_off, fz.metering],
251
- toZigbee: [tz.on_off],
278
+ toZigbee: [tz.on_off, tz.metering_power, tz.currentsummdelivered],
252
279
  configure: async (device, coordinatorEndpoint, logger) => {
253
280
  const endpoint = device.getEndpoint(1);
254
281
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
255
282
  await reporting.onOff(endpoint);
256
283
  await reporting.readMeteringMultiplierDivisor(endpoint);
257
284
  await reporting.instantaneousDemand(endpoint);
285
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 3600, change: 5});
258
286
  },
259
- exposes: [e.switch(), e.power(), e.energy()],
287
+ exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy().withAccess(ea.STATE_GET)],
260
288
  },
261
289
  {
262
290
  zigbeeModel: ['SG-V100-ZB'],
@@ -278,8 +306,8 @@ module.exports = [
278
306
  model: 'KB-HD100-ZB',
279
307
  vendor: 'Dawon DNS',
280
308
  description: 'IOT Card holder',
281
- fromZigbee: [fz.dawon_card_holder],
282
- toZigbee: [],
309
+ fromZigbee: [fzLocal.dawon_card_holder],
310
+ toZigbee: [tzLocal.dawon_card_holder],
283
311
  configure: async (device, coordinatorEndpoint, logger) => {
284
312
  const endpoint = device.getEndpoint(1);
285
313
  await reporting.bind(endpoint, coordinatorEndpoint, ['ssIasZone']);
@@ -287,7 +315,7 @@ module.exports = [
287
315
  attribute: 'zoneState', minimumReportInterval: 0, maximumReportInterval: 3600, reportableChange: 0}];
288
316
  await endpoint.configureReporting('ssIasZone', payload);
289
317
  },
290
- exposes: [exposes.binary('card', ea.STATE, true, false)
318
+ exposes: [exposes.binary('card', ea.STATE, true, false).withAccess(ea.STATE_GET)
291
319
  .withDescription('Indicates if the card is inserted (= true) or not (= false)'), e.battery_low()],
292
320
  },
293
321
  {
@@ -296,14 +324,15 @@ module.exports = [
296
324
  vendor: 'Dawon DNS',
297
325
  description: 'IOT smart plug 16A',
298
326
  fromZigbee: [fz.on_off, fz.metering],
299
- toZigbee: [tz.on_off],
327
+ toZigbee: [tz.on_off, tz.metering_power, tz.currentsummdelivered],
300
328
  configure: async (device, coordinatorEndpoint, logger) => {
301
329
  const endpoint = device.getEndpoint(1);
302
330
  await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'seMetering']);
303
331
  await reporting.onOff(endpoint);
304
332
  await reporting.readMeteringMultiplierDivisor(endpoint);
305
333
  await reporting.instantaneousDemand(endpoint);
334
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 3600, change: 5});
306
335
  },
307
- exposes: [e.switch(), e.power(), e.energy()],
336
+ exposes: [e.switch(), e.power().withAccess(ea.STATE_GET), e.energy().withAccess(ea.STATE_GET)],
308
337
  },
309
338
  ];
@@ -162,6 +162,14 @@ module.exports = [
162
162
  extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
163
163
  ota: ota.ledvance,
164
164
  },
165
+ {
166
+ zigbeeModel: ['A60 TW T'],
167
+ model: '4058075729001',
168
+ vendor: 'LEDVANCE',
169
+ description: 'SMART+ CL A60 E27 Tunable white',
170
+ extend: extend.ledvance.light_onoff_brightness_colortemp({colorTempRange: [153, 370]}),
171
+ ota: ota.ledvance,
172
+ },
165
173
  {
166
174
  zigbeeModel: ['CLA60 RGBW JP'],
167
175
  model: 'SMARTZBA60RGBW',
@@ -132,7 +132,6 @@ module.exports = [
132
132
  // support binary report on moving state (supposed)
133
133
  fz.legrand_binary_input_moving, fz.cover_position_tilt],
134
134
  toZigbee: [tz.cover_state, tz.cover_position_tilt, tz.legrand_identify, tz.legrand_settingEnableLedInDark],
135
- meta: {coverInverted: true},
136
135
  configure: async (device, coordinatorEndpoint, logger) => {
137
136
  const endpoint = device.getEndpoint(1);
138
137
  await reporting.bind(endpoint, coordinatorEndpoint, ['genBinaryInput', 'closuresWindowCovering', 'genIdentify']);
@@ -200,4 +200,20 @@ module.exports = [
200
200
  extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 555]}),
201
201
  toZigbee: extend.light_onoff_brightness_colortemp().toZigbee.concat([tz.tint_scene]),
202
202
  },
203
+ {
204
+ fingerprint: [{manufacturerName: 'MLI', modelID: 'Candle white+color'}],
205
+ model: '45730',
206
+ vendor: 'Müller Licht',
207
+ description: 'Tint candle E14 white+color',
208
+ extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 555]}),
209
+ toZigbee: extend.light_onoff_brightness_colortemp_color().toZigbee.concat([tz.tint_scene]),
210
+ },
211
+ {
212
+ fingerprint: [{manufacturerName: 'MLI', modelID: 'Bulb white+color'}],
213
+ model: '45728',
214
+ vendor: 'Müller Licht',
215
+ description: 'Tint bulb E27 white+color',
216
+ extend: extend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 555]}),
217
+ toZigbee: extend.light_onoff_brightness_colortemp_color().toZigbee.concat([tz.tint_scene]),
218
+ },
203
219
  ];
package/devices/namron.js CHANGED
@@ -280,9 +280,11 @@ module.exports = [
280
280
  vendor: 'Namron',
281
281
  description: 'Remote control',
282
282
  fromZigbee: [fz.command_on, fz.command_off, fz.command_step, fz.command_step_color_temperature, fz.command_recall,
283
- fz.command_move_to_color_temp, fz.battery],
284
- exposes: [e.battery(), e.action(['on', 'off', 'brightness_step_up', 'brightness_step_down', 'color_temperature_step_up',
285
- 'color_temperature_step_down', 'recall_*', 'color_temperature_move'])],
283
+ fz.command_move_to_color_temp, fz.battery, fz.command_move_to_hue],
284
+ exposes: [e.battery(), e.action([
285
+ 'on', 'off', 'brightness_step_up', 'brightness_step_down', 'color_temperature_step_up',
286
+ 'color_temperature_step_down', 'recall_*', 'color_temperature_move',
287
+ 'move_to_hue_l1', 'move_to_hue_l2', 'move_to_hue_l3', 'move_to_hue_l4'])],
286
288
  toZigbee: [],
287
289
  meta: {multiEndpoint: true},
288
290
  endpoint: (device) => {
package/devices/sinope.js CHANGED
@@ -14,21 +14,32 @@ module.exports = [
14
14
  vendor: 'Sinopé',
15
15
  description: 'Zigbee line volt thermostat',
16
16
  meta: {thermostat: {dontMapPIHeatingDemand: true}},
17
- fromZigbee: [fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement, fz.metering,
17
+ fromZigbee: [
18
+ fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement, fz.metering,
18
19
  fz.ignore_temperature_report, fz.legacy.sinope_thermostat_state, fz.sinope_thermostat],
19
- toZigbee: [tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
20
+ toZigbee: [
21
+ tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
20
22
  tz.thermostat_temperature_display_mode, tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.thermostat_running_state,
21
23
  tz.sinope_thermostat_occupancy, tz.sinope_thermostat_backlight_autodim_param, tz.sinope_thermostat_time,
22
24
  tz.sinope_thermostat_enable_outdoor_temperature, tz.sinope_thermostat_outdoor_temperature, tz.sinope_time_format],
23
- exposes: [e.local_temperature(), e.keypad_lockout(), e.power(), e.current(), e.voltage(), e.energy(),
24
- exposes.climate().withSetpoint('occupied_heating_setpoint', 5, 30, 0.5).withLocalTemperature()
25
- .withSystemMode(['off', 'heat']).withRunningState(['idle', 'heat']).withPiHeatingDemand(),
26
- exposes.enum('thermostat_occupancy', ea.SET, ['unoccupied', 'occupied']).withDescription('Occupancy state of the thermostat'),
27
- exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing']).withDescription('Control backlight dimming behavior')],
25
+ exposes: [
26
+ exposes.climate()
27
+ .withSetpoint('occupied_heating_setpoint', 5, 30, 0.5)
28
+ .withSetpoint('unoccupied_heating_setpoint', 5, 30, 0.5)
29
+ .withLocalTemperature()
30
+ .withSystemMode(['off', 'heat']).withRunningState(['idle', 'heat'])
31
+ .withPiHeatingDemand(),
32
+ exposes.enum('thermostat_occupancy', ea.SET, ['unoccupied', 'occupied'])
33
+ .withDescription('Occupancy state of the thermostat'),
34
+ exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing'])
35
+ .withDescription('Control backlight dimming behavior'),
36
+ e.keypad_lockout(), e.energy(), e.power(), e.current(), e.voltage()],
28
37
  configure: async (device, coordinatorEndpoint, logger) => {
29
38
  const endpoint = device.getEndpoint(1);
30
- const binds = ['genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg', 'msTemperatureMeasurement',
31
- 'haElectricalMeasurement', 'seMetering', 'manuSpecificSinope'];
39
+ const binds = [
40
+ 'genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg',
41
+ 'msTemperatureMeasurement', 'haElectricalMeasurement', 'seMetering',
42
+ 'manuSpecificSinope'];
32
43
  await reporting.bind(endpoint, coordinatorEndpoint, binds);
33
44
  await reporting.thermostatTemperature(endpoint);
34
45
  await reporting.thermostatPIHeatingDemand(endpoint);
@@ -61,8 +72,8 @@ module.exports = [
61
72
 
62
73
  // Disable default reporting
63
74
  await reporting.temperature(endpoint, {min: 1, max: 0xFFFF});
64
- await endpoint.configureReporting('msTemperatureMeasurement', [{
65
- attribute: 'tolerance', minimumReportInterval: 1, maximumReportInterval: 0xFFFF, reportableChange: 1}]);
75
+ await endpoint.configureReporting('msTemperatureMeasurement', [
76
+ {attribute: 'tolerance', minimumReportInterval: 1, maximumReportInterval: 0xFFFF, reportableChange: 1}]);
66
77
  },
67
78
  },
68
79
  {
@@ -71,21 +82,32 @@ module.exports = [
71
82
  vendor: 'Sinopé',
72
83
  description: 'Zigbee line volt thermostat',
73
84
  meta: {thermostat: {dontMapPIHeatingDemand: true}},
74
- fromZigbee: [fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement, fz.metering,
85
+ fromZigbee: [
86
+ fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement, fz.metering,
75
87
  fz.ignore_temperature_report, fz.legacy.sinope_thermostat_state, fz.sinope_thermostat],
76
- toZigbee: [tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
88
+ toZigbee: [
89
+ tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
77
90
  tz.thermostat_temperature_display_mode, tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.thermostat_running_state,
78
91
  tz.sinope_thermostat_occupancy, tz.sinope_thermostat_backlight_autodim_param, tz.sinope_thermostat_time,
79
92
  tz.sinope_thermostat_enable_outdoor_temperature, tz.sinope_thermostat_outdoor_temperature, tz.sinope_time_format],
80
- exposes: [e.local_temperature(), e.keypad_lockout(), e.power(), e.current(), e.voltage(), e.energy(),
81
- exposes.climate().withSetpoint('occupied_heating_setpoint', 5, 30, 0.5).withLocalTemperature()
82
- .withSystemMode(['off', 'heat']).withRunningState(['idle', 'heat']).withPiHeatingDemand(),
83
- exposes.enum('thermostat_occupancy', ea.SET, ['unoccupied', 'occupied']).withDescription('Occupancy state of the thermostat'),
84
- exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing']).withDescription('Control backlight dimming behavior')],
93
+ exposes: [
94
+ exposes.climate()
95
+ .withSetpoint('occupied_heating_setpoint', 5, 30, 0.5)
96
+ .withSetpoint('unoccupied_heating_setpoint', 5, 30, 0.5)
97
+ .withLocalTemperature()
98
+ .withSystemMode(['off', 'heat']).withRunningState(['idle', 'heat'])
99
+ .withPiHeatingDemand(),
100
+ exposes.enum('thermostat_occupancy', ea.SET, ['unoccupied', 'occupied'])
101
+ .withDescription('Occupancy state of the thermostat'),
102
+ exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing'])
103
+ .withDescription('Control backlight dimming behavior'),
104
+ e.keypad_lockout(), e.energy(), e.power(), e.current(), e.voltage()],
85
105
  configure: async (device, coordinatorEndpoint, logger) => {
86
106
  const endpoint = device.getEndpoint(1);
87
- const binds = ['genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg', 'msTemperatureMeasurement',
88
- 'haElectricalMeasurement', 'seMetering', 'manuSpecificSinope'];
107
+ const binds = [
108
+ 'genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg',
109
+ 'msTemperatureMeasurement', 'haElectricalMeasurement', 'seMetering',
110
+ 'manuSpecificSinope'];
89
111
  await reporting.bind(endpoint, coordinatorEndpoint, binds);
90
112
  await reporting.thermostatTemperature(endpoint);
91
113
  await reporting.thermostatPIHeatingDemand(endpoint);
@@ -101,6 +123,12 @@ module.exports = [
101
123
  await reporting.instantaneousDemand(endpoint, {min: 10, max: 304, change: 1});
102
124
  } catch (error) {/* Do nothing*/}
103
125
 
126
+ await reporting.readMeteringMultiplierDivisor(endpoint);
127
+ await reporting.currentSummDelivered(endpoint, {min: 10, max: 303, change: [1, 1]});
128
+ try {
129
+ await reporting.instantaneousDemand(endpoint, {min: 10, max: 304, change: 1});
130
+ } catch (error) {/* Do nothing*/}
131
+
104
132
  await reporting.readEletricalMeasurementMultiplierDivisors(endpoint);
105
133
  try {
106
134
  await reporting.activePower(endpoint, {min: 10, max: 305, change: 1});
@@ -112,16 +140,10 @@ module.exports = [
112
140
  await reporting.rmsVoltage(endpoint, {min: 10, max: 307, change: 5}); // divider 10: 0.5Vrms
113
141
  } catch (error) {/* Do nothing*/}
114
142
 
115
- try {
116
- await reporting.thermostatKeypadLockMode(endpoint);
117
- } catch (error) {
118
- // Not all support this: https://github.com/Koenkk/zigbee2mqtt/issues/3760
119
- }
120
-
121
143
  // Disable default reporting
122
144
  await reporting.temperature(endpoint, {min: 1, max: 0xFFFF});
123
- await endpoint.configureReporting('msTemperatureMeasurement', [{
124
- attribute: 'tolerance', minimumReportInterval: 1, maximumReportInterval: 0xFFFF, reportableChange: 1}]);
145
+ await endpoint.configureReporting('msTemperatureMeasurement', [
146
+ {attribute: 'tolerance', minimumReportInterval: 1, maximumReportInterval: 0xFFFF, reportableChange: 1}]);
125
147
  },
126
148
  },
127
149
  {
@@ -130,21 +152,30 @@ module.exports = [
130
152
  vendor: 'Sinopé',
131
153
  description: 'Zigbee smart floor heating thermostat',
132
154
  meta: {thermostat: {dontMapPIHeatingDemand: true}},
133
- fromZigbee: [fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement,
155
+ fromZigbee: [
156
+ fz.legacy.sinope_thermostat_att_report, fz.legacy.hvac_user_interface, fz.electrical_measurement,
134
157
  fz.ignore_temperature_report, fz.legacy.sinope_thermostat_state, fz.sinope_TH1300ZB_specific],
135
- toZigbee: [tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
158
+ toZigbee: [
159
+ tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
136
160
  tz.thermostat_temperature_display_mode, tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.thermostat_running_state,
137
161
  tz.sinope_thermostat_occupancy, tz.sinope_thermostat_backlight_autodim_param, tz.sinope_thermostat_time,
138
162
  tz.sinope_thermostat_enable_outdoor_temperature, tz.sinope_thermostat_outdoor_temperature, tz.sinope_floor_control_mode,
139
163
  tz.sinope_ambiant_max_heat_setpoint, tz.sinope_floor_min_heat_setpoint, tz.sinope_floor_max_heat_setpoint,
140
164
  tz.sinope_temperature_sensor, tz.sinope_time_format],
141
- exposes: [e.local_temperature(), e.keypad_lockout(), e.power(), e.current(), e.voltage(),
142
- exposes.climate().withSetpoint('occupied_heating_setpoint', 7, 30, 0.5).withLocalTemperature()
143
- .withSystemMode(['off', 'auto', 'heat']).withRunningState(['idle', 'heat']).withPiHeatingDemand(),
144
- exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing']).withDescription('Control backlight dimming behavior')],
165
+ exposes: [
166
+ exposes.climate()
167
+ .withSetpoint('occupied_heating_setpoint', 7, 30, 0.5)
168
+ .withLocalTemperature()
169
+ .withSystemMode(['off', 'auto', 'heat'])
170
+ .withRunningState(['idle', 'heat'])
171
+ .withPiHeatingDemand(),
172
+ exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing'])
173
+ .withDescription('Control backlight dimming behavior'),
174
+ e.keypad_lockout(), e.power(), e.current(), e.voltage()],
145
175
  configure: async (device, coordinatorEndpoint, logger) => {
146
176
  const endpoint = device.getEndpoint(1);
147
- const binds = ['genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg',
177
+ const binds = [
178
+ 'genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg',
148
179
  'haElectricalMeasurement', 'msTemperatureMeasurement', 'manuSpecificSinope'];
149
180
  await reporting.bind(endpoint, coordinatorEndpoint, binds);
150
181
  await reporting.thermostatTemperature(endpoint);
@@ -156,7 +187,7 @@ module.exports = [
156
187
  } catch (error) {/* Not all support this */}
157
188
 
158
189
  try {
159
- await endpoint.read('haElectricalMeasurement', ['acPowerMultiplier', 'acPowerDivisor']);
190
+ await endpoint.read('haElectricalMeasurement', ['acPowerMultiplier']);
160
191
  await reporting.activePower(endpoint, {min: 10, max: 305, change: 1}); // divider 1: 1W
161
192
  } catch (error) {
162
193
  endpoint.saveClusterAttributeKeyValue('haElectricalMeasurement', {'acPowerMultiplier': 1, 'acPowerDivisor': 1});
@@ -178,8 +209,8 @@ module.exports = [
178
209
 
179
210
  await endpoint.configureReporting('manuSpecificSinope', [{attribute: 'GFCiStatus', minimumReportInterval: 1,
180
211
  maximumReportInterval: constants.repInterval.HOUR, reportableChange: 1}]);
181
- await endpoint.configureReporting('manuSpecificSinope', [{attribute: 'floorLimitStatus',
182
- minimumReportInterval: 1, maximumReportInterval: constants.repInterval.HOUR, reportableChange: 1}]);
212
+ await endpoint.configureReporting('manuSpecificSinope', [{attribute: 'floorLimitStatus', minimumReportInterval: 1,
213
+ maximumReportInterval: constants.repInterval.HOUR, reportableChange: 1}]);
183
214
  await reporting.temperature(endpoint, {min: 1, max: 0xFFFF}); // disable reporting
184
215
  },
185
216
  },
@@ -189,17 +220,27 @@ module.exports = [
189
220
  vendor: 'Sinopé',
190
221
  description: 'Zigbee low volt thermostat',
191
222
  meta: {thermostat: {dontMapPIHeatingDemand: true}},
192
- fromZigbee: [fz.legacy.sinope_thermostat_att_report, fz.legacy.sinope_thermostat_state],
193
- toZigbee: [tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_temperature_display_mode,
223
+ fromZigbee: [
224
+ fz.legacy.sinope_thermostat_att_report, fz.legacy.sinope_thermostat_state],
225
+ toZigbee: [
226
+ tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_temperature_display_mode,
194
227
  tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.thermostat_running_state,
195
228
  tz.sinope_thermostat_backlight_autodim_param, tz.sinope_thermostat_time, tz.sinope_thermostat_enable_outdoor_temperature,
196
229
  tz.sinope_thermostat_outdoor_temperature],
197
- exposes: [exposes.climate().withSetpoint('occupied_heating_setpoint', 7, 30, 1).withLocalTemperature()
198
- .withSystemMode(['off', 'auto', 'heat']).withRunningState(['idle', 'heat']).withPiHeatingDemand(), exposes.enum(
199
- 'backlight_auto_dim', ea.SET, ['on demand', 'sensing']).withDescription('Control backlight dimming behavior')],
230
+ exposes: [
231
+ exposes.climate()
232
+ .withSetpoint('occupied_heating_setpoint', 7, 30, 1)
233
+ .withLocalTemperature()
234
+ .withSystemMode(['off', 'auto', 'heat'])
235
+ .withRunningState(['idle', 'heat'])
236
+ .withPiHeatingDemand(),
237
+ exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing'])
238
+ .withDescription('Control backlight dimming behavior')],
200
239
  configure: async (device, coordinatorEndpoint, logger) => {
201
240
  const endpoint = device.getEndpoint(1);
202
- const binds = ['genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg', 'msTemperatureMeasurement'];
241
+ const binds = [
242
+ 'genBasic', 'genIdentify', 'genGroups', 'hvacThermostat',
243
+ 'hvacUserInterfaceCfg', 'msTemperatureMeasurement'];
203
244
  await reporting.bind(endpoint, coordinatorEndpoint, binds);
204
245
  await reporting.thermostatTemperature(endpoint);
205
246
  await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
@@ -215,17 +256,27 @@ module.exports = [
215
256
  model: 'TH1500ZB',
216
257
  vendor: 'Sinopé',
217
258
  description: 'Zigbee dual pole line volt thermostat',
218
- fromZigbee: [fz.legacy.thermostat_att_report],
219
- toZigbee: [tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
259
+ fromZigbee: [
260
+ fz.legacy.thermostat_att_report],
261
+ toZigbee: [
262
+ tz.thermostat_local_temperature, tz.thermostat_occupied_heating_setpoint, tz.thermostat_unoccupied_heating_setpoint,
220
263
  tz.thermostat_temperature_display_mode, tz.thermostat_keypad_lockout, tz.thermostat_system_mode, tz.thermostat_running_state,
221
264
  tz.sinope_thermostat_occupancy, tz.sinope_thermostat_backlight_autodim_param, tz.sinope_thermostat_time,
222
265
  tz.sinope_thermostat_enable_outdoor_temperature, tz.sinope_thermostat_outdoor_temperature],
223
- exposes: [exposes.climate().withSetpoint('occupied_heating_setpoint', 7, 30, 1).withLocalTemperature()
224
- .withSystemMode(['off', 'auto', 'heat']).withRunningState(['idle', 'heat']).withPiHeatingDemand(), exposes.enum(
225
- 'backlight_auto_dim', ea.SET, ['on demand', 'sensing']).withDescription('Control backlight dimming behavior')],
266
+ exposes: [
267
+ exposes.climate()
268
+ .withSetpoint('occupied_heating_setpoint', 7, 30, 1)
269
+ .withLocalTemperature()
270
+ .withSystemMode(['off', 'auto', 'heat'])
271
+ .withRunningState(['idle', 'heat'])
272
+ .withPiHeatingDemand(),
273
+ exposes.enum('backlight_auto_dim', ea.SET, ['on demand', 'sensing'])
274
+ .withDescription('Control backlight dimming behavior')],
226
275
  configure: async (device, coordinatorEndpoint, logger) => {
227
276
  const endpoint = device.getEndpoint(1);
228
- const binds = ['genBasic', 'genIdentify', 'genGroups', 'hvacThermostat', 'hvacUserInterfaceCfg', 'msTemperatureMeasurement'];
277
+ const binds = [
278
+ 'genBasic', 'genIdentify', 'genGroups',
279
+ 'hvacThermostat', 'hvacUserInterfaceCfg', 'msTemperatureMeasurement'];
229
280
  await reporting.bind(endpoint, coordinatorEndpoint, binds);
230
281
  await reporting.thermostatTemperature(endpoint);
231
282
  await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
@@ -41,11 +41,11 @@ const fzLocal = {
41
41
  },
42
42
  };
43
43
 
44
- function syncTime(endpoint) {
44
+ async function syncTime(endpoint) {
45
45
  try {
46
46
  const time = Math.round(((new Date()).getTime() - constants.OneJanuary2000) / 1000 + ((new Date()).getTimezoneOffset() * -1) * 60);
47
47
  const values = {time: time};
48
- endpoint.write('genTime', values);
48
+ await endpoint.write('genTime', values);
49
49
  } catch (error) {/* Do nothing*/}
50
50
  }
51
51
 
@@ -462,7 +462,13 @@ module.exports = [
462
462
  await reporting.thermostatTemperature(endpoint);
463
463
  await reporting.thermostatOccupiedHeatingSetpoint(endpoint);
464
464
  await reporting.thermostatUnoccupiedHeatingSetpoint(endpoint);
465
- await reporting.thermostatKeypadLockMode(endpoint);
465
+ try {
466
+ await reporting.thermostatKeypadLockMode(endpoint);
467
+ } catch (error) {
468
+ // Fails for some
469
+ // https://github.com/Koenkk/zigbee2mqtt/issues/15025
470
+ logger.debug(`Failed to setup keypadLockout reporting`);
471
+ }
466
472
 
467
473
  await endpoint.configureReporting('hvacThermostat', [{
468
474
  attribute: 'occupancy',
package/devices/tuya.js CHANGED
@@ -1504,6 +1504,7 @@ module.exports = [
1504
1504
  {modelID: 'TS0201', manufacturerName: '_TZ3000_fllyghyj'},
1505
1505
  {modelID: 'TS0201', manufacturerName: '_TZ3000_yd2e749y'},
1506
1506
  {modelID: 'TS0201', manufacturerName: '_TZ3000_6uzkisv2'},
1507
+ {modelID: 'TS0601', manufacturerName: '_TZE200_9yapgbuv'},
1507
1508
  ],
1508
1509
  model: 'WSD500A',
1509
1510
  vendor: 'TuYa',
package/devices/ubisys.js CHANGED
@@ -825,7 +825,7 @@ module.exports = [
825
825
  await reporting.thermostatOccupiedHeatingSetpoint(endpoint,
826
826
  {min: 0, max: constants.repInterval.HOUR, change: 50});
827
827
  await reporting.thermostatPIHeatingDemand(endpoint);
828
- await reporting.thermostatOcupancy(endpoint);
828
+ await reporting.thermostatOccupancy(endpoint);
829
829
  await reporting.batteryPercentageRemaining(endpoint,
830
830
  {min: constants.repInterval.HOUR, max: 43200, change: 1});
831
831
 
package/devices/xiaomi.js CHANGED
@@ -9,6 +9,7 @@ const e = exposes.presets;
9
9
  const ea = exposes.access;
10
10
  const globalStore = require('../lib/store');
11
11
  const xiaomi = require('../lib/xiaomi');
12
+ const utils = require('../lib/utils');
12
13
 
13
14
  const xiaomiExtend = {
14
15
  light_onoff_brightness_colortemp: (options={disableColorTempStartup: true}) => ({
@@ -40,6 +41,21 @@ const preventReset = async (type, data, device) => {
40
41
  await device.getEndpoint(1).write('genBasic', payload, options);
41
42
  };
42
43
 
44
+ const daysLookup = {
45
+ 0x7f: 'everyday',
46
+ 0x1f: 'workdays',
47
+ 0x60: 'weekend',
48
+ 0x01: 'mon',
49
+ 0x02: 'tue',
50
+ 0x04: 'wed',
51
+ 0x08: 'thu',
52
+ 0x10: 'fri',
53
+ 0x20: 'sat',
54
+ 0x40: 'sun',
55
+ 0x55: 'mon-wed-fri-sun',
56
+ 0x2a: 'tue-thu-sat',
57
+ };
58
+
43
59
 
44
60
  const fzLocal = {
45
61
  aqara_trv: {
@@ -98,6 +114,87 @@ const fzLocal = {
98
114
  return result;
99
115
  },
100
116
  },
117
+ aqara_feeder: {
118
+ cluster: 'aqaraOpple',
119
+ type: ['attributeReport', 'readResponse'],
120
+ convert: (model, msg, publish, options, meta) => {
121
+ const result = {};
122
+ Object.entries(msg.data).forEach(([key, value]) => {
123
+ switch (parseInt(key)) {
124
+ case 0xfff1: {
125
+ const attr = value.slice(3, 7);
126
+ const len = value.slice(7, 8).readUInt8();
127
+ const val = value.slice(8, 8 + len);
128
+ switch (attr.readInt32BE()) {
129
+ case 0x04150055: // feeding
130
+ result['feed'] = '';
131
+ break;
132
+ case 0x041502bc: { // feeding report
133
+ const report = val.toString();
134
+ result['feeding_source'] = {1: 'manual', 2: 'remote'}[parseInt(report.slice(0, 2))];
135
+ result['feeding_size'] = parseInt(report.slice(3, 4));
136
+ break;
137
+ }
138
+ case 0x0d680055: // portions per day
139
+ result['portions_per_day'] = val.readUInt16BE();
140
+ break;
141
+ case 0x0d690055: // weight per day
142
+ result['weight_per_day'] = val.readUInt32BE();
143
+ break;
144
+ case 0x0d0b0055: // error ?
145
+ result['error'] = {1: true, 0: false}[val.readUInt8()];
146
+ break;
147
+ case 0x080008c8: { // schedule string
148
+ const schlist = val.toString().split(',');
149
+ const schedule = [];
150
+ schlist.forEach((str) => { // 7f13000100
151
+ const feedtime = Buffer.from(str, 'hex');
152
+ schedule.push({
153
+ 'days': daysLookup[feedtime[0]],
154
+ 'hour': feedtime[1],
155
+ 'minute': feedtime[2],
156
+ 'size': feedtime[3],
157
+ });
158
+ });
159
+ result['schedule'] = schedule;
160
+ break;
161
+ }
162
+ case 0x04170055: // indicator
163
+ result['led_indicator'] = {1: 'ON', 0: 'OFF'}[val.readUInt8()];
164
+ break;
165
+ case 0x04160055: // child lock
166
+ result['child_lock'] = {1: 'LOCK', 0: 'UNLOCK'}[val.readUInt8()];
167
+ break;
168
+ case 0x04180055: // mode
169
+ result['mode'] = {1: 'schedule', 0: 'manual'}[val.readUInt8()];
170
+ break;
171
+ case 0x0e5c0055: // serving size
172
+ result['serving_size'] = val.readUInt8();
173
+ break;
174
+ case 0x0e5f0055: // portion weight
175
+ result['portion_weight'] = val.readUInt8();
176
+ break;
177
+ case 0x080007d1: // ? 64
178
+ case 0x0d090055: // ? 00
179
+ meta.logger.warn(`zigbee-herdsman-converters:aqara_feeder: Unhandled attribute ${attr} = ${val}`);
180
+ break;
181
+ default:
182
+ meta.logger.warn(`zigbee-herdsman-converters:aqara_feeder: Unknown attribute ${attr} = ${val}`);
183
+ }
184
+ break;
185
+ }
186
+ case 0x00ff: // 80:13:58:91:24:33:20:24:58:53:44:07:05:97:75:17
187
+ case 0x0007: // 00:00:00:00:1d:b5:a6:ed
188
+ case 0x00f7: // 05:21:14:00:0d:23:21:25:00:00:09:21:00:01
189
+ meta.logger.debug(`zigbee-herdsman-converters:aqara_feeder: Unhandled key ${key} = ${value}`);
190
+ break;
191
+ default:
192
+ meta.logger.warn(`zigbee-herdsman-converters:aqara_feeder: Unknown key ${key} = ${value}`);
193
+ }
194
+ });
195
+ return result;
196
+ },
197
+ },
101
198
  };
102
199
 
103
200
  const tzLocal = {
@@ -235,6 +332,73 @@ const tzLocal = {
235
332
  await entity.read('aqaraOpple', [0x0114], {manufacturerCode: 0x115F, disableDefaultResponse: true});
236
333
  },
237
334
  },
335
+ aqara_feeder: {
336
+ key: ['feed', 'schedule', 'led_indicator', 'child_lock', 'mode', 'serving_size', 'portion_weight'],
337
+ convertSet: async (entity, key, value, meta) => {
338
+ const sendAttr = async (attrCode, value, length) => {
339
+ entity.sendSeq = ((entity.sendSeq || 0)+1) % 256;
340
+ const val = Buffer.from([0x00, 0x02, entity.sendSeq, 0, 0, 0, 0, 0]);
341
+ entity.sendSeq += 1;
342
+ val.writeInt32BE(attrCode, 3);
343
+ val.writeUInt8(length, 7);
344
+ let v = Buffer.alloc(length);
345
+ switch (length) {
346
+ case 1:
347
+ v.writeUInt8(value);
348
+ break;
349
+ case 2:
350
+ v.writeUInt16BE(value);
351
+ break;
352
+ case 4:
353
+ v.writeUInt32BE(value);
354
+ break;
355
+ default:
356
+ v = value;
357
+ }
358
+ await entity.write('aqaraOpple', {0xfff1: {value: Buffer.concat([val, v]), type: 0x41}},
359
+ {manufacturerCode: 0x115f});
360
+ };
361
+ switch (key) {
362
+ case 'feed':
363
+ sendAttr(0x04150055, 1, 1);
364
+ break;
365
+ case 'schedule': {
366
+ const schedule = [];
367
+ value.forEach((item) => {
368
+ const schedItem = Buffer.from([
369
+ utils.getKey(daysLookup, item.days, 0x7f),
370
+ item.hour,
371
+ item.minute,
372
+ item.size,
373
+ 0,
374
+ ]);
375
+ schedule.push(schedItem.toString('hex'));
376
+ });
377
+ const val = Buffer.concat([Buffer.from(schedule.join(',')), Buffer.from([0])]);
378
+ sendAttr(0x080008c8, val, val.length);
379
+ break;
380
+ }
381
+ case 'led_indicator':
382
+ sendAttr(0x04170055, {'OFF': 0, 'ON': 1}[value], 1);
383
+ break;
384
+ case 'child_lock':
385
+ sendAttr(0x04160055, {'UNLOCK': 0, 'LOCK': 1}[value], 1);
386
+ break;
387
+ case 'mode':
388
+ sendAttr(0x04180055, {'manual': 0, 'schedule': 1}[value], 1);
389
+ break;
390
+ case 'serving_size':
391
+ sendAttr(0x0e5c0055, value, 4);
392
+ break;
393
+ case 'portion_weight':
394
+ sendAttr(0x0e5f0055, value, 4);
395
+ break;
396
+ default: // Unknown key
397
+ meta.logger.warn(`zigbee-herdsman-converters:aqara_feeder: Unhandled key ${key}`);
398
+ }
399
+ return {state: {[key]: value}};
400
+ },
401
+ },
238
402
  };
239
403
 
240
404
  module.exports = [
@@ -2409,6 +2573,39 @@ module.exports = [
2409
2573
  await endpoint.read('aqaraOpple', [0x040a], {manufacturerCode: 0x115f});
2410
2574
  },
2411
2575
  },
2576
+ {
2577
+ zigbeeModel: ['aqara.feeder.acn001'],
2578
+ model: 'ZNCWWSQ01LM',
2579
+ vendor: 'Xiaomi',
2580
+ description: 'Aqara pet feeder C1',
2581
+ fromZigbee: [fzLocal.aqara_feeder],
2582
+ toZigbee: [tzLocal.aqara_feeder],
2583
+ exposes: [
2584
+ exposes.enum('feed', ea.STATE_SET, ['START']).withDescription('Start feeding'),
2585
+ exposes.enum('feeding_source', ea.STATE, ['manual', 'remote']).withDescription('Feeding source'),
2586
+ exposes.numeric('feeding_size', ea.STATE).withDescription('Feeding size').withUnit('portion'),
2587
+ exposes.numeric('portions_per_day', ea.STATE).withDescription('Portions per day'),
2588
+ exposes.numeric('weight_per_day', ea.STATE).withDescription('Weight per day').withUnit('g'),
2589
+ exposes.binary('error', ea.STATE, true, false)
2590
+ .withDescription('Indicates wether there is an error with the feeder'),
2591
+ exposes.list('schedule', ea.STATE_SET, exposes.composite('dayTime', exposes.access.STATE_SET)
2592
+ .withFeature(exposes.enum('days', exposes.access.STATE_SET, [
2593
+ 'everyday', 'workdays', 'weekend', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun',
2594
+ 'mon-wed-fri-sun', 'tue-thu-sat']))
2595
+ .withFeature(exposes.numeric('hour', exposes.access.STATE_SET))
2596
+ .withFeature(exposes.numeric('minute', exposes.access.STATE_SET))
2597
+ .withFeature(exposes.numeric('size', exposes.access.STATE_SET)),
2598
+ ).withDescription('Feeding schedule'),
2599
+ exposes.switch().withState('led_indicator', true, 'Led indicator', ea.STATE_SET, 'ON', 'OFF'),
2600
+ e.child_lock(),
2601
+ exposes.enum('mode', ea.STATE_SET, ['schedule', 'manual']).withDescription('Feeding mode'),
2602
+ exposes.numeric('serving_size', ea.STATE_SET).withValueMin(1).withValueMax(10).withDescription('One serving size')
2603
+ .withUnit('portion'),
2604
+ exposes.numeric('portion_weight', ea.STATE_SET).withValueMin(1).withValueMax(20).withDescription('Portion weight')
2605
+ .withUnit('g'),
2606
+ ],
2607
+ ota: ota.zigbeeOTA,
2608
+ },
2412
2609
  {
2413
2610
  zigbeeModel: ['lumi.remote.acn007'],
2414
2611
  model: 'WXKG20LM',
package/lib/exposes.js CHANGED
@@ -115,13 +115,14 @@ class Binary extends Base {
115
115
  }
116
116
 
117
117
  class List extends Base {
118
- constructor(name, access) {
118
+ constructor(name, access, itemType) {
119
119
  super();
120
120
  this.type = 'list';
121
121
  this.name = name;
122
122
  this.property = name;
123
123
  this.access = access;
124
- this.item_type = 'number';
124
+ this.item_type = itemType;
125
+ delete this.item_type.property;
125
126
  }
126
127
  }
127
128
 
@@ -487,6 +488,7 @@ module.exports = {
487
488
  numeric: (name, access) => new Numeric(name, access),
488
489
  switch: () => new Switch(),
489
490
  text: (name, access) => new Text(name, access),
491
+ list: (name, access, itemType) => new List(name, access, itemType),
490
492
  options: {
491
493
  calibration: (name, type='absolute') => new Numeric(`${name}_calibration`, access.SET).withDescription(`Calibrates the ${name} value (${type} offset), takes into effect on next report of device.`),
492
494
  precision: (name) => new Numeric(`${name}_precision`, access.SET).withValueMin(0).withValueMax(3).withDescription(`Number of digits after decimal point for ${name}, takes into effect on next report of device.`),
@@ -501,8 +503,8 @@ module.exports = {
501
503
  .withDescription(`Simulate a brightness value. If this device provides a brightness_move_up or brightness_move_down action it is possible to specify the update interval and delta. The action_brightness_delta indicates the delta for each interval. ${extraNote}`)
502
504
  .withFeature(new Numeric('delta', access.SET).withValueMin(0).withDescription('Delta per interval, 20 by default'))
503
505
  .withFeature(new Numeric('interval', access.SET).withValueMin(0).withUnit('ms').withDescription('Interval duration')),
504
- no_occupancy_since_true: () => new List(`no_occupancy_since`, access.SET).withDescription('Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
505
- no_occupancy_since_false: () => new List(`no_occupancy_since`, access.SET).withDescription('Sends a message after the last time no occupancy (occupancy: false) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
506
+ no_occupancy_since_true: () => new List(`no_occupancy_since`, access.SET, new Numeric('time', access.STATE_SET)).withDescription('Sends a message the last time occupancy (occupancy: true) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
507
+ no_occupancy_since_false: () => new List(`no_occupancy_since`, access.SET, new Numeric('time', access.STATE_SET)).withDescription('Sends a message after the last time no occupancy (occupancy: false) was detected. When setting this for example to [10, 60] a `{"no_occupancy_since": 10}` will be send after 10 seconds and a `{"no_occupancy_since": 60}` after 60 seconds.'),
506
508
  presence_timeout: () => new Numeric(`presence_timeout`).withValueMin(0).withDescription('Time in seconds after which presence is cleared after detecting it (default 100 seconds).'),
507
509
  no_position_support: () => new Binary('no_position_support', access.SET, true, false).withDescription('Set to true when your device only reports position 0, 100 and 50 (in this case your device has an older firmware) (default false).'),
508
510
  transition: () => new Numeric(`transition`, access.SET).withValueMin(0).withDescription('Controls the transition time (in seconds) of on/off, brightness, color temperature (if applicable) and color (if applicable) changes. Defaults to `0` (no transition).'),
package/lib/reporting.js CHANGED
@@ -178,7 +178,7 @@ module.exports = {
178
178
  const p = payload('runningMode', 10, repInterval.HOUR, null, overrides);
179
179
  await endpoint.configureReporting('hvacThermostat', p);
180
180
  },
181
- thermostatOcupancy: async (endpoint, overrides) => {
181
+ thermostatOccupancy: async (endpoint, overrides) => {
182
182
  const p = payload('occupancy', 0, repInterval.HOUR, 0, overrides);
183
183
  await endpoint.configureReporting('hvacThermostat', p);
184
184
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.670",
3
+ "version": "14.0.672",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [