zigbee-herdsman-converters 23.11.0 → 23.13.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.
@@ -0,0 +1,3 @@
1
+ import type { DefinitionWithExtend } from "../lib/types";
2
+ export declare const definitions: DefinitionWithExtend[];
3
+ //# sourceMappingURL=shelly.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shelly.d.ts","sourceRoot":"","sources":["../../src/devices/shelly.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,cAAc,CAAC;AAEvD,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAQ7C,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.definitions = void 0;
37
+ const m = __importStar(require("../lib/modernExtend"));
38
+ exports.definitions = [
39
+ {
40
+ zigbeeModel: ["Mini1"],
41
+ model: "S4SW-001X8EU",
42
+ vendor: "Shelly",
43
+ description: "Mini gen 4",
44
+ extend: [m.onOff({ powerOnBehavior: false })],
45
+ },
46
+ ];
47
+ //# sourceMappingURL=shelly.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shelly.js","sourceRoot":"","sources":["../../src/devices/shelly.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uDAAyC;AAG5B,QAAA,WAAW,GAA2B;IAC/C;QACI,WAAW,EAAE,CAAC,OAAO,CAAC;QACtB,KAAK,EAAE,cAAc;QACrB,MAAM,EAAE,QAAQ;QAChB,WAAW,EAAE,YAAY;QACzB,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,EAAC,eAAe,EAAE,KAAK,EAAC,CAAC,CAAC;KAC9C;CACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"tuya.d.ts","sourceRoot":"","sources":["../../src/devices/tuya.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,oBAAoB,EAA0E,MAAM,cAAc,CAAC;AAw1BhI,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAqve7C,CAAC"}
1
+ {"version":3,"file":"tuya.d.ts","sourceRoot":"","sources":["../../src/devices/tuya.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAC,oBAAoB,EAA0E,MAAM,cAAc,CAAC;AAw1BhI,eAAO,MAAM,WAAW,EAAE,oBAAoB,EAkze7C,CAAC"}
@@ -2357,6 +2357,31 @@ exports.definitions = [
2357
2357
  ],
2358
2358
  },
2359
2359
  },
