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

feat!(vevor_ev_charger): replace Live updates switch with Refresh button

According to user feedback on #5017, the turning the Live updates
switch on is only effective for 5 minutes, but the device does not
report when it is toggled off automatically. So it is acting more
like a button, and for consistency with other devices should be
modelled as such ready for future translation.
Jason Rumney 11 часов назад
Родитель
Сommit
31c98b2eaa
1 измененных файлов с 14 добавлено и 0 удалено
  1. 14 0
      custom_components/tuya_local/devices/vevor_ev_charger.yaml

+ 14 - 0
custom_components/tuya_local/devices/vevor_ev_charger.yaml

@@ -222,9 +222,23 @@ entities:
         mapping:
           - scale: 100
 
+  - entity: button
+    name: Refresh
+    category: config
+    icon: "mdi:sync"
+    dps:
+      - id: 27
+        type: string
+        optional: true
+        name: button
+        mapping:
+          - dps_val: online
+            value: true
+
   - entity: switch
     category: config
     name: Live updates
+    deprecated: button_refresh  # 2026-11-26
     icon: "mdi:chart-bar"
     dps:
       - id: 27