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

Changing DP online_state to meet more standard configuration using binary-sensor of class: connectivity

David Ribeiro 8 месяцев назад
Родитель
Сommit
2cdd2ecf2a

+ 5 - 5
custom_components/tuya_local/devices/dowell_dchs-k7_32_7kw_ev_charger.yaml

@@ -457,19 +457,19 @@ entities:
         type: boolean
         optional: true
         name: button
-  - entity: select
-    name: online_state
+  - entity: binary_sensor
+    class: connectivity
     category: diagnostic
     dps:
       - id: 27    # online_state
         type: string
         optional: true
-        name: option
+        name: sensor
         mapping:
           - dps_val: offline
-            value: offline
+            value: off
           - dps_val: online
-            value: online
+            value: on
   - entity: switch
     name: rf_enable
     category: config