Ver código fonte

Add support for Tesla Smart dehumidifier

Issue #1210
Jason Rumney 2 anos atrás
pai
commit
6ba286f3ae

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -414,3 +414,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [patoh](https://github.com/patoh) for contributing support for Breville Smart Dry Connect dehumidifiers.
 - [Cadish](https://github.com/Cadish) for assisting with support for Qlima D820A dehumidifiers.
 - [mellow8](https://github.com/mellow8) for assisting with support for ZM-Wi-Fi smart meters.
+- [KodzghlyCZ](https://github.com/KodzghlyCZ) for assisting with support for Tesla Smart humidifiers.

+ 1 - 0
DEVICES.md

@@ -238,6 +238,7 @@
 - Kyvol EA200 humidifier
 - Stadler Eva humidifier
 - Stadler Form Karl/Karl Big humidifier
+- Tesla Smart humidifier
 - Wetair WAW-H1210LW humidifier
 - Wilfa Haze HU400BC humidifier
 

+ 65 - 0
custom_components/tuya_local/devices/tesla_humidifier.yaml

@@ -0,0 +1,65 @@
+name: Humidifier
+products:
+  - id: noj5c7qq3znq8j6e
+    name: Tesla Smart humidifier
+primary_entity:
+  entity: fan
+  name: Humidifier
+  icon: "mdi:sprinkler-variant"
+  dps:
+    - id: 1
+      type: boolean
+      name: switch
+    - id: 23
+      type: string
+      name: speed
+      mapping:
+        - dps_val: L
+          value: 33
+        - dps_val: M
+          value: 67
+        - dps_val: H
+          value: 100
+secondary_entities:
+  - entity: light
+    dps:
+      - id: 5
+        type: boolean
+        name: switch
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: "1h"
+            value: "1 hour"
+          - dps_val: "4h"
+            value: "4 hours"
+  - entity: sensor
+    name: Time remaining
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 20
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+  - entity: binary_sensor
+    name: Fault
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 22
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true