Explorar el Código

Greenmigo: add docs, naming changes, use fan entity for fan.

- use fan entity to replace the fan speed select and swing switch.
- minor naming changes to match other device naming and HA conventions

PR #1207
Jason Rumney hace 2 años
padre
commit
e3b149c33e

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -392,3 +392,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [wrmacj](https://github.com/wrmacj) for assisting with support for Kennedy electric fireplaces.
 - [wrmacj](https://github.com/wrmacj) for assisting with support for Kennedy electric fireplaces.
 - [KTibow](https://github.com/KTibow) for assisting with support for RGBW lights using the modern standard dps layout.
 - [KTibow](https://github.com/KTibow) for assisting with support for RGBW lights using the modern standard dps layout.
 - [jacobpennington821](https://github.com/jacobpennington821) for contributing support for Ecostrad iQ heating elements.
 - [jacobpennington821](https://github.com/jacobpennington821) for contributing support for Ecostrad iQ heating elements.
+- [Privatecoder](https://github.com/Privatecoder) for contributing support for Greenmigo Alpha Q25 dehumidifiers.

+ 1 - 0
DEVICES.md

@@ -203,6 +203,7 @@
 - Eeese Otto dehumidifier
 - Eeese Otto dehumidifier
 - Goldair GPDH340 dehumidifier
 - Goldair GPDH340 dehumidifier
 - Goldair GPDH420 dehumidifier
 - Goldair GPDH420 dehumidifier
+- Greenmigo Alpha Q25 dehumidifier
 - Honeywell TP(30/50/70) dehumidifiers
 - Honeywell TP(30/50/70) dehumidifiers
 - Hyundai Sahara dehumidifier
 - Hyundai Sahara dehumidifier
 - Inventor Atmosphere XL dehumidifier
 - Inventor Atmosphere XL dehumidifier

+ 25 - 20
custom_components/tuya_local/devices/greenmigo_alpha_q25_pro_wifi.yaml

@@ -1,7 +1,7 @@
 name: Dehumidifier
 name: Dehumidifier
 products:
 products:
   - id: b9oyi2yofflroq1g
   - id: b9oyi2yofflroq1g
-    name: Alpha Q25 Pro WiFi Dehumidifier
+    name: Alpha Q25 Pro dehumidifier
 primary_entity:
 primary_entity:
   entity: humidifier
   entity: humidifier
   class: dehumidifier
   class: dehumidifier
@@ -73,7 +73,7 @@ secondary_entities:
         name: sensor
         name: sensor
         mapping:
         mapping:
           - dps_val: 0
           - dps_val: 0
-            value: Ok
+            value: Normal
             icon: "mdi:check-circle-outline"
             icon: "mdi:check-circle-outline"
             icon_priority: 2
             icon_priority: 2
           - dps_val: 1
           - dps_val: 1
@@ -89,17 +89,9 @@ secondary_entities:
             icon: "mdi:cup-water"
             icon: "mdi:cup-water"
             icon_priority: 2
             icon_priority: 2
           - dps_val: 8
           - dps_val: 8
-            value: Defrost
+            value: Defrosting
             icon: "mdi:snowflake-melt"
             icon: "mdi:snowflake-melt"
             icon_priority: 2
             icon_priority: 2
-  - entity: switch
-    name: Swing
-    icon: "mdi:cached"
-    category: config
-    dps:
-      - id: 8
-        type: boolean
-        name: switch
   - entity: switch
   - entity: switch
     name: Ionizer
     name: Ionizer
     icon: "mdi:atom-variant"
     icon: "mdi:atom-variant"
@@ -108,21 +100,34 @@ secondary_entities:
       - id: 10
       - id: 10
         type: boolean
         type: boolean
         name: switch
         name: switch
-  - entity: select
-    name: Fan (Purify / Manual only)
-    icon: "mdi:fan"
-    category: config
+  - entity: fan
     dps:
     dps:
+      - id: 1
+        name: switch
+        type: boolean
+        mapping:
+          - constraint: dehumidifier_mode
+            conditions:
+              - dps_val: Manual
+              - dps_val: Purifier
+              - invalid: true
       - id: 4
       - id: 4
+        name: speed
         type: string
         type: string
-        name: option
         mapping:
         mapping:
-          - dps_val: high
-            value: High
           - dps_val: low
           - dps_val: low
-            value: Low
+            value: 50
+          - dps_val: high
+            value: 100
+      - id: 8
+        type: boolean
+        name: oscillate
+      - id: 5
+        name: dehumidifier_mode
+        type: string
+        hidden: true
   - entity: switch
   - entity: switch
-    name: UV
+    name: UV sterilization
     icon: "mdi:lightbulb-fluorescent-tube"
     icon: "mdi:lightbulb-fluorescent-tube"
     category: config
     category: config
     dps:
     dps: