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

Add support for Lifubide X600 air purifier

Issue #558

Missing support for speed, filter life, standby detection due to lack
of info about these dps.
Jason Rumney 2 лет назад
Родитель
Сommit
6a03bc5f7d
3 измененных файлов с 62 добавлено и 0 удалено
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 60 0
      custom_components/tuya_local/devices/lifubide_x600_purifier.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -243,3 +243,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [pnm1977](https://github.com/pnm1977) for assisting with support for Gosund UP111_RTL smartplugs.
 - [pnm1977](https://github.com/pnm1977) for assisting with support for Gosund UP111_RTL smartplugs.
 - [jprasm](https://github.com/jprasm) for assisting with support for Inkbird air quality monitors.
 - [jprasm](https://github.com/jprasm) for assisting with support for Inkbird air quality monitors.
 - [Muelner](https://github.com/Muelner) for assisting with support for WDYK 3-phase energy meter circuit breakers.
 - [Muelner](https://github.com/Muelner) for assisting with support for WDYK 3-phase energy meter circuit breakers.
+- [Cyrelion](https://github.com/Cyrelion) for assisting with support for Lifubide X600 air purifiers.

+ 1 - 0
DEVICES.md

@@ -127,6 +127,7 @@
 - essentials portable air purifier
 - essentials portable air purifier
 - Himox H05 and H06 air purifiers
 - Himox H05 and H06 air purifiers
 - Hosome air purifier
 - Hosome air purifier
+- Lifubide X600 air purifier
 - Poiema One air purifier
 - Poiema One air purifier
 - Renpho RP-AP001S air purifier
 - Renpho RP-AP001S air purifier
 - Stadler Form Roger air purifier
 - Stadler Form Roger air purifier

+ 60 - 0
custom_components/tuya_local/devices/lifubide_x600_purifier.yaml

@@ -0,0 +1,60 @@
+name: Air purifier
+products:
+  - id: t40kx2rdqjzjss4a
+    name: Lifubide X600
+primary_entity:
+  entity: fan
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 3
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: auto
+          value: Auto
+        - dps_val: sleep
+          value: Sleep
+        - dps_val: manual
+          value: Manual
+    - id: 22
+      type: bitfield
+      name: fault_code
+secondary_entities:
+  - entity: sensor
+    name: PM2.5
+    class: pm25
+    dps:
+      - id: 2
+        type: integer
+        name: sensor
+        unit: ugm3
+        class: measurement
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 7
+        type: boolean
+        name: lock
+  - entity: light
+    name: Indicator
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: switch
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true