Explorar el Código

Sefaul Q9 Dehumidifier

Unfortunately this isn't the most intuitive device - neither via the Smartlife App nor the device's control panel.  The device doesn't have a humidity sensor, so the dehumidifier cant natively be triggered that way, and it has a separate air purifier component that gets automatically turned on, so I couldn't really make it work as a dehumidifier the way HA expects.  Perhaps someone with more experience would have a different approach.  But, this config does work the same way as the device's control panel.  

https://www.amazon.com/dp/B0D7959FJX
peng1can hace 11 meses
padre
commit
aec55d0081
Se han modificado 1 ficheros con 68 adiciones y 0 borrados
  1. 68 0
      custom_components/tuya_local/devices/sefaul_q9_dehumidifier.yaml

+ 68 - 0
custom_components/tuya_local/devices/sefaul_q9_dehumidifier.yaml

@@ -0,0 +1,68 @@
+name: Dehumidifier
+products:
+  - id: e8c9gukirorvyhk8
+    manufacturer: Sefaul
+    model: Q9 Dehumidifier
+
+entities:
+  - entity: light
+    class: light
+    name: Light
+    dps:
+      - id: 11
+        name: switch
+        type: boolean
+  - entity: fan
+    class: fan
+    name: Purifier
+    dps:
+      - id: 1
+        name: switch
+        type: boolean
+      - id: 4
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: "low"
+            value: "Low"
+          - dps_val: "high"
+            value: "High"
+  - entity: switch
+    name: Dehumidifier
+    dps:
+      - id: 101
+        name: switch
+        type: boolean
+  - entity: select
+    name: Timer Set
+    dps:
+      - id: 17
+        name: option
+        type: string
+        mapping:
+          - dps_val: "cancel"
+            value: "Cancel"
+          - dps_val: "2h"
+            value: "2H"
+          - dps_val: "4H"
+            value: "4H"
+          - dps_val: "8H"
+            value: "8H"
+  - entity: sensor
+    translation_key: time_remaining
+    class: duration
+    dps:
+      - id: 18
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+  - entity: binary_sensor
+    class: problem
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 2
+            value: "Tank Full"