소스 검색

Peteme recessed lighting: naming change

Keep branding under products, make top level name generic.

This is a fairly common dps mapping for lights, matching rgbww_lightbulb, but in this case it is using the 0-1000 ranges more common in newer lights that use dps 20 and up for light control. It is likely to match other brands though just because there are so many Tuya lightbulbs on the market.

Also default color_mode when it has not been received.
Jason Rumney 2 년 전
부모
커밋
4ba96bbba9
1개의 변경된 파일4개의 추가작업 그리고 2개의 파일을 삭제
  1. 4 2
      custom_components/tuya_local/devices/peteme_smart_recessed_lighting.yaml

+ 4 - 2
custom_components/tuya_local/devices/peteme_smart_recessed_lighting.yaml

@@ -1,7 +1,7 @@
-name: Peteme Smart Recessed Lighting
+name: RGBCW light
 products:
   - id: sjaun9de
-    name: SIG_DL_RGBCW
+    name: Peteme SIG_DL_RGBCW recessed lighting
 primary_entity:
   entity: light
   dps:
@@ -21,6 +21,8 @@ primary_entity:
           value: Scene
         - dps_val: music
           value: Music
+        - dps_val: null
+          value: color_temp
     - id: 3
       name: brightness
       type: integer