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

add NAC AP470 Air Purifier - comments

mariusz.witek пре 2 година
родитељ
комит
97cae868f7
1 измењених фајлова са 3 додато и 14 уклоњено
  1. 3 14
      custom_components/tuya_local/devices/nac_ap470_purifier.yaml

+ 3 - 14
custom_components/tuya_local/devices/nac_ap470_purifier.yaml

@@ -4,7 +4,6 @@ products:
     name: "NAC AP470 Air Purifier"
     name: "NAC AP470 Air Purifier"
 primary_entity:
 primary_entity:
   entity: fan
   entity: fan
-  translation_key: fan_with_presets
   icon: "mdi:air-purifier"
   icon: "mdi:air-purifier"
   dps:
   dps:
     - id: 1
     - id: 1
@@ -42,6 +41,7 @@ secondary_entities:
     name: Filter left days
     name: Filter left days
     icon: "mdi:air-filter"
     icon: "mdi:air-filter"
     category: diagnostic
     category: diagnostic
+    class: duration
     dps:
     dps:
       - id: 16
       - id: 16
         type: integer
         type: integer
@@ -51,6 +51,7 @@ secondary_entities:
     name: Total time
     name: Total time
     icon: "mdi:air-filter"
     icon: "mdi:air-filter"
     category: diagnostic
     category: diagnostic
+    class: duration
     dps:
     dps:
       - id: 17
       - id: 17
         type: integer
         type: integer
@@ -64,9 +65,6 @@ secondary_entities:
       - id: 6
       - id: 6
         type: boolean
         type: boolean
         name: switch
         name: switch
-        mapping:
-          - dps_val: true
-          - dps_val: false
   - entity: lock
   - entity: lock
     name: Child lock
     name: Child lock
     category: config
     category: config
@@ -83,9 +81,6 @@ secondary_entities:
       - id: 8
       - id: 8
         type: boolean
         type: boolean
         name: switch
         name: switch
-        mapping:
-          - dps_val: true
-          - dps_val: false
   - entity: switch
   - entity: switch
     name: UV lamp
     name: UV lamp
     category: config
     category: config
@@ -94,9 +89,6 @@ secondary_entities:
       - id: 9
       - id: 9
         type: boolean
         type: boolean
         name: switch
         name: switch
-        mapping:
-          - dps_val: true
-          - dps_val: false
   - entity: switch
   - entity: switch
     name: Filter clean
     name: Filter clean
     category: config
     category: config
@@ -105,9 +97,6 @@ secondary_entities:
       - id: 101
       - id: 101
         type: boolean
         type: boolean
         name: switch
         name: switch
-        mapping:
-          - dps_val: true
-          - dps_val: false
   - entity: button
   - entity: button
     name: Filter reset
     name: Filter reset
     class: restart
     class: restart
@@ -143,4 +132,4 @@ secondary_entities:
       - id: 20
       - id: 20
         type: integer
         type: integer
         name: sensor
         name: sensor
-        unit: "m"
+        unit: "min"