Explorar el Código

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 hace 1 año
padre
commit
263f68b1ab
Se han modificado 1 ficheros con 15 adiciones y 2 borrados
  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"