Преглед изворни кода

Add support for Eeese Otto dehumidifier.

Issue #306

- correct spelling of Eeese Adam (except in config filename which will need migration for existing installs using it).
Jason Rumney пре 3 година
родитељ
комит
9067557be3

+ 2 - 1
ACKNOWLEDGEMENTS.md

@@ -96,7 +96,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [x-keita](https://github.com/x-keita) for contributing support for Betterlife BL1500 IR heaters and Nexxt smart switches.
 - [Der-Nax](https:github.com/Der-Nax) for assistance with a second variant of energy monitoring smart switch and for contributing support for PY321-TY power clamps, Compteur smart meters and sensors on a Universal Remote Control.
 - [17hoehbr](https://github.com/17hoehbr) for assistance supporting APOSEN A550
-- [yurgh](https://github.com/yurgh) for assistant supporting Eesee Adam dehumidifier
+- [yurgh](https://github.com/yurgh) for assistance supporting Eeese Adam dehumidifier
 - [KaportsevIA](https://github.com/KaportsevIA) for assistance supporting Hyundai Sahara dehumidifier, Yandax color bulb and ES01 powerstrip.
 - [poolMiniDomo](https://github.com/poolMiniDomo) for assistance supporting Moes Temperature and Humidity switches.
 - [pretoriano80](https://github.com/pretoriano80) for assistance supporting AlecoAir dehumidifiers.
@@ -148,3 +148,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [81k5](https://github.com/81k5) for assistance supporting Aubess smart switches.
 - [SvenMartin81](https://github.com/SvenMartin81) for assistance supporting another variant of common smartplug (via GNCC branded one)
 - [cjones813](https://github.com/cjones813) for assistance supporting HJZ radiators.
+- [cnrd](https://github.com/cnrd) for contributing support for Eeese Otto dehumidifiers.

+ 2 - 1
DEVICES.md

@@ -117,7 +117,8 @@
 - ElectriQ CD20PRO-LE-V2 dehumidifier
 - ElectriQ CD25PRO-LE-V2 dehumidifier
 - ElectriQ DESD9LW dehumidifier
-- Eesee Adam dehumidifier
+- Eeese Adam dehumidifier
+- Eeese Otto dehumidifier
 - Goldair GPDH420 dehumidifier
 - Honeywell TP(30/50/70) dehumidifiers
 - Hyundai Sahara dehumidifier

+ 154 - 0
custom_components/tuya_local/devices/eeese_otto_dehumidifier.yaml

@@ -0,0 +1,154 @@
+name: Eeese Otto dehumidifier
+primary_entity:
+  entity: humidifier
+  class: dehumidifier
+  dps:
+    - id: 1
+      name: switch
+      type: boolean
+      mapping:
+        - dps_val: false
+          icon: "mdi:air-humidifier-off"
+          icon_priority: 2
+        - dps_val: true
+          icon: "mdi:air-humidifier"
+          icon_priority: 4
+    - id: 2
+      name: humidity
+      type: integer
+      range:
+        min: 25
+        max: 80
+      mapping:
+        - step: 5
+    - id: 5
+      name: mode
+      type: string
+      mapping:
+        - dps_val: Manual
+          value: Manual
+        - dps_val: Clothdrying
+          value: Dry Clothes
+          icon: "mdi:t-shirt-crew"
+          icon_priority: 3
+        - dps_val: SLeeping
+          value: Sleep
+          icon: "mdi:sleep"
+          icon_priority: 3
+    - id: 19
+      type: bitfield
+      name: error
+      mapping:
+        - dps_val: 1
+          icon: "mdi:cup-water"
+          icon_priority: 1
+secondary_entities:
+  - entity: sensor
+    name: Current humidity
+    class: humidity
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: binary_sensor
+    name: Tank
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 19
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+  - entity: switch
+    name: Swing
+    icon: "mdi:cached"
+    category: config
+    dps:
+      - id: 8
+        type: boolean
+        name: switch
+        
+
+  - entity: switch
+    name: Ionizer
+    icon: "mdi:atom-variant"
+    category: config
+    dps:
+      - id: 10
+        type: boolean
+        name: switch
+  - entity: lock
+    name: Child lock
+    icon: "mdi:hand-back-right-off"
+    category: config
+    dps:
+      - id: 16
+        type: boolean
+        name: lock
+  - entity: select
+    name: Timer
+    icon: "mdi:timer"
+    category: config
+    dps:
+      - id: 17
+        type: string
+        name: option
+        mapping:
+          - dps_val: cancel
+            value: "Off"
+          - dps_val: 1h
+            value: 1 hour
+          - dps_val: 2h
+            value: 2 hours
+          - dps_val: 3h
+            value: 3 hours
+          - dps_val: 4h
+            value: 4 hours
+          - dps_val: 5h
+            value: 5 hours
+          - dps_val: 6h
+            value: 6 hours
+          - dps_val: 7h
+            value: 7 hours
+          - dps_val: 8h
+            value: 8 hours
+          - dps_val: 9h
+            value: 9 hours
+          - dps_val: 10h
+            value: 10 hours
+          - dps_val: 11h
+            value: 11 hours
+          - dps_val: 12h
+            value: 12 hours
+          - dps_val: 13h
+            value: 13 hours
+          - dps_val: 14h
+            value: 14 hours
+          - dps_val: 15h
+            value: 15 hours
+          - dps_val: 16h
+            value: 16 hours
+          - dps_val: 17h
+            value: 17 hours
+          - dps_val: 18h
+            value: 18 hours
+          - dps_val: 19h
+            value: 19 hours
+          - dps_val: 20h
+            value: 20 hours
+          - dps_val: 21h
+            value: 21 hours
+          - dps_val: 22h
+            value: 22 hours
+          - dps_val: 23h
+            value: 23 hours
+          - dps_val: 24h
+            value: 24 hours
+
+
+

+ 1 - 1
custom_components/tuya_local/devices/eesee_adam_dehumidifier.yaml

@@ -1,4 +1,4 @@
-name: Eesee Adam dehumidifier
+name: Eeese Adam dehumidifier
 primary_entity:
   entity: humidifier
   class: dehumidifier