Browse Source

Feyree EV charger: convert charging toggle button to a switch

The original report was a bit ambiguous about the use of this, and the
description or one of the comments labelled it as related to RFid card
use, so I made it a button type.

This appears to be wrong, and it is a switch in the Tuya app.

Issue #1796
Jason Rumney 1 year ago
parent
commit
bbd364f5dc
1 changed files with 6 additions and 5 deletions
  1. 6 5
      custom_components/tuya_local/devices/feyree_ev_charger.yaml

+ 6 - 5
custom_components/tuya_local/devices/feyree_ev_charger.yaml

@@ -18,13 +18,13 @@ primary_entity:
           value: Disconnected
           value: Disconnected
         - dps_val: connect
         - dps_val: connect
           value: Connected
           value: Connected
-        - dps_val: charing            # typo from tuya
+        - dps_val: charing
           value: Charging
           value: Charging
         - dps_val: wait_rfid
         - dps_val: wait_rfid
           value: Waiting for authorization
           value: Waiting for authorization
         - dps_val: finish
         - dps_val: finish
           value: Charged
           value: Charged
-        - dps_val: wait_charing       # typo from tuya
+        - dps_val: wait_charing
           value: Delaying charge
           value: Delaying charge
         - dps_val: error
         - dps_val: error
           value: Error
           value: Error
@@ -251,12 +251,13 @@ secondary_entities:
           - dps_val: 20
           - dps_val: 20
             value: 20
             value: 20
             default: true
             default: true
-  - entity: button
-    name: Toggle charging       # Rfid Switch
+  - entity: switch
+    name: Charging enable
+    icon: "mdi:ev-station"
     dps:
     dps:
       - id: 112
       - id: 112
         type: boolean
         type: boolean
-        name: button
+        name: switch
   - entity: sensor
   - entity: sensor
     name: Charging time
     name: Charging time
     class: duration
     class: duration