Explorar el Código

Caldo Up T: changes from review

- Move preset mode into climate entity
- Follow naming convention.
- allow fan_only to be selected from hvac_mode
Jason Rumney hace 2 años
padre
commit
b48e5fec59
Se han modificado 1 ficheros con 19 adiciones y 18 borrados
  1. 19 18
      custom_components/tuya_local/devices/caldo_up_t_wifi.yaml

+ 19 - 18
custom_components/tuya_local/devices/caldo_up_t_wifi.yaml

@@ -1,6 +1,7 @@
-name: CALDO UP T WIFI
+name: Fan heater
 products:
   - id: dqy0z9997a18rkaw
+    name: Olimpia Splendid Caldo Up T
 primary_entity:
   entity: climate
   dps:
@@ -9,7 +10,13 @@ primary_entity:
       name: hvac_mode
       mapping:
         - dps_val: true
-          value: "heat"
+          constraint: preset_mode
+          conditions:
+            - dps_val: "0"
+              value: fan_only
+            - dps_val: "1"
+              value: heat
+            - value: heat
         - dps_val: false
           value: "off"
     - id: 2
@@ -21,6 +28,16 @@ primary_entity:
     - id: 3
       type: integer
       name: current_temperature
+    - id: 5
+      type: string
+      name: preset_mode
+      mapping:
+        - dps_val: "0"
+          value: none
+        - dps_val: "1"
+          value: comfort
+        - dps_val: "2"
+          value: boost
     - id: 8
       type: boolean
       name: swing_mode
@@ -30,21 +47,6 @@ primary_entity:
         - dps_val: true
           value: "on"
 secondary_entities:
-   - entity: select
-     name: Heating mode
-     icon: "mdi:gauge"
-     category: config
-     dps:
-       - id: 5
-         type: string
-         name: option
-         mapping:
-           - dps_val: 0
-             value: "Fan"
-           - dps_val: 1
-             value: "Low"
-           - dps_val: 2
-             value: "High"
    - entity: switch
      name: Window detection
      icon: "mdi:window-open-variant"
@@ -53,4 +55,3 @@ secondary_entities:
        - id: 101
          type: boolean
          name: switch
-