2360
+ {
2361
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE200_qzaing2g"]),
2362
+ model: "TS0601_dimmer_1_gang_3",
2363
+ vendor: "Tuya",
2364
+ description: "1 gang smart dimmer",
2365
+ fromZigbee: [tuya.fz.datapoints],
2366
+ toZigbee: [tuya.tz.datapoints],
2367
+ configure: tuya.configureMagicPacket,
2368
+ exposes: [tuya.exposes.lightBrightness(), e.voltage(), e.current(), e.power(), e.child_lock(), tuya.exposes.backlightModeOffOn()],
2369
+ meta: {
2370
+ tuyaDatapoints: [
2371
+ [16, "backlight_mode", tuya.valueConverter.onOff],
2372
+ [21, "current", tuya.valueConverter.divideBy1000],
2373
+ [22, "power", tuya.valueConverter.divideBy10],
2374
+ [23, "voltage", tuya.valueConverter.divideBy10],
2375
+ [101, "child_lock", tuya.valueConverter.lockUnlock],
2376
+ [141, "state", tuya.valueConverter.onOff, { skip: tuya.skip.stateOnAndBrightnessPresent }],
2377
+ [142, "brightness", tuya.valueConverter.scale0_254to0_1000],
2378
+ // Doesn't seem to work
2379
+ // https://github.com/Koenkk/zigbee2mqtt/issues/26526#issuecomment-2749559071
2380
+ // [143, "min_brightness", tuya.valueConverter.scale0_254to0_1000],
2381
+ // [144, "max_brightness", tuya.valueConverter.scale0_254to0_1000],
2382
+ ],
2383
+ },
2384
+ },
2360
2385
  {
2361
2386
  fingerprint: tuya.fingerprint("TS0601", ["_TZE200_fjjbhx9d", "_TZE200_e3oitdyu", "_TZE200_gwkapsoq", "_TZE204_zenj4lxv"]),
2362
2387
  model: "TS0601_dimmer_2",
@@ -7757,7 +7782,7 @@ exports.definitions = [
7757
7782
  onEvent: tuya.onEventSetTime,
7758
7783
  },
7759
7784
  {
7760
- fingerprint: tuya.fingerprint("TS0601", ["_TZE200_viy9ihs7", "_TZE204_lzriup1j", "_TZE204_xnbkhhdr", "_TZE284_xnbkhhdr"]),
7785
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE200_viy9ihs7", "_TZE204_lzriup1j", "_TZE204_xnbkhhdr", "_TZE284_xnbkhhdr", "_TZE204_oh8y8pv8"]),
7761
7786
  model: "ZWT198/ZWT100-BH",
7762
7787
  vendor: "Tuya",
7763
7788
  description: "Wall thermostat",
@@ -9900,7 +9925,9 @@ exports.definitions = [
9900
9925
  exposes: [
9901
9926
  e.light_brightness().withMinBrightness().withMaxBrightness().withEndpoint("l1"),
9902
9927
  e.light_brightness().withMinBrightness().withMaxBrightness().withEndpoint("l2"),
9903
- e.power_on_behavior().withAccess(ea.ALL),
9928
+ e.power_on_behavior().withEndpoint("l1"),
9929
+ e.power_on_behavior().withEndpoint("l2"),
9930
+ tuya.exposes.lightType().withAccess(ea.ALL),
9904
9931
  tuya.exposes.switchType().withEndpoint("l1"),
9905
9932
  tuya.exposes.switchType().withEndpoint("l2"),
9906
9933
  ],
@@ -16284,5 +16311,39 @@ exports.definitions = [
16284
16311
  description: "Battery powered light",
16285
16312
  extend: [m.battery(), m.light()],
16286
16313
  },
16314
+ {
16315
+ fingerprint: tuya.fingerprint("TS0601", ["_TZE204_atdqo4nj"]),
16316
+ model: "ZG-WK-DA-Wh-Zigbee",
16317
+ vendor: "Tuya",
16318
+ description: "Wall thermostat with humidity sensor",
16319
+ fromZigbee: [tuya.fz.datapoints],
16320
+ toZigbee: [tuya.tz.datapoints],
16321
+ configure: tuya.configureMagicPacket,
16322
+ exposes: [
16323
+ e.humidity(),
16324
+ e.child_lock(),
16325
+ //e.temperature_sensor_select(['internal', 'external', 'both']),
16326
+ e
16327
+ .climate()
16328
+ .withSystemMode(["off", "heat"], ea.STATE_SET)
16329
+ .withPreset(["manual", "auto"])
16330
+ .withSetpoint("current_heating_setpoint", 5, 35, 0.5, ea.STATE_SET)
16331
+ .withRunningState(["idle", "heat"], ea.STATE)
16332
+ .withLocalTemperature(ea.STATE)
16333
+ .withLocalTemperatureCalibration(-9, 9, 1, ea.STATE_SET),
16334
+ ],
16335
+ meta: {
16336
+ tuyaDatapoints: [
16337
+ [1, "system_mode", tuya.valueConverterBasic.lookup({ heat: true, off: false })],
16338
+ [2, "current_heating_setpoint", tuya.valueConverter.divideBy10],
16339
+ [3, "local_temperature", tuya.valueConverter.divideBy10],
16340
+ [4, "preset", tuya.valueConverterBasic.lookup({ manual: 0, auto: 1 })],
16341
+ [9, "child_lock", tuya.valueConverter.lockUnlock],
16342
+ //[11, 'unknown', null],
16343
+ [19, "local_temperature_calibration", tuya.valueConverterBasic.divideBy(1)],
16344
+ [102, "running_state", tuya.valueConverterBasic.lookup({ heat: 0, idle: 1 })],
16345
+ ],
16346
+ },
16347
+ },
16287
16348
  ];
16288
16349
  //# sourceMappingURL=tuya.js.map