Przeglądaj źródła

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 1 rok temu
rodzic
commit
df7a285776

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

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