Kaynağa Gözat

Tesla Smart Air Purifier config files

Tesla Smart Air Purifier config files created
Martin Carbol 4 yıl önce
ebeveyn
işleme
7776419ba0

+ 64 - 0
custom_components/tuya_local/devices/tesla_air_purifier_mini.yaml

@@ -0,0 +1,64 @@
+name: Tesla Smart Air Purifier Mini
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch        
+    - id: 4
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "auto"
+          value: "auto"
+        - dps_val: "sleep"
+          value: "sleep"
+        - dps_val: "mid"
+          value: "mid"
+        - dps_val: "high"
+          value: "high"     
+secondary_entities:
+  - entity: switch
+    name: Light
+    category: config
+    icon: "mdi:lightbulb"
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+  - entity: switch
+    name: Anion
+    category: config
+    icon: "mdi:dots-hexagon"
+    dps:
+      - id: 6
+        name: switch
+        type: boolean        
+  - entity: number
+    name: Filter
+    category: diagnostic
+    icon: "mdi:air-filter"
+    mode: box
+    dps:
+      - id: 5
+        type: integer
+        name: value
+        unit: "%"
+        readonly: true
+  - entity: select
+    name: Countdown
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 18
+        type: string
+        name: option
+        mapping:
+          - dps_val: "cancel"
+            value: "cancel"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "4h"
+            value: "4 hours"                

+ 104 - 0
custom_components/tuya_local/devices/tesla_air_purifier_pro.yaml

@@ -0,0 +1,104 @@
+name: Tesla Smart Air Purifier Pro M/L/XL
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch        
+    - id: 3
+      name: preset_mode
+      type: string
+      mapping:
+        - dps_val: "auto"
+          value: "auto"
+        - dps_val: "sleep"
+          value: "sleep"
+        - dps_val: "manual"
+          value: "manual"
+    - id: 4
+      name: speed
+      type: string
+      mapping:
+        - dps_val: "sleep"
+          value: "sleep"
+        - dps_val: "low"
+          value: "low"
+        - dps_val: "mid"
+          value: "mid"
+        - dps_val: "high"
+          value: "high"     
+secondary_entities:
+  - entity: switch
+    name: Light
+    category: config
+    icon: "mdi:lightbulb"
+    dps:
+      - id: 8
+        name: switch
+        type: boolean
+  - entity: switch
+    name: Anion
+    category: config
+    icon: "mdi:dots-hexagon"
+    dps:
+      - id: 6
+        name: switch
+        type: boolean        
+  - entity: switch
+    name: UV
+    category: config
+    icon: "mdi:sun-wireless"
+    dps:
+      - id: 9
+        name: switch
+        type: boolean
+  - entity: number
+    name: Filter
+    category: diagnostic
+    icon: "mdi:air-filter"
+    mode: box
+    dps:
+      - id: 5
+        type: integer
+        name: value
+        unit: "%"
+        readonly: true
+  - entity: number
+    name: Temp
+    category: diagnostic
+    icon: "mdi:thermometer"
+    mode: box
+    dps:
+      - id: 12
+        type: integer
+        name: value
+        unit: "°C"
+        readonly: true
+  - entity: number
+    name: Humidity
+    category: diagnostic
+    icon: "mdi:water-percent"
+    mode: box
+    dps:
+      - id: 13
+        type: integer
+        name: value
+        unit: "%"
+        readonly: true
+  - entity: select
+    name: Countdown
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 18
+        type: string
+        name: option
+        mapping:
+          - dps_val: "cancel"
+            value: "cancel"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "2h"
+            value: "2 hours"
+          - dps_val: "4h"
+            value: "4 hours"