Explorar o código

add fan_level

help better device detection
Vamp %!s(int64=4) %!d(string=hai) anos
pai
achega
b5b65060f8
Modificáronse 1 ficheiros con 15 adicións e 0 borrados
  1. 15 0
      custom_components/tuya_local/devices/tmwf02_fan.yaml

+ 15 - 0
custom_components/tuya_local/devices/tmwf02_fan.yaml

@@ -12,6 +12,21 @@ primary_entity:
       range:
         min: 1
         max: 100
+    - id: 3
+      type: string
+      name: fan_level
+      mapping:
+        - dps_val: level_1
+          value: level_1
+        - dps_val: level_2
+          value: level_2
+        - dps_val: level_3
+          value: level_3
+        - dps_val: level_4
+          value: level_4
+        - dps_val: level_5
+          value: level_5
+      hidden: true
 secondary_entities:
   - entity: number
     category: config