From b0481d62f8a8e3594efb6913f0ed92371c20ac49 Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sun, 8 Dec 2024 12:15:39 +0900 Subject: [PATCH] TOMPD 63LW: add compatibility with TOMPD 63WIFI PR #2618 --- .../devices/tompd_63lw_breaker.yaml | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/custom_components/tuya_local/devices/tompd_63lw_breaker.yaml b/custom_components/tuya_local/devices/tompd_63lw_breaker.yaml index 9796e3e6c0..ff739482cb 100644 --- a/custom_components/tuya_local/devices/tompd_63lw_breaker.yaml +++ b/custom_components/tuya_local/devices/tompd_63lw_breaker.yaml @@ -4,11 +4,14 @@ products: name: TOMPD-63LW - id: psjg8ldomxnelfp5 name: TOMZN-63A + - id: wcihaluccfsoayqa + name: TOMPD-63WIFI primary_entity: entity: switch dps: - id: 16 name: switch + icon: "mdi:fuse" type: boolean - id: 17 name: alarm_set_1 @@ -111,7 +114,6 @@ secondary_entities: mapping: - scale: 100 - entity: sensor - name: Voltage A class: voltage category: diagnostic dps: @@ -124,7 +126,6 @@ secondary_entities: mapping: - scale: 10 - entity: sensor - name: Current A class: current category: diagnostic dps: @@ -137,7 +138,6 @@ secondary_entities: mapping: - scale: 1000 - entity: sensor - name: Power A class: power category: diagnostic dps: @@ -167,3 +167,29 @@ secondary_entities: type: bitfield name: fault_code optional: true + - entity: number + name: Voltage protection time + category: config + icon: "mdi:timer" + dps: + - id: 104 + type: integer + optional: true + name: value + unit: s + range: + min: 1 + max: 30 + - entity: number + name: Voltage recovery time + category: config + icon: "mdi:timer" + dps: + - id: 105 + type: integer + optional: true + name: value + unit: s + range: + min: 1 + max: 500