Преглед изворни кода

fix(pir_spotlight): "Standby bright" is a brightness, not timer

Was implemented as a 1000 minute timer by the original submitter, also had a scale: 1
which was probably copied literally from the Tuya info and should be scale: 10 to make
it a percentage.

Issue #5602
Jason Rumney пре 6 дана
родитељ
комит
d8ae2a8360
1 измењених фајлова са 4 додато и 8 уклоњено
  1. 4 8
      custom_components/tuya_local/devices/pir_spotlight.yaml

+ 4 - 8
custom_components/tuya_local/devices/pir_spotlight.yaml

@@ -117,25 +117,21 @@ entities:
           min: 1
           min: 1
           max: 480
           max: 480
         unit: min
         unit: min
-        mapping:
-          - scale: 1
-          - dps_val: null
         optional: true
         optional: true
   - entity: number
   - entity: number
-    name: Standby bright
+    name: Standby brightness
     category: config
     category: config
     dps:
     dps:
       - id: 59
       - id: 59
         name: value
         name: value
         type: integer
         type: integer
+        unit: "%"
+        optional: true
         range:
         range:
           min: 0
           min: 0
           max: 1000
           max: 1000
-        unit: min
         mapping:
         mapping:
-          - scale: 1
-          - dps_val: null
-        optional: true
+          - scale: 10
   - entity: select
   - entity: select
     name: Ambient light sensor
     name: Ambient light sensor
     category: config
     category: config