소스 검색

Ledvance LED panel: don't use explicit color_modes.

Lights were defined with single value color_mode dps, but actual dp can
take other values also. This may cause unexpected behaviour and definitely
will cause errors in the log.

Since single function lights color mode can be detected based on which
dps are defined, rename it out of the way and let the auto detection work.

Further changes require more info on the dps, there is some info on
#2683, but so far only enough to enable separate switching of main and
backlight.

PR #2728
Jason Rumney 1 년 전
부모
커밋
9e62806daf
1개의 변경된 파일2개의 추가작업 그리고 8개의 파일을 삭제
  1. 2 8
      custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

+ 2 - 8
custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

@@ -12,10 +12,7 @@ entities:
         name: switch
       - id: 21
         type: string
-        name: color_mode
-        mapping:
-          - dps_val: white
-            value: color_temp
+        name: work_mode
       - id: 22
         name: brightness
         type: integer
@@ -40,10 +37,7 @@ entities:
         name: switch
       - id: 21
         type: string
-        name: color_mode
-        mapping:
-          - dps_val: colour
-            value: hs
+        name: work_mode
       - id: 24
         type: hex
         name: rgbhsv