zigbee-herdsman-converters 14.0.535 → 14.0.536

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.
@@ -5267,7 +5267,7 @@ const converters = {
5267
5267
  const value = tuya.getDataValue(dpValue);
5268
5268
  const state = value ? 'ON' : 'OFF';
5269
5269
  if (multiEndpoint) {
5270
- const lookup = {1: 'l1', 2: 'l2', 3: 'l3', 4: 'l4'};
5270
+ const lookup = {1: 'l1', 2: 'l2', 3: 'l3', 4: 'l4', 5: 'l5', 6: 'l6'};
5271
5271
  const endpoint = lookup[dp];
5272
5272
  if (endpoint in model.endpoint(msg.device)) {
5273
5273
  return {[`state_${endpoint}`]: state};
@@ -3842,7 +3842,7 @@ const converters = {
3842
3842
  tuya_switch_state: {
3843
3843
  key: ['state'],
3844
3844
  convertSet: async (entity, key, value, meta) => {
3845
- const lookup = {l1: 1, l2: 2, l3: 3, l4: 4};
3845
+ const lookup = {l1: 1, l2: 2, l3: 3, l4: 4, l5: 5, l6: 6};
3846
3846
  const multiEndpoint = utils.getMetaValue(entity, meta.mapped, 'multiEndpoint', 'allEqual', false);
3847
3847
  const keyid = multiEndpoint ? lookup[meta.endpoint_name] : 1;
3848
3848
  await tuya.sendDataPointBool(entity, keyid, value === 'ON');
@@ -267,7 +267,7 @@ module.exports = [
267
267
  vendor: 'Gledopto',
268
268
  ota: ota.zigbeeOTA,
269
269
  description: 'Zigbee LED Controller RGB+CCT (pro)',
270
- whiteLabel: [{vendor: 'Gledopto', model: 'GL-C-001P'}],
270
+ whiteLabel: [{vendor: 'Gledopto', model: 'GL-C-001P'}, {vendor: 'Gledopto', model: 'GL-C-002P'}],
271
271
  extend: gledoptoExtend.light_onoff_brightness_colortemp_color({colorTempRange: [158, 495], noConfigure: true}),
272
272
  meta: {disableDefaultResponse: true},
273
273
  configure: async (device, coordinatorEndpoint, logger) => {
@@ -157,18 +157,10 @@ module.exports = [
157
157
  toZigbee: [],
158
158
  },
159
159
  {
160
- zigbeeModel: ['tint-ColorTemperature'],
161
- model: '404037',
160
+ zigbeeModel: ['tint-ColorTemperature', 'tint-ColorTemperature2'],
161
+ model: '404037/404038',
162
162
  vendor: 'Müller Licht',
163
- description: 'Tint retro filament LED-bulb E27, Edison bulb gold, white+ambiance (1800-6500K), dimmable, 5,5W',
164
- extend: extend.light_onoff_brightness_colortemp(),
165
- toZigbee: extend.light_onoff_brightness_colortemp().toZigbee.concat([tz.tint_scene]),
166
- },
167
- {
168
- zigbeeModel: ['tint-ColorTemperature2'],
169
- model: '404038',
170
- vendor: 'Müller Licht',
171
- description: 'Tint retro filament LED-bulb E27, Globe bulb gold, white+ambiance (1800-6500K), dimmable, 5,5W',
163
+ description: 'CCT LED-bulb',
172
164
  extend: extend.light_onoff_brightness_colortemp({colorTempRange: [153, 555]}),
173
165
  toZigbee: extend.light_onoff_brightness_colortemp().toZigbee.concat([tz.tint_scene]),
174
166
  },
@@ -189,4 +189,33 @@ module.exports = [
189
189
  toZigbee: [tz.tuya_cover_control, tz.tuya_cover_options, tz.tuya_data_point_test],
190
190
  exposes: [e.cover_position().setAccess('position', ea.STATE_SET)],
191
191
  },
192
+ {
193
+ fingerprint: [{modelID: 'TS0601', manufacturerName: '_TZE200_9mahtqtg'}],
194
+ model: 'TB26-6',
195
+ vendor: 'Zemismart',
196
+ description: '6-gang smart wall switch',
197
+ exposes: [e.switch().withEndpoint('l1').setAccess('state', ea.STATE_SET),
198
+ e.switch().withEndpoint('l2').setAccess('state', ea.STATE_SET),
199
+ e.switch().withEndpoint('l3').setAccess('state', ea.STATE_SET),
200
+ e.switch().withEndpoint('l4').setAccess('state', ea.STATE_SET),
201
+ e.switch().withEndpoint('l5').setAccess('state', ea.STATE_SET),
202
+ e.switch().withEndpoint('l6').setAccess('state', ea.STATE_SET)],
203
+ fromZigbee: [fz.ignore_basic_report, fz.tuya_switch],
204
+ toZigbee: [tz.tuya_switch_state],
205
+ meta: {multiEndpoint: true},
206
+ endpoint: (device) => {
207
+ return {'l1': 1, 'l2': 1, 'l3': 1, 'l4': 1, 'l5': 1, 'l6': 1};
208
+ },
209
+ configure: async (device, coordinatorEndpoint, logger) => {
210
+ await reporting.bind(device.getEndpoint(1), coordinatorEndpoint, ['genOnOff']);
211
+ if (device.getEndpoint(2)) await reporting.bind(device.getEndpoint(2), coordinatorEndpoint, ['genOnOff']);
212
+ if (device.getEndpoint(3)) await reporting.bind(device.getEndpoint(3), coordinatorEndpoint, ['genOnOff']);
213
+ if (device.getEndpoint(4)) await reporting.bind(device.getEndpoint(4), coordinatorEndpoint, ['genOnOff']);
214
+ if (device.getEndpoint(5)) await reporting.bind(device.getEndpoint(5), coordinatorEndpoint, ['genOnOff']);
215
+ if (device.getEndpoint(6)) await reporting.bind(device.getEndpoint(6), coordinatorEndpoint, ['genOnOff']);
216
+ // Reports itself as battery which is not correct: https://github.com/Koenkk/zigbee2mqtt/issues/6190
217
+ device.powerSource = 'Mains (single phase)';
218
+ device.save();
219
+ },
220
+ },
192
221
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.535",
3
+ "version": "14.0.536",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [