zigbee-herdsman-converters 14.0.320 → 14.0.321

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.
@@ -2032,7 +2032,7 @@ const converters = {
2032
2032
  xiaomi_switch_power_outage_memory: {
2033
2033
  key: ['power_outage_memory'],
2034
2034
  convertSet: async (entity, key, value, meta) => {
2035
- if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
2035
+ if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'DLKZMK12LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
2036
2036
  'WS-EUK01', 'WS-EUK02', 'WS-EUK03', 'WS-EUK04', 'QBKG31LM', 'QBCZ15LM', 'QBKG20LM', 'QBKG38LM',
2037
2037
  'QBKG34LM', 'QBCZ14LM', 'QBKG19LM'].includes(meta.mapped.model)) {
2038
2038
  await entity.write('aqaraOpple', {0x0201: {value: value ? 1 : 0, type: 0x10}}, manufacturerOptions.xiaomi);
@@ -2055,7 +2055,7 @@ const converters = {
2055
2055
  return {state: {power_outage_memory: value}};
2056
2056
  },
2057
2057
  convertGet: async (entity, key, meta) => {
2058
- if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
2058
+ if (['ZNCZ04LM', 'QBKG25LM', 'SSM-U01', 'SSM-U02', 'DLKZMK11LM', 'DLKZMK12LM', 'QBKG39LM', 'QBKG41LM', 'ZNCZ15LM',
2059
2059
  'WS-EUK02', 'WS-EUK01', 'QBKG31LM', 'QBCZ15LM', 'QBCZ14LM', 'QBKG20LM', 'QBKG34LM', 'QBKG19LM',
2060
2060
  'QBKG38LM'].includes(meta.mapped.model)) {
2061
2061
  await entity.read('aqaraOpple', [0x0201]);
@@ -2104,7 +2104,7 @@ module.exports = [
2104
2104
  vendor: 'Philips',
2105
2105
  description: 'Hue Play gradient lightstrip 65',
2106
2106
  meta: {turnsOffAtBrightness1: true},
2107
- extend: hueExtend.light_onoff_brightness_colortemp({colorTempRange: [153, 500]}),
2107
+ extend: hueExtend.light_onoff_brightness_colortemp_color({colorTempRange: [153, 500]}),
2108
2108
  ota: ota.zigbeeOTA,
2109
2109
  },
2110
2110
  {
package/devices/tuya.js CHANGED
@@ -1014,11 +1014,15 @@ module.exports = [
1014
1014
  .withDescription('Recover state after power outage')],
1015
1015
  },
1016
1016
  {
1017
- fingerprint: [{modelID: 'TS011F', manufacturerName: '_TZ3000_dpo1ysak'},
1018
- {modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7', applicationVersion: 69}],
1017
+ fingerprint: [
1018
+ {modelID: 'TS011F', manufacturerName: '_TZ3000_dpo1ysak'},
1019
+ {modelID: 'TS011F', manufacturerName: '_TZ3000_cphmq0q7', applicationVersion: 69},
1020
+ {modelID: 'TS011F', manufacturerName: '_TZ3000_5f43h46b'},
1021
+ ],
1019
1022
  model: 'TS011F_plug_3',
1020
1023
  description: 'Smart plug (with power monitoring by polling)',
1021
1024
  vendor: 'TuYa',
1025
+ whiteLabel: [{vendor: 'VIKEFON', model: 'TS011F'}],
1022
1026
  fromZigbee: [fz.on_off, fz.electrical_measurement, fz.metering, fz.ignore_basic_report, fz.tuya_switch_power_outage_memory],
1023
1027
  toZigbee: [tz.on_off, tz.tuya_switch_power_outage_memory],
1024
1028
  configure: async (device, coordinatorEndpoint, logger) => {
package/devices/xiaomi.js CHANGED
@@ -1426,6 +1426,22 @@ module.exports = [
1426
1426
  device.save();
1427
1427
  },
1428
1428
  },
1429
+ {
1430
+ zigbeeModel: ['lumi.switch.l0acn1'],
1431
+ model: 'DLKZMK12LM',
1432
+ vendor: 'Xiaomi',
1433
+ description: 'Aqara single switch module T1 (without neutral). Doesn\'t work as a router and doesn\'t support power meter',
1434
+ fromZigbee: [fz.on_off, fz.xiaomi_switch_type, fz.xiaomi_switch_power_outage_memory],
1435
+ exposes: [e.switch(), e.power_outage_memory(), e.switch_type()],
1436
+ toZigbee: [tz.xiaomi_switch_type, tz.on_off, tz.xiaomi_switch_power_outage_memory],
1437
+ configure: async (device, coordinatorEndpoint, logger) => {
1438
+ const endpoint = device.getEndpoint(1);
1439
+ await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
1440
+ await reporting.onOff(endpoint);
1441
+ device.powerSource = 'Mains (single phase)';
1442
+ device.save();
1443
+ },
1444
+ },
1429
1445
  {
1430
1446
  zigbeeModel: ['lumi.switch.n4acn4'],
1431
1447
  model: 'ZNCJMB14LM',
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.320",
3
+ "version": "14.0.321",
4
4
  "lockfileVersion": 1,
5
5
  "requires": true,
6
6
  "dependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zigbee-herdsman-converters",
3
- "version": "14.0.320",
3
+ "version": "14.0.321",
4
4
  "description": "Collection of device converters to be used with zigbee-herdsman",
5
5
  "main": "index.js",
6
6
  "files": [