Ver código fonte

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 5 meses atrás
pai
commit
4defab0c05

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

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

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

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