Procházet zdrojové kódy

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 před 9 měsíci
rodič
revize
1c6154b70c

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

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