Просмотр исходного кода

fix(tompd_63lw_breaker): add 63SW label and V/A/W measurement state class (#5571)

Product id u0cxoxtfelys3ufx is broadcast by a live TOMZN TOMPD-63SW,
so label it TOMPD-63LW/63SW (id was added as 63LW v2 in #2619 and also
reported for a Dewin breaker in #4731). Add class: measurement to the
voltage/current/power sensors so HA records long-term statistics,
matching the pf/frequency/leakage sensors in the same file.

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Shadow 1 неделя назад
Родитель
Сommit
7955fe97b8
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

+ 4 - 1
custom_components/tuya_local/devices/tompd_63lw_breaker.yaml

@@ -5,7 +5,7 @@ products:
   - id: psjg8ldomxnelfp5
   - id: psjg8ldomxnelfp5
     model: TOMZN-63A
     model: TOMZN-63A
   - id: u0cxoxtfelys3ufx
   - id: u0cxoxtfelys3ufx
-    model: TOMPD-63LW
+    model: TOMPD-63LW/63SW
 entities:
 entities:
   - entity: switch
   - entity: switch
     icon: "mdi:fuse"
     icon: "mdi:fuse"
@@ -121,6 +121,7 @@ entities:
         optional: true
         optional: true
         name: sensor
         name: sensor
         unit: V
         unit: V
+        class: measurement
         mapping:
         mapping:
           - dps_val: null
           - dps_val: null
             value_redirect: phase_a
             value_redirect: phase_a
@@ -141,6 +142,7 @@ entities:
         optional: true
         optional: true
         name: sensor
         name: sensor
         unit: A
         unit: A
+        class: measurement
         mapping:
         mapping:
           - dps_val: null
           - dps_val: null
             value_redirect: phase_a
             value_redirect: phase_a
@@ -161,6 +163,7 @@ entities:
         optional: true
         optional: true
         name: sensor
         name: sensor
         unit: kW
         unit: kW
+        class: measurement
         mapping:
         mapping:
           - dps_val: null
           - dps_val: null
             value_redirect: phase_a
             value_redirect: phase_a