Просмотр исходного кода

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 4 дней назад
Родитель
Сommit
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
           max: 480
         unit: min
-        mapping:
-          - scale: 1
-          - dps_val: null
         optional: true
   - entity: number
-    name: Standby bright
+    name: Standby brightness
     category: config
     dps:
       - id: 59
         name: value
         type: integer
+        unit: "%"
+        optional: true
         range:
           min: 0
           max: 1000
-        unit: min
         mapping:
-          - scale: 1
-          - dps_val: null
-        optional: true
+          - scale: 10
   - entity: select
     name: Ambient light sensor
     category: config