Selaa lähdekoodia

feat(feyree_ev_portable_charger): add another model

- Remove 60A and 80A dps, as they clash with model info on some models,
and such high current chargers are more likely to be used in commercial
installations that are not relevant to Home Assistant. This avoids
configuration file proliferation for minor variations in similar devices.
- Make fault sensor optional, as this model does not report it

Issue #3459
Jason Rumney 8 kuukautta sitten
vanhempi
commit
1c6154b70c

+ 30 - 22
custom_components/tuya_local/devices/feyree_ev_portable_charger.yaml

@@ -6,6 +6,9 @@ products:
   - id: ebdm8ax35pgodi2s
     manufacturer: Feyree
     model: 22kW 3phase
+  - id: uqmtey1qymnyzobg
+    manufacturer: Feyree
+    model: "4.3 11kW 3phase"
 entities:
   - entity: sensor
     class: enum
@@ -66,16 +69,21 @@ entities:
     dps:
       - id: 10
         type: bitfield
+        optional: true
         name: sensor
         mapping:
           - dps_val: 0
             value: false
+          - dps_val: null
+            value: false
           - value: true
       - id: 10
         type: bitfield
+        optional: true
         name: fault_code
       - id: 10
         type: bitfield
+        optional: true
         name: description
         mapping:
           - dps_val: 0
@@ -190,10 +198,10 @@ entities:
                 value_redirect: value_40a
               - dps_val: Max50A
                 value_redirect: value_50a
-              - dps_val: Max60A
-                value_redirect: value_60a
-              - dps_val: Max80A
-                value_redirect: value_80a
+              # - dps_val: Max60A
+              #   value_redirect: value_60a
+              # - dps_val: Max80A
+              #   value_redirect: value_80a
       - id: 113
         type: string
         optional: true
@@ -207,10 +215,10 @@ entities:
             value: 40
           - dps_val: Max50A
             value: 50
-          - dps_val: Max60A
-            value: 60
-          - dps_val: Max80A
-            value: 80
+          # - dps_val: Max60A
+          #   value: 60
+          # - dps_val: Max80A
+          #   value: 80
       - id: 113
         type: string
         optional: true
@@ -240,20 +248,20 @@ entities:
         range:
           min: 8
           max: 50
-      - id: 125
-        type: integer
-        optional: true
-        name: value_60a
-        range:
-          min: 8
-          max: 60
-      - id: 126
-        type: integer
-        optional: true
-        name: value_80a
-        range:
-          min: 24
-          max: 80
+      # - id: 125
+      #   type: integer
+      #   optional: true
+      #   name: value_60a
+      #   range:
+      #     min: 8
+      #     max: 60
+      # - id: 126
+      #   type: integer
+      #   optional: true
+      #   name: value_80a
+      #   range:
+      #     min: 24
+      #     max: 80
   - entity: number
     name: Charge delay
     category: config