Преглед изворни кода

Blitzwolf BW LT31: us string for select dp.

Hex is only intended for encoded values. Due to other device requirements
the hex decoding is done after mapping, so using hex type for mapped values
that are mapped to non-hex produces errors. In this case, using the string
without hex decoding is what we want.

Issue #1505
Jason Rumney пре 2 година
родитељ
комит
a73096b9d5
1 измењених фајлова са 17 додато и 17 уклоњено
  1. 17 17
      custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml

+ 17 - 17
custom_components/tuya_local/devices/blitzwolf_bw_lt31.yaml

@@ -63,41 +63,41 @@ secondary_entities:
     category: config
     dps:
       - id: 102
-        type: hex
+        type: string
         name: option
         optional: true
         mapping:
-          - dps_val: 119
+          - dps_val: "119"
             value: "Classic 25%"
-          - dps_val: 132
+          - dps_val: "132"
             value: "Classic 50%"
-          - dps_val: 14b
+          - dps_val: "14b"
             value: "Classic 75%"
-          - dps_val: 164
+          - dps_val: "164"
             value: "Classic 100%"
-          - dps_val: 219
+          - dps_val: "219"
             value: "Soft 25%"
-          - dps_val: 232
+          - dps_val: "232"
             value: "Soft 50%"
-          - dps_val: 24b
+          - dps_val: "24b"
             value: "Soft 75%"
-          - dps_val: 264
+          - dps_val: "264"
             value: "Soft 100%"
-          - dps_val: 319
+          - dps_val: "319"
             value: "Dynamic 25%"
-          - dps_val: 332
+          - dps_val: "332"
             value: "Dynamic 50%"
-          - dps_val: 34b
+          - dps_val: "34b"
             value: "Dynamic 75%"
-          - dps_val: 364
+          - dps_val: "364"
             value: "Dynamic 100%"
-          - dps_val: 419
+          - dps_val: "419"
             value: "Disco 25%"
-          - dps_val: 432
+          - dps_val: "432"
             value: "Disco 50%"
-          - dps_val: 44b
+          - dps_val: "44b"
             value: "Disco 75%"
-          - dps_val: 464
+          - dps_val: "464"
             value: "Disco 100%"
   - entity: select
     name: Dynamic