Explorar el Código

feat (devices): add Jafanda JF260S air purifier

Issue #4052
Jason Rumney hace 2 meses
padre
commit
4f4919e18a

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -1141,3 +1141,4 @@ Further device support has been made with the assistance of users. Please consid
 - [politician](https://github.com/politician) for assisting with support for Kerui 120dB siren alarm.
 - [gooner1990](https://github.com/gooner1990) for assisting with support for Rinnai Enviroflo heat pump water heater.
 - [grantland](https://github.com/grantland) for contributing support for Dreamegg Nite 1 baby sound machine.
+- [aniemoeller](https://github.com/aniemoeller) for assisting with support for Jafanda JF260S air purifier.

+ 1 - 0
DEVICES.md

@@ -376,6 +376,7 @@
 - Honeywell Air Touch P2 Air Purifier
 - Hosome air purifier
 - iHunt 400m³/h and 50m³/h air purifiers
+- Jafanda JF260S air purifier
 - Kilo Plus air purifier
 - Klarta Stor 2 and Forste 4 air purifiers
 - Kogan 2S and 5 pro air purifiers

+ 114 - 0
custom_components/tuya_local/devices/jafanda_jf260s_airpurifier.yaml

@@ -0,0 +1,114 @@
+name: Air purifier
+products:
+  - id: vpb3fd5rhtgd7b4t
+    manufacturer: Jafanda
+    model: JF260S
+entities:
+  - entity: fan
+    translation_key: fan_with_presets
+    name: Purifier
+    dps:
+      - id: 1
+        type: boolean
+        name: switch
+      - id: 3
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: manual
+            value: manual
+          - dps_val: auto
+            value: auto
+          - dps_val: sleep
+            value: sleep
+      - id: 102
+        type: integer
+        name: speed
+        range:
+          min: 1
+          max: 5
+  - entity: sensor
+    class: pm25
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: sensor
+    name: Filter life
+    category: diagnostic
+    dps:
+      - id: 5
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: lock
+    translation_key: child_lock
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: light
+    translation_key: display
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: switch
+  - entity: button
+    translation_key: filter_reset
+    category: config
+    dps:
+      - id: 11
+        type: boolean
+        optional: true
+        name: button
+  - entity: sensor
+    translation_key: air_quality
+    class: enum
+    dps:
+      - id: 21
+        type: string
+        name: sensor
+        mapping:
+          - dps_val: great
+            value: excellent
+          - dps_val: good
+            value: good
+          - dps_val: mild
+            value: moderate
+          - dps_val: medium
+            value: poor
+          - dps_val: severe
+            value: severe
+  - entity: light
+    name: Atmosphere lamp
+    category: config
+    dps:
+      - id: 101
+        name: brightness
+        type: string
+        mapping:
+          - dps_val: "0"
+            value: 0
+          - dps_val: "1"
+            value: 85
+          - dps_val: "2"
+            value: 170
+          - dps_val: "3"
+            value: 255
+  - entity: number
+    translation_key: timer
+    class: duration
+    category: config
+    dps:
+      - id: 103
+        type: integer
+        name: value
+        unit: h
+        range:
+          min: 0
+          max: 12