Răsfoiți Sursa

Add files via upload

Garthcz 9 luni în urmă
părinte
comite
8f74693138

+ 20 - 20
custom_components/tuya_local/devices/truelife_air_purrifier_p3.yaml

@@ -8,19 +8,19 @@ entities:
     icon: "mdi:air-purifier"
     translation_only_key: fan_with_presets
     dps:
-    - id: 1
-      type: boolean
-      name: switch
-    - id: 3
-      name: preset_mode
-      type: string
-      mapping:
-        - dps_val: AUTO
-          value: smart
-        - dps_val: SLEEP
-          value: sleep
-        - dps_val: MANUAL
-          value: manual
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: AUTO
+            value: smart
+          - dps_val: SLEEP
+            value: sleep
+          - dps_val: MANUAL
+            value: manual
   - entity: select
     name: Fan Speed
     icon: "mdi:fan"
@@ -30,12 +30,12 @@ entities:
         type: string
         name: option
         mapping:
-        - dps_val: LOW
-          value: low
-        - dps_val: MID
-          value: medium
-        - dps_val: HI
-          value: high
+          - dps_val: LOW
+            value: low
+          - dps_val: MID
+            value: medium
+          - dps_val: HI
+            value: high
   - entity: sensor
     class: pm25
     category: diagnostic
@@ -115,4 +115,4 @@ entities:
       - id: 20
         type: integer
         name: sensor
-        unit: min
+        unit: min

+ 20 - 20
custom_components/tuya_local/devices/truelife_air_purrifier_p7.yaml

@@ -8,19 +8,19 @@ entities:
     icon: "mdi:air-purifier"
     translation_only_key: fan_with_presets
     dps:
-    - id: 1
-      type: boolean
-      name: switch
-    - id: 3
-      name: preset_mode
-      type: string
-      mapping:
-        - dps_val: AUTO
-          value: smart
-        - dps_val: SLEEP
-          value: sleep
-        - dps_val: MANUAL
-          value: manual
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        name: preset_mode
+        type: string
+        mapping:
+          - dps_val: AUTO
+            value: smart
+          - dps_val: SLEEP
+            value: sleep
+          - dps_val: MANUAL
+            value: manual
   - entity: select
     name: Fan Speed
     icon: "mdi:fan"
@@ -30,12 +30,12 @@ entities:
         type: string
         name: option
         mapping:
-        - dps_val: LOW
-          value: low
-        - dps_val: MID
-          value: medium
-        - dps_val: HI
-          value: high
+          - dps_val: LOW
+            value: low
+          - dps_val: MID
+            value: medium
+          - dps_val: HI
+            value: high
   - entity: sensor
     class: pm25
     category: diagnostic
@@ -115,4 +115,4 @@ entities:
       - id: 19
         type: integer
         name: sensor
-        unit: min
+        unit: min