Quellcode durchsuchen

Update ustellar_ut99911_rgb.yaml

Add descriptive values for DP 103 - it denotes the RGB order for the LED strip on the back.

The value can be changed, so this could be a select entity. However I don't see the point of this as it's configured in the factory for the LED strip on the device so users should never change it from the original setting. It will just mess up the colour representation on the LED strip. But it is useful to know the string value to better understand the spec of the LED strip on one of these light bars.
Neil Martin vor 1 Jahr
Ursprung
Commit
263f68b1ab
1 geänderte Dateien mit 15 neuen und 2 gelöschten Zeilen
  1. 15 2
      custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml

+ 15 - 2
custom_components/tuya_local/devices/ustellar_ut99911_rgb.yaml

@@ -54,8 +54,21 @@ entities:
               min: 0
               max: 1000
       - id: 103
-        name: line_sequence_adjustment
-        type: integer
+        type: string
+        name: RGB Order
+        mapping:
+          - dps_val: 1
+            value: RGB
+          - dps_val: 2
+            value: RBG
+          - dps_val: 3
+            value: GRB
+          - dps_val: 4
+            value: GBR
+          - dps_val: 5
+            value: BRG
+          - dps_val: 5
+            value: BGR
   - entity: select
     name: Music
     icon: "mdi:playlist-music"