Browse Source

Cooper and Hunter: rename without ampersands.

- rename Light to Display, 8C Heating to Anti-frost, Deforest to Defrosting
- change Defrost from switch to binary sensor
- move indoor humidity to climate current_humidity
- remove duplicate sensors
- move optional tags from entity to dp level

PR #547
Jason Rumney 2 years ago
parent
commit
0c7ea57e58

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -216,7 +216,7 @@ Further device support has been made with the assistance of users.  Please consi
 - [Kannix2005](https://github.com/Kannix2005) for assisting with support for Etersky aroma diffusers.
 - [Daverover66](https://github.com/Daverover66) for assisting with support for ElectriQ PD45E dehumidifiers.
 - [ettiennegous](https://github.com/ettiennegous) for assisting with support for BrilliantSmart RGB garden lights.
-- [yarosman](https://github.com/yarosman) for contributing Avatto WT81 support, which was merged with the Beok TGR81.
+- [yarosman](https://github.com/yarosman) for contributing Avatto WT81, which was merged with the Beok TGR81, and Cooper and Hunter Nordic Evo NG support.
 - [endrumaj](https://github.com/endrumaj) for assisting with support for Treatlife DS03 ceiling fans with lights.
 - [fjvva](https://github.com/fjvva) for assisting with support for eMylo smart meters.
 - [AdamB2023](https://github.com/AdamB2023) for assisting with support for Klarta Humea humidifiers.

+ 24 - 42
custom_components/tuya_local/devices/cooper_hunter_air_conditioner.yaml

@@ -1,7 +1,7 @@
-name: Cooper&Hunter Air Conditioner
+name: Cooper and Hunter air conditioner
 products:
   - id: a38i3yjbj4b4r9o0
-    name: Cooper&Hunter Nordic Evo Ng
+    name: Cooper and Hunter Nordic Evo NG
 primary_entity:
   entity: climate
   dps:
@@ -100,7 +100,7 @@ primary_entity:
         - dps_val: c
           value: C
     - id: 17
-      name: humidity # current_humidity is absent
+      name: humidity
       type: integer
       optional: true
       unit: "%"
@@ -119,6 +119,13 @@ primary_entity:
               invalid: true
             - dps_val: wind
               invalid: true
+    - id: 152
+      name: current_humidity
+      type: integer
+      unit: "%"
+      class: measurement
+      mapping:
+        - scale: 10
 secondary_entities:
   - entity: switch
     name: Power
@@ -153,7 +160,7 @@ secondary_entities:
           - dps_val: hot
             invalid: true
   - entity: switch
-    name: Humidifier/Anion
+    name: Ioniser
     category: config
     icon: "mdi:sun-wireless"
     dps:
@@ -161,7 +168,7 @@ secondary_entities:
         name: switch
         type: boolean
   - entity: light
-    name: Light
+    name: Display
     category: config
     class: light
     icon: "mdi:television-ambient-light"
@@ -188,21 +195,21 @@ secondary_entities:
   - entity: switch
     name: Sleep
     category: config
-    optional: true
     icon: "mdi:power-sleep"
     dps:
       - id: 25
         name: switch
         type: boolean
+        optional: true
   - entity: switch
     name: Health
     category: config
-    optional: true
-    icon: "mdi:leaf"
+    icon: "mdi:shield-bug"
     dps:
       - id: 26
         name: switch
         type: boolean
+        optional: true
   - entity: switch
     name: Horizontal Swing
     category: config
@@ -216,24 +223,24 @@ secondary_entities:
             value: true
           - dps_val: "off"
             value: false
-  - entity: switch
-    name: Deforest
-    category: config
-    optional: true
-    icon: "mdi:snowflake-off"
+  - entity: binary_sensor
+    name: Defrosting
+    category: diagnostic
+    icon: "mdi:snowflake"
     dps:
       - id: 181
-        name: switch
+        name: sensor
         type: boolean
+        optional: true
   - entity: switch
-    name: 8C Heating
+    name: Anti-frost
     category: config
-    optional: true
-    icon: "mdi:numeric-8-circle-outline"
+    icon: "mdi:snowflake"
     dps:
       - id: 180
         name: switch
         type: boolean
+        optional: true
   - entity: sensor
     name: AC Voltage
     category: diagnostic
@@ -269,28 +276,3 @@ secondary_entities:
         class: measurement
         mapping:
           - scale: 10
-  - entity: sensor
-    name: Indoor Temperature
-    category: diagnostic
-    class: temperature
-    dps:
-      - id: 150
-        name: sensor
-        type: integer
-        unit: "°C"
-        class: measurement
-        mapping:
-          - scale: 10
-  - entity: sensor
-    name: Indoor Humidity
-    category: diagnostic
-    class: humidity
-    optional: true
-    dps:
-      - id: 152
-        name: sensor
-        type: integer
-        unit: "%"
-        class: measurement
-        mapping:
-          - scale: 10