From 4295ce0da3f514d1986d6daeece4c7873229f48a Mon Sep 17 00:00:00 2001 From: Konnichy Date: Fri, 20 Dec 2024 03:27:24 +0100 Subject: [PATCH 1/4] Added device _TZE204_81yrt3lo --- personal-tuya-devices/fingerprints.yaml | 5 ++++ .../models/TS0601/_TZE204_81yrt3lo.yaml | 25 +++++++++++++++++++ .../profiles/normal-powerMeter-v1.yaml | 1 + 3 files changed, 31 insertions(+) create mode 100644 personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml diff --git a/personal-tuya-devices/fingerprints.yaml b/personal-tuya-devices/fingerprints.yaml index c1acfce6..b9ba1514 100644 --- a/personal-tuya-devices/fingerprints.yaml +++ b/personal-tuya-devices/fingerprints.yaml @@ -291,6 +291,11 @@ zigbeeManufacturer: manufacturer: _TZE200_ztc6ggyl deviceProfileName: normal-presenceSensor-v1 deviceLabel: Presence Sensor + - id: TS0601/_TZE204_81yrt3lo + model: TS0601 + manufacturer: _TZE204_81yrt3lo + deviceProfileName: normal-powerMeter-v1 + deviceLabel: Power Meter - id: TS0601/_TZE204_ac0fhfiq model: TS0601 manufacturer: _TZE204_ac0fhfiq diff --git a/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml b/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml new file mode 100644 index 00000000..470b97bd --- /dev/null +++ b/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml @@ -0,0 +1,25 @@ +deviceLabel: Power Meter +profiles: + - normal_powerMeter_v1 +datapoints: + # https://raw.githubusercontent.com/jeverley/zha-device-handlers/refs/heads/ts0601_energy_meter_devices/zhaquirks/tuya/ts0601_energy_meter.py + - id: 113 + command: currentMeasurement + base: + group: 1 + rate: 10000 + - id: 101 + command: powerMeter + base: + group: 1 + rate: 1000 + - id: 112 + command: voltageMeasurement + base: + group: 1 + rate: 1000 + - id: 107 + command: energyMeter + base: + group: 1 + rate: 10000 diff --git a/personal-tuya-devices/profiles/normal-powerMeter-v1.yaml b/personal-tuya-devices/profiles/normal-powerMeter-v1.yaml index bd1a2338..a01e7e42 100644 --- a/personal-tuya-devices/profiles/normal-powerMeter-v1.yaml +++ b/personal-tuya-devices/profiles/normal-powerMeter-v1.yaml @@ -57,6 +57,7 @@ preferences: _TZE200_lsanae15: _TZE200_lsanae15 (1,6) _TZE204_ac0fhfiq: _TZE204_ac0fhfiq (1,6) _TZE204_cjbofhxw: _TZE204_cjbofhxw (101,20,18,19) + _TZE204_81yrt3lo: _TZE204_81yrt3lo (107,112,113,101) - name: dpPowerMeterMain01 title: DP for Power Meter A description: Only if you want to override the default DataPoint From bf46dd765c3ee944c821cd1f5e4a9b0b38615ffa Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 20 Dec 2024 02:28:43 +0000 Subject: [PATCH 2/4] docs: update readme file [skip ci] --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6323eb0b..63876bb0 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,10 @@ ### STABLE Invitation Link -https://api.smartthings.com/invite/6Vjd4YPVJwjN + ### BETA Invitation Link - Used for monitored tests with other users -https://bestow-regional.api.smartthings.com/invite/VbMb856WP8lB +
From 2b3019e83a85663509e1ceac791785459a26963d Mon Sep 17 00:00:00 2001 From: Konnichy Date: Fri, 20 Dec 2024 04:11:21 +0100 Subject: [PATCH 3/4] Updated documentation --- personal-tuya-devices/DEVICES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/personal-tuya-devices/DEVICES.md b/personal-tuya-devices/DEVICES.md index 44eca188..c61c3809 100644 --- a/personal-tuya-devices/DEVICES.md +++ b/personal-tuya-devices/DEVICES.md @@ -52,6 +52,7 @@ | TS0601 | \_TZE200_zl1kmjqx | LCD T+H Sensor | normal-temphumibatt-v1 | 1, 2, 4 | | TS0601 | \_TZE200_znbl8dj5 | LCD T+H Sensor | normal-temphumibatt-v1 | 1, 2, 4 | | TS0601 | \_TZE200_ztc6ggyl | Presence Sensor | normal-presenceSensor-v1 | 1, 2, 3, 4, 101, 102, 104 | +| TS0601 | \_TZE204_81yrt3lo | Power Meter | normal-powerMeter-v1 | 101, 107, 112, 113 | | TS0601 | \_TZE204_ac0fhfiq | Power Meter | normal-powerMeter-v1 | 6, 1 | | TS0601 | \_TZE204_aoclfnxz | Thermostat | normal-thermostat-v4 | 1, 16, 24 | | TS0601 | \_TZE204_cjbofhxw | Power Meter | normal-powerMeter-v1 | 18, 19, 20, 101 | From 5b4a6bb1ac31b82f2cccaac306c2ac425df8fd28 Mon Sep 17 00:00:00 2001 From: Konnichy Date: Fri, 20 Dec 2024 04:57:49 +0100 Subject: [PATCH 4/4] Fix: Divide energy rate by 10 --- personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml b/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml index 470b97bd..39636751 100644 --- a/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml +++ b/personal-tuya-devices/models/TS0601/_TZE204_81yrt3lo.yaml @@ -22,4 +22,4 @@ datapoints: command: energyMeter base: group: 1 - rate: 10000 + rate: 1000