소스 검색

Dimming light track: naming and scaling improvements

- add CCT to the name, to differentiate from dimming only bulbs
- remove scale from brightness, as this is now auto-scaled
- use a single default mapping for color_temp
- follow convention of lower case only for attribute names, and avoid "id" as it may clash with standard attributes in future.
Jason Rumney 2 년 전
부모
커밋
df7a285776
1개의 변경된 파일3개의 추가작업 그리고 5개의 파일을 삭제
  1. 3 5
      custom_components/tuya_local/devices/dimming_light_track.yaml

+ 3 - 5
custom_components/tuya_local/devices/dimming_light_track.yaml

@@ -1,4 +1,4 @@
-name: Dimming light
+name: Dimming CCT light
 products:
 products:
   - id: fkxcslivaluonzdp
   - id: fkxcslivaluonzdp
     name: LightStar track light
     name: LightStar track light
@@ -14,8 +14,6 @@ primary_entity:
       range:
       range:
         min: 5
         min: 5
         max: 1000
         max: 1000
-      mapping:
-        - scale: 3.92
     - id: 23
     - id: 23
       name: color_temp
       name: color_temp
       type: integer
       type: integer
@@ -24,9 +22,9 @@ primary_entity:
         max: 1000
         max: 1000
       mapping:
       mapping:
         - invert: true
         - invert: true
-        - target_range:
+          target_range:
             min: 2700
             min: 2700
             max: 6500
             max: 6500
     - id: 106
     - id: 106
-      name: ID
+      name: identity
       type: string
       type: string