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

Ustellar UT99911 RGB: rename attributes without spaces

- don't bother to map values for app_mode, as the original values are enough to identify the meaning, and the attribute is not important enough to add the extra complexity.

- revert dp 103 type to string, it seems the review comment was misinterpreted.

PR #2732
Jason Rumney 1 год назад
Родитель
Сommit
7d8ce77f16
1 измененных файлов с 9 добавлено и 20 удалено
  1. 9 20
      custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml

+ 9 - 20
custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml

@@ -36,18 +36,7 @@ entities:
         name: switch
       - id: 21
         type: string
-        name: App Mode
-        mapping:
-          - dps_val: "dynamic_mod"
-            value: "Mode - Dynamic"
-          - dps_val: "color"
-            value: "Dimmer"
-          - dps_val: "scene_mod"
-            value: "Mode - Scene"
-          - dps_val: "music"
-            value: "Music"
-          - dps_val: "white"
-            value: "White"
+        name: app_mode
       - id: 24
         name: rgbhsv
         type: hex
@@ -68,20 +57,20 @@ entities:
               min: 0
               max: 1000
       - id: 103
-        type: integer
-        name: RGB Order
+        type: string
+        name: rgb_order
         mapping:
-          - dps_val: 1
+          - dps_val: "1"
             value: "RGB"
-          - dps_val: 2
+          - dps_val: "2"
             value: "RBG"
-          - dps_val: 3
+          - dps_val: "3"
             value: "GRB"
-          - dps_val: 4
+          - dps_val: "4"
             value: "GBR"
-          - dps_val: 5
+          - dps_val: "5"
             value: "BRG"
-          - dps_val: 6
+          - dps_val: "6"
             value: "BGR"
   - entity: select
     name: Music