Explorar el Código

fix(feyree ev chargers): allow current to be set down to 6A

Based on multiple reports for multiple chargers, it is common for EV
chargers to be settable down to 6A, even though they are documented
with minimum of 8A. This seems to be the case at least for 16A and 32A
models, and is especially requested by users who use solar panels with
them to maximise use of solar power without using grid power for
charging.

Issue #3697 (requested for feyree_ev_portable_charger, but assume the
same is true for feyree_ev_charger also).
Jason Rumney hace 5 meses
padre
commit
4defab0c05

+ 1 - 1
custom_components/tuya_local/devices/feyree_ev_charger.yaml

@@ -148,7 +148,7 @@ entities:
         name: value
         name: value
         unit: A
         unit: A
         range:
         range:
-          min: 8
+          min: 6
           max: 32
           max: 32
   - entity: switch
   - entity: switch
     name: Leak enable
     name: Leak enable

+ 11 - 2
custom_components/tuya_local/devices/feyree_ev_portable_charger.yaml

@@ -187,17 +187,26 @@ entities:
         name: value
         name: value
         unit: A
         unit: A
         range:
         range:
-          min: 8
+          min: 6
           max: 16
           max: 16
         mapping:
         mapping:
           - constraint: maximum
           - constraint: maximum
             conditions:
             conditions:
               - dps_val: Max32A
               - dps_val: Max32A
                 value_redirect: value_32a
                 value_redirect: value_32a
+                range:
+                  min: 6
+                  max: 32
               - dps_val: Max40A
               - dps_val: Max40A
                 value_redirect: value_40a
                 value_redirect: value_40a
+                range:
+                  min: 8
+                  max: 40
               - dps_val: Max50A
               - dps_val: Max50A
                 value_redirect: value_50a
                 value_redirect: value_50a
+                range:
+                  min: 8
+                  max: 50
                 # - dps_val: Max60A
                 # - dps_val: Max60A
                 #   value_redirect: value_60a
                 #   value_redirect: value_60a
                 # - dps_val: Max80A
                 # - dps_val: Max80A
@@ -232,7 +241,7 @@ entities:
         optional: true
         optional: true
         name: value_32a
         name: value_32a
         range:
         range:
-          min: 8
+          min: 6
           max: 32
           max: 32
       - id: 116
       - id: 116
         type: integer
         type: integer