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

feat(milano_ceiling_fan): extend presets, timer, speed

From original PR #4788, the first commit has Sleep mode as mentioned in #5530,
but case was wrong, so it was probably removed due to that.

Device info and submissions on #5530 have a continuous speed range from 1-100%,
not discrete steps from 16-96%. The original config on #4788 went to 100,
I am not sure why the final one only went to 96%.

According to #5530, the timer goes to 12 hours, even though the docs say 9.
Jason Rumney 3 дней назад
Родитель
Сommit
9bf67a11a4
1 измененных файлов с 11 добавлено и 13 удалено
  1. 11 13
      custom_components/tuya_local/devices/milano_ceiling_fan.yaml

+ 11 - 13
custom_components/tuya_local/devices/milano_ceiling_fan.yaml

@@ -20,24 +20,16 @@ entities:
             value: nature
           - dps_val: Normal
             value: normal
+          - dps_val: Sleep
+            value: sleep
 
       - id: 3
         name: speed
         type: integer
         optional: true
-        mapping:
-          - dps_val: 16
-            value: 16
-          - dps_val: 32
-            value: 32
-          - dps_val: 48
-            value: 48
-          - dps_val: 64
-            value: 64
-          - dps_val: 80
-            value: 80
-          - dps_val: 96
-            value: 96
+        range:
+          min: 1
+          max: 100
 
       - id: 8
         name: direction
@@ -100,6 +92,12 @@ entities:
             value: "8h"
           - dps_val: "9h"
             value: "9h"
+          - dps_val: "10h"
+            value: "10h"
+          - dps_val: "11h"
+            value: "11h"
+          - dps_val: "12h"
+            value: "12h"
 
   - entity: sensor
     name: timer_remaining