Răsfoiți Sursa

Add Rhino King smart AC controller (#5784)

Adds device configuration for the Rhino King smart AC controller
(product ID `y6lcryonnh5klkmo`).

The configuration is in use on the contributor’s Home Assistant
instance. Upstream device-config parsing and untranslated-entity checks
pass locally.

AI assistance was used to align the submitted YAML with the current
schema and run the project tests; the device mapping itself was supplied
and tested by the contributor.

---------

Co-authored-by: Jason Rumney <make-all@users.noreply.github.com>
zhuguoqing123 9 ore în urmă
părinte
comite
fe151abbff

+ 82 - 0
custom_components/tuya_local/devices/rhinoking_ac_thermostat.yaml

@@ -0,0 +1,82 @@
+name: AC controller
+products:
+  - id: y6lcryonnh5klkmo
+    manufacturer: Rhino King
+    model: Smart Thermostat
+entities:
+  - entity: climate
+    dps:
+      - id: 1
+        type: boolean
+        name: hvac_mode
+        mapping:
+          - dps_val: false
+            value: "off"
+          - dps_val: true
+            constraint: mode
+            conditions:
+              - dps_val: cold
+                value: cool
+              - dps_val: hot
+                value: heat
+              - dps_val: wind
+                value: fan_only
+              - dps_val: floor_heat
+                value: heat
+              - dps_val: heat_floorheat
+                value: heat
+              - dps_val: cold_floorcold
+                value: cool
+      - id: 2
+        type: string
+        name: mode
+        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
+          - dps_val: heat_floorheat
+            value: Heating + floor heating
+          - dps_val: cold_floorcold
+            value: Cooling + floor cooling
+      - 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: Turbo
+          - dps_val: "1"
+            value: AI dehumidification
+          - dps_val: "2"
+            value: Very low
+          - dps_val: "3"
+            value: Low
+          - dps_val: "4"
+            value: Standard
+          - dps_val: "5"
+            value: High
+      - id: 34
+        type: integer
+        name: current_humidity