Browse Source

Ledvance Planon: fix missing bytes and double mapping

Jason Rumney 1 year ago
parent
commit
70240f0ea6

+ 4 - 4
custom_components/tuya_local/devices/ledvance_smart_plabl100x25b.yaml

@@ -64,13 +64,12 @@ entities:
         mapping:
           - dps_val: null
             value_mirror: standard_brightness
-        range:
-          min: 0
-          max: 1000
-        mapping:
           - target_range:
               min: 2700
               max: 6500
+        range:
+          min: 0
+          max: 1000
   - entity: light
     translation_key: backlight
     dps:
@@ -135,6 +134,7 @@ entities:
           - name: w
             bytes: 2
           - name: c
+            bytes: 2
         mapping:
           - dps_val: null
             value_mirror: std_rgb