zigbee-herdsman-converters 15.0.24 → 15.0.25

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.
package/devices/bosch.js CHANGED
@@ -410,7 +410,7 @@ const definition = [
410
410
  exposes.climate()
411
411
  .withLocalTemperature(ea.STATE)
412
412
  .withSetpoint('occupied_heating_setpoint', 5, 30, 0.5)
413
- .withLocalTemperatureCalibration(-12, 12, 0.5)
413
+ .withLocalTemperatureCalibration(-5, 5, 0.1)
414
414
  .withSystemMode(['off', 'heat', 'auto'])
415
415
  .withPiHeatingDemand(ea.STATE),
416
416
  exposes.binary('boost', ea.ALL, 'ON', 'OFF')
@@ -102,7 +102,7 @@ module.exports = [
102
102
  extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
103
103
  },
104
104
  {
105
- zigbeeModel: ['915005996801', '915005996901'],
105
+ zigbeeModel: ['915005996801', '915005996901', '929003574401'],
106
106
  model: '915005996901',
107
107
  vendor: 'Philips',
108
108
  description: 'Hue white ambiance ceiling light Enrave L with Bluetooth',
@@ -143,6 +143,13 @@ module.exports = [
143
143
  description: 'Hue white ambiance suspension Cher with bluetooth 3000lm',
144
144
  extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
145
145
  },
146
+ {
147
+ zigbeeModel: ['4076130P6'],
148
+ model: '4076130P6',
149
+ vendor: 'Philips',
150
+ description: 'Hue white ambiance suspension Cher with bluetooth 3000lm',
151
+ extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
152
+ },
146
153
  {
147
154
  zigbeeModel: ['929003054301'],
148
155
  model: '929003054301',
@@ -2809,6 +2816,13 @@ module.exports = [
2809
2816
  description: 'Hue white ambiance pendant white Enrave',
2810
2817
  extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2811
2818
  },
2819
+ {
2820
+ zigbeeModel: ['929003054501'],
2821
+ model: '929003054501',
2822
+ vendor: 'Philips',
2823
+ description: 'Hue white ambiance Fair ceiling with Bluetooth (white)',
2824
+ extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2825
+ },
2812
2826
  {
2813
2827
  zigbeeModel: ['929003054601'],
2814
2828
  model: '929003054601',
@@ -2816,6 +2830,13 @@ module.exports = [
2816
2830
  description: 'Hue white ambiance Fair ceiling with Bluetooth white',
2817
2831
  extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2818
2832
  },
2833
+ {
2834
+ zigbeeModel: ['929003054701'],
2835
+ model: '929003054701',
2836
+ vendor: 'Philips',
2837
+ description: 'Hue white ambiance Fair ceiling with Bluetooth (black)',
2838
+ extend: philips.extend.light_onoff_brightness_colortemp({colorTempRange: [153, 454]}),
2839
+ },
2819
2840
  {
2820
2841
  zigbeeModel: ['929003048301_01', '929003048301_02', '929003048301_03', '929003048301_04'],
2821
2842
  model: '8719514339163',
@@ -54,7 +54,7 @@ module.exports = [
54
54
  fingerprint: [{modelID: 'Dimmer-Switch-ZB3.0', manufacturerName: 'Samotech'}, {modelID: 'HK_DIM_A', manufacturerName: 'Samotech'}],
55
55
  model: 'SM323',
56
56
  vendor: 'Samotech',
57
- description: 'ZigBee retrofit dimmer 250W',
57
+ description: 'Zigbee retrofit dimmer 250W',
58
58
  extend: extend.light_onoff_brightness({noConfigure: true}),
59
59
  configure: async (device, coordinatorEndpoint, logger) => {
60
60
  await extend.light_onoff_brightness().configure(device, coordinatorEndpoint, logger);
@@ -64,4 +64,19 @@ module.exports = [
64
64
  await reporting.brightness(endpoint);
65
65
  },
66
66
  },
67
+ {
68
+ zigbeeModel: ['SM324'],
69
+ model: 'SM324',
70
+ vendor: 'Samotech',
71
+ description: '220V Zigbee CCT LED dimmer',
72
+ extend: extend.light_onoff_brightness_colortemp({noConfigure: true, colorTempRange: [150, 500]}),
73
+ configure: async (device, coordinatorEndpoint, logger) => {
74
+ await extend.light_onoff_brightness_colortemp().configure(device, coordinatorEndpoint, logger);
75
+ const endpoint = device.getEndpoint(1);
76
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff', 'genLevelCtrl', 'lightingColorCtrl']);
77
+ await reporting.onOff(endpoint);
78
+ await reporting.brightness(endpoint);
79
+ await reporting.colorTemperature(endpoint);
80
+ },
81
+ },
67
82
  ];
@@ -144,8 +144,18 @@ module.exports = [
144
144
  model: 'Z01-A19NAE26',
145
145
  vendor: 'Sengled',
146
146
  description: 'Element plus (A19)',
147
- extend: sengledExtend.light_onoff_brightness_colortemp(),
147
+ fromZigbee: sengledExtend.light_onoff_brightness_colortemp_color().fromZigbee.concat([fz.metering]),
148
+ toZigbee: sengledExtend.light_onoff_brightness_colortemp_color().toZigbee,
148
149
  ota: ota.zigbeeOTA,
150
+ configure: async (device, coordinatorEndpoint, logger) => {
151
+ await sengledExtend.light_onoff_brightness_colortemp_color().configure(device, coordinatorEndpoint, logger);
152
+ const endpoint = device.getEndpoint(1);
153
+ await reporting.bind(endpoint, coordinatorEndpoint, ['seMetering']);
154
+ await reporting.readMeteringMultiplierDivisor(endpoint);
155
+ await reporting.currentSummDelivered(endpoint);
156
+ await reporting.instantaneousDemand(endpoint);
157
+ },
158
+ exposes: sengledExtend.light_onoff_brightness_colortemp_color().exposes.concat([e.power(), e.energy()]),
149
159
  },
150
160
  {
151
161
  zigbeeModel: ['Z01-A60EAE27'],
package/devices/sonoff.js CHANGED
@@ -177,21 +177,16 @@ module.exports = [
177
177
  model: 'SNZB-02D',
178
178
  vendor: 'SONOFF',
179
179
  description: 'Temperature and humidity sensor with screen',
180
- exposes: [e.battery(), e.temperature(), e.humidity(), e.battery_voltage()],
180
+ exposes: [e.battery(), e.temperature(), e.humidity()],
181
181
  fromZigbee: [fz.temperature, fz.humidity, fz.battery],
182
182
  toZigbee: [],
183
183
  configure: async (device, coordinatorEndpoint, logger) => {
184
- try {
185
- const endpoint = device.getEndpoint(1);
186
- const bindClusters = ['msTemperatureMeasurement', 'msRelativeHumidity', 'genPowerCfg'];
187
- await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
188
- await reporting.temperature(endpoint, {min: 5, max: constants.repInterval.MINUTES_30, change: 20});
189
- await reporting.humidity(endpoint);
190
- await reporting.batteryVoltage(endpoint);
191
- await reporting.batteryPercentageRemaining(endpoint);
192
- } catch (e) {/* Not required for all: https://github.com/Koenkk/zigbee2mqtt/issues/5562 */
193
- logger.error(`Configure failed: ${e}`);
194
- }
184
+ const endpoint = device.getEndpoint(1);
185
+ const bindClusters = ['msTemperatureMeasurement', 'msRelativeHumidity', 'genPowerCfg'];
186
+ await reporting.bind(endpoint, coordinatorEndpoint, bindClusters);
187
+ await reporting.temperature(endpoint, {min: 5, max: constants.repInterval.MINUTES_30, change: 20});
188
+ await reporting.humidity(endpoint);
189
+ await reporting.batteryPercentageRemaining(endpoint, {min: 3600, max: 7200});
195
190
  },
196
191
  },
197
192
  {
package/devices/tuya.js CHANGED
@@ -1321,14 +1321,25 @@ module.exports = [
1321
1321
  fromZigbee: [tuya.fz.datapoints],
1322
1322
  toZigbee: [tuya.tz.datapoints],
1323
1323
  configure: tuya.configureMagicPacket,
1324
- exposes: [tuya.exposes.lightBrightness().withEndpoint('l1'), tuya.exposes.lightBrightness().withEndpoint('l2')],
1324
+ exposes: [
1325
+ tuya.exposes.lightBrightnessWithMinMax().withEndpoint('l1'),
1326
+ tuya.exposes.lightBrightnessWithMinMax().withEndpoint('l2'),
1327
+ tuya.exposes.countdown().withEndpoint('l1'),
1328
+ tuya.exposes.countdown().withEndpoint('l2'),
1329
+ ],
1325
1330
  meta: {
1326
1331
  multiEndpoint: true,
1327
1332
  tuyaDatapoints: [
1328
1333
  [1, 'state_l1', tuya.valueConverter.onOff, {skip: tuya.skip.stateOnAndBrightnessPresent}],
1329
1334
  [2, 'brightness_l1', tuya.valueConverter.scale0_254to0_1000],
1335
+ [3, 'min_brightness_l1', tuya.valueConverter.scale0_254to0_1000],
1336
+ [5, 'max_brightness_l1', tuya.valueConverter.scale0_254to0_1000],
1337
+ [6, 'countdown_l1', tuya.valueConverter.countdown],
1330
1338
  [7, 'state_l2', tuya.valueConverter.onOff, {skip: tuya.skip.stateOnAndBrightnessPresent}],
1331
1339
  [8, 'brightness_l2', tuya.valueConverter.scale0_254to0_1000],
1340
+ [9, 'min_brightness_l2', tuya.valueConverter.scale0_254to0_1000],
1341
+ [11, 'max_brightness_l2', tuya.valueConverter.scale0_254to0_1000],
1342
+ [12, 'countdown_l2', tuya.valueConverter.countdown],
1332
1343
  ],
1333
1344
  },
1334
1345
  endpoint: (device) => {
@@ -2027,8 +2038,7 @@ module.exports = [
2027
2038
  },
2028
2039
  },
2029
2040
  {
2030
- fingerprint: [{modelID: 'TS0003', manufacturerName: '_TZ3000_vsasbzkf'},
2031
- {modelID: 'TS0003', manufacturerName: '_TZ3000_odzoiovu'}],
2041
+ fingerprint: tuya.fingerprint('TS0003', ['_TZ3000_vsasbzkf', '_TZ3000_odzoiovu', '_TZ3000_4o16jdca']),
2032
2042
  model: 'TS0003_switch_module',
2033
2043
  vendor: 'TuYa',
2034
2044
  description: '3 gang switch module',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "15.0.24",
3
+ "version": "15.0.25",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [