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

feat(devices): add Djive ARC Casual purifier fan

Issue #6329
Jason Rumney 6 часов назад
Родитель
Сommit
8c3b8dca71
25 измененных файлов с 146 добавлено и 0 удалено
  1. 1 0
      DEVICES.md
  2. 122 0
      custom_components/tuya_local/devices/djive_arccasual_purifierfan.yaml
  3. 1 0
      custom_components/tuya_local/translations/bg.json
  4. 1 0
      custom_components/tuya_local/translations/ca.json
  5. 1 0
      custom_components/tuya_local/translations/cs.json
  6. 1 0
      custom_components/tuya_local/translations/de.json
  7. 1 0
      custom_components/tuya_local/translations/el.json
  8. 1 0
      custom_components/tuya_local/translations/en.json
  9. 1 0
      custom_components/tuya_local/translations/es.json
  10. 1 0
      custom_components/tuya_local/translations/fr.json
  11. 1 0
      custom_components/tuya_local/translations/hu.json
  12. 1 0
      custom_components/tuya_local/translations/id.json
  13. 1 0
      custom_components/tuya_local/translations/it.json
  14. 1 0
      custom_components/tuya_local/translations/ja.json
  15. 1 0
      custom_components/tuya_local/translations/no-NB.json
  16. 1 0
      custom_components/tuya_local/translations/pl.json
  17. 1 0
      custom_components/tuya_local/translations/pt-BR.json
  18. 1 0
      custom_components/tuya_local/translations/pt-PT.json
  19. 1 0
      custom_components/tuya_local/translations/ro.json
  20. 1 0
      custom_components/tuya_local/translations/ru.json
  21. 1 0
      custom_components/tuya_local/translations/sv.json
  22. 1 0
      custom_components/tuya_local/translations/uk.json
  23. 1 0
      custom_components/tuya_local/translations/ur.json
  24. 1 0
      custom_components/tuya_local/translations/zh-Hans.json
  25. 1 0
      custom_components/tuya_local/translations/zh-Hant.json

+ 1 - 0
DEVICES.md

@@ -516,6 +516,7 @@
 - Cleverio AP100 air purifier
 - ComfortZone AP100 air purifier
 - Dayette AP409 air purifier
+- Djive Flowmate ARC Casual purifiying fan
 - Duux Bright air purifier
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers

+ 122 - 0
custom_components/tuya_local/devices/djive_arccasual_purifierfan.yaml

@@ -0,0 +1,122 @@
+name: Purifier fan
+products:
+  - id: 0aygnuspbczsvszw
+    manufacturer: Djive
+    model: Flowmate ARC Casual
+entities:
+  - entity: fan
+    translation_key: air_purifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 2
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: sleep
+            value: sleep
+          - dps_val: fresh
+            value: fresh
+          - dps_val: strong
+            value: strong
+          - dps_val: auto
+            value: auto
+          - dps_val: close
+            value: "off"
+            hidden: true  # not mentioned in manual
+      - id: 3
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 9
+      - id: 5
+        type: boolean
+        name: oscillate
+  - entity: switch
+    translation_key: sound
+    dps:
+      - id: 13
+        type: boolean
+        name: switch
+  - entity: select
+    translation_key: timer
+    category: config
+    dps:
+      - id: 22
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: cancel
+          - dps_val: "1h"
+            value: "1h"
+          - dps_val: "2h"
+            value: "2h"
+          - dps_val: "3h"
+            value: "3h"
+          - dps_val: "4h"
+            value: "4h"
+          - dps_val: "5h"
+            value: "5h"
+          - dps_val: "6h"
+            value: "6h"
+          - dps_val: "7h"
+            value: "7h"
+          - dps_val: "8h"
+            value: "8h"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 23
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 24
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 24
+        type: bitfield
+        name: fault_code
+  - entity: sensor
+    class: pm25
+    dps:
+      - id: 101
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: switch
+    translation_key: uv_sterilization
+    category: config
+    dps:
+      - id: 102
+        type: boolean
+        name: switch
+  - entity: sensor
+    translation_key: filter_life
+    category: diagnostic
+    dps:
+      - id: 103
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: button
+    translation_key: filter_reset
+    category: config
+    dps:
+      - id: 104
+        type: boolean
+        optional: true
+        name: button

+ 1 - 0
custom_components/tuya_local/translations/bg.json

@@ -454,6 +454,7 @@
                             "medium": "Средно",
                             "high": "Високо",
                             "strong": "Силен",
+                            "fresh": "Свежо",
                             "displayoff": "Дисплеят е изключен"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/ca.json

@@ -492,6 +492,7 @@
                             "medium": "Medio",
                             "high": "Alto",
                             "strong": "Fuerte",
+                            "fresh": "Fresco",
                             "displayoff": "Pantalla apagada"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/cs.json

@@ -454,6 +454,7 @@
                             "medium": "Střední",
                             "high": "Vysoký",
                             "strong": "Silný",
+                            "fresh": "Svěží",
                             "displayoff": "Vypněte displej"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/de.json

@@ -454,6 +454,7 @@
                             "medium": "Mittel",
                             "high": "Hoch",
                             "strong": "Stark",
+                            "fresh": "Frisch",
                             "displayoff": "Anzeige aus"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/el.json

@@ -454,6 +454,7 @@
                             "medium": "Μεσαία",
                             "high": "Υψηλή",
                             "strong": "Δυνατή",
+                            "fresh": "Φρέσκια",
                             "displayoff": "Σβήσιμο οθόνης"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/en.json

@@ -454,6 +454,7 @@
                             "medium": "Medium",
                             "high": "High",
                             "strong": "Strong",
+                            "fresh": "Fresh",
                             "displayoff": "Display off"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/es.json

@@ -454,6 +454,7 @@
                             "medium": "Medio",
                             "high": "Alto",
                             "strong": "Fuerte",
+                            "fresh": "Fresco",
                             "displayoff": "Pantalla apagada"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/fr.json

@@ -454,6 +454,7 @@
                             "medium": "Moyen",
                             "high": "Haut",
                             "strong": "Fort",
+                            "fresh": "Frais",
                             "displayoff": "Affichage désactivé"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/hu.json

@@ -454,6 +454,7 @@
                             "medium": "Közepes",
                             "high": "Magas",
                             "strong": "Erős",
+                            "fresh": "Friss",
                             "displayoff": "Kijelző kikapcsolva"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/id.json

@@ -454,6 +454,7 @@
                             "medium": "Sedang",
                             "high": "Tinggi",
                             "strong": "Kencang",
+                            "fresh": "Segar",
                             "displayoff": "Layar mati"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/it.json

@@ -454,6 +454,7 @@
                             "medium": "Medio",
                             "high": "Alto",
                             "strong": "Forte",
+                            "fresh": "Fresco",
                             "displayoff": "Display spento"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/ja.json

@@ -454,6 +454,7 @@
                             "medium": "中",
                             "high": "高い",
                             "strong": "強い",
+                            "fresh": "新鮮",
                             "displayoff": "ディスプレイオフ"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/no-NB.json

@@ -454,6 +454,7 @@
                             "medium": "Medium",
                             "high": "Høy",
                             "strong": "Sterk",
+                            "fresh": "Fresh",
                             "displayoff": "Skjerm av"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/pl.json

@@ -454,6 +454,7 @@
                             "medium": "Średni",
                             "high": "Wysoki",
                             "strong": "Silny",
+                            "fresh": "Świeży",
                             "displayoff": "Wyłączone podświetlanie"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/pt-BR.json

@@ -454,6 +454,7 @@
                             "medium": "Médio",
                             "high": "Alto",
                             "strong": "Forte",
+                            "fresh": "Fresco",
                             "displayoff": "Exibição desligada"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/pt-PT.json

@@ -454,6 +454,7 @@
                             "medium": "Médio",
                             "high": "Alto",
                             "strong": "Forte",
+                            "fresh": "Fresco",
                             "displayoff": "Exibição desligada"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/ro.json

@@ -454,6 +454,7 @@
                             "medium": "Mediu",
                             "high": "Ridicat",
                             "strong": "Puternic",
+                            "fresh": "Proaspăt",
                             "displayoff": "Afișaj oprit"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/ru.json

@@ -454,6 +454,7 @@
                             "medium": "Средний",
                             "high": "Высокий",
                             "strong": "Сильный",
+                            "fresh": "Свежий",
                             "displayoff": "Дисплей выкл"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/sv.json

@@ -454,6 +454,7 @@
                             "medium": "Medel",
                             "high": "Hög",
                             "strong": "Stark",
+                            "fresh": "Fräsch",
                             "displayoff": "Display av"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/uk.json

@@ -454,6 +454,7 @@
                             "medium": "Средний",
                             "high": "Высокий",
                             "strong": "Сильный",
+                            "fresh": "Свежий",
                             "displayoff": "Дисплей выкл"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/ur.json

@@ -454,6 +454,7 @@
                             "medium": "درمیانہ",
                             "high": "زیادہ",
                             "strong": "مضبوط",
+                            "fresh": "تازه",
                             "displayoff": "ڈسپلے آف"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/zh-Hans.json

@@ -454,6 +454,7 @@
                             "medium": "中",
                             "high": "高",
                             "strong": "强劲",
+                            "fresh": "清新",
                             "displayoff": "关闭显示"
                         }
                     }

+ 1 - 0
custom_components/tuya_local/translations/zh-Hant.json

@@ -454,6 +454,7 @@
                             "medium": "中",
                             "high": "高",
                             "strong": "強勁",
+                            "fresh": "清新",
                             "displayoff": "關閉顯示"
                         }
                     }