Quellcode durchsuchen

Add Rhino King three-speed AC controller (#5786)

Adds a device configuration for the Rhino King XNW-AC three-speed
controller.

The two listed identifiers (`p4ykyk6ljdcoktyq` and `z7acaw0j7l7xg4to`)
represent the same controller model through its available Tuya product
identifiers. The separate Rhino King smart controller uses a different
product ID and is submitted in #5784.

Upstream device-config parsing and untranslated-entity checks pass
locally.

AI assistance was used to separate the supplied variant from the
smart-controller config, align it with the current schema, and run
project tests; the device mapping was supplied by the contributor.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
zhuguoqing123 vor 6 Stunden
Ursprung
Commit
7bf300df1f

+ 74 - 0
custom_components/tuya_local/devices/rhinoking_3speed_airconditioner.yaml

@@ -0,0 +1,74 @@
+name: Three-speed AC controller
+products:
+  - id: p4ykyk6ljdcoktyq
+    manufacturer: Rhino King
+    model: XNW-AC
+  - id: z7acaw0j7l7xg4to
+    manufacturer: Rhino King
+    model: XNW-AC
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: preset_mode
+            conditions:
+              - dps_val: cold
+                value: cool
+              - dps_val: hot
+                value: heat
+              - dps_val: wind
+                value: fan_only
+              - dps_val: floor_heat
+                value: heat
+                hidden: true
+      - id: 2
+        type: string
+        name: preset_mode
+        mapping:
+          - dps_val: wind
+            value: Fan only
+          - dps_val: cold
+            value: Cooling
+          - dps_val: hot
+            value: Heating
+          - dps_val: floor_heat
+            value: Floor heating
+      - id: 16
+        type: integer
+        name: temperature
+        range:
+          min: 150
+          max: 400
+        mapping:
+          - scale: 10
+            step: 5
+      - id: 24
+        type: integer
+        name: current_temperature
+        mapping:
+          - scale: 10
+      - id: 28
+        type: string
+        name: fan_mode
+        mapping:
+          - dps_val: auto
+            value: auto
+          - dps_val: "1"
+            value: low
+          - dps_val: "2"
+            value: medium_low
+          - dps_val: "3"
+            value: medium
+          - dps_val: "4"
+            value: medium_high
+          - dps_val: "5"
+            value: high
+      - id: 34
+        type: integer
+        name: current_humidity