Просмотр исходного кода

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 год назад
Родитель
Сommit
bbd364f5dc
1 измененных файлов с 6 добавлено и 5 удалено
  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
         - dps_val: connect
           value: Connected
-        - dps_val: charing            # typo from tuya
+        - dps_val: charing
           value: Charging
         - dps_val: wait_rfid
           value: Waiting for authorization
         - dps_val: finish
           value: Charged
-        - dps_val: wait_charing       # typo from tuya
+        - dps_val: wait_charing
           value: Delaying charge
         - dps_val: error
           value: Error
@@ -251,12 +251,13 @@ secondary_entities:
           - dps_val: 20
             value: 20
             default: true
-  - entity: button
-    name: Toggle charging       # Rfid Switch
+  - entity: switch
+    name: Charging enable
+    icon: "mdi:ev-station"
     dps:
       - id: 112
         type: boolean
-        name: button
+        name: switch
   - entity: sensor
     name: Charging time
     class: duration