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

fix (feyree_ev_portable_charger): drop RFID and make some optional

Recent changes to support more models from Feyree without making new
configs every time have broken compatibility with the product this
config was originally made for.
The boolean RFID switch on other models clashes with string "PE" dp that
was unsupported by the original config. Some of the sensors that were added
later are actually listed in the Query Things Data Model for the original
device, but were not appearing in its logs, so need to be optional.

Issue #3860
Jason Rumney 4 месяцев назад
Родитель
Сommit
5b94afacc6
1 измененных файлов с 6 добавлено и 8 удалено
  1. 6 8
      custom_components/tuya_local/devices/feyree_ev_portable_charger.yaml

+ 6 - 8
custom_components/tuya_local/devices/feyree_ev_portable_charger.yaml

@@ -340,6 +340,7 @@ entities:
     dps:
     dps:
       - id: 124
       - id: 124
         type: string
         type: string
+        optional: true
         name: option
         name: option
         mapping:
         mapping:
           - dps_val: CloseCharging
           - dps_val: CloseCharging
@@ -354,6 +355,7 @@ entities:
     dps:
     dps:
       - id: 102
       - id: 102
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: V
         unit: V
         class: measurement
         class: measurement
@@ -412,6 +414,7 @@ entities:
     dps:
     dps:
       - id: 105
       - id: 105
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: A
         unit: A
         class: measurement
         class: measurement
@@ -426,6 +429,7 @@ entities:
     dps:
     dps:
       - id: 106
       - id: 106
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: A
         unit: A
         class: measurement
         class: measurement
@@ -448,6 +452,7 @@ entities:
     dps:
     dps:
       - id: 107
       - id: 107
         type: integer
         type: integer
+        optional: true
         name: sensor
         name: sensor
         unit: A
         unit: A
         class: measurement
         class: measurement
@@ -493,6 +498,7 @@ entities:
     dps:
     dps:
       - id: 120
       - id: 120
         type: string
         type: string
+        optional: true
         name: sensor
         name: sensor
   - entity: text
   - entity: text
     name: Alarm set 1
     name: Alarm set 1
@@ -514,11 +520,3 @@ entities:
         type: base64
         type: base64
         optional: true
         optional: true
         name: value
         name: value
-  - entity: switch
-    name: RFID
-    category: config
-    dps:
-      - id: 123
-        type: boolean
-        optional: true
-        name: switch