فهرست منبع

feat(qlima_sc7035s_air_conditioner): support Singer SNT26-09IV models

We already have 4 configs for this product ID:
- brokton_brst12_airconditioner - full feature does not mark many dps as optional
- morris_wfin35168_airconditioner - similar status as brokton
- kaisai_proheat_airconditioner - simpler with some optional dps and some of the Singer ones missing
- qlima_sc7035s_air_conditioner - simplest with least differences from submitted config
   - 3 dps need marking as optional, with fallback for fan_mode when null
   - 2 additional dps from brokton/morris/singer implemented as hidden when unavailable

PR #6311
Jason Rumney 8 ساعت پیش
والد
کامیت
0ad41d61eb
1فایلهای تغییر یافته به همراه67 افزوده شده و 0 حذف شده
  1. 67 0
      custom_components/tuya_local/devices/qlima_sc7035s_air_conditioner.yaml

+ 67 - 0
custom_components/tuya_local/devices/qlima_sc7035s_air_conditioner.yaml

@@ -50,8 +50,27 @@ entities:
         type: string
         type: string
         name: manual_fan_mode
         name: manual_fan_mode
         hidden: true
         hidden: true
+        mapping:
+          - dps_val: "0"
+            value: auto
+            hidden: true
+          - dps_val: "1"
+            value: quiet
+          - dps_val: "2"
+            value: low
+          - dps_val: "3"
+            value: medlow
+          - dps_val: "4"
+            value: medium
+          - dps_val: "5"
+            value: medhigh
+          - dps_val: "6"
+            value: high
+          - dps_val: "7"
+            value: strong
       - id: 7
       - id: 7
         name: fan_mode
         name: fan_mode
+        optional: true
         type: boolean
         type: boolean
         mapping:
         mapping:
           - dps_val: true
           - dps_val: true
@@ -76,9 +95,12 @@ entities:
                 value: high
                 value: high
               - dps_val: "7"
               - dps_val: "7"
                 value: strong
                 value: strong
+          - dps_val: null
+            value_redirect: manual_fan_mode
       - id: 31
       - id: 31
         name: swing_mode
         name: swing_mode
         type: string
         type: string
+        optional: true
         mapping:
         mapping:
           - dps_val: "8"
           - dps_val: "8"
             value: "off"
             value: "off"
@@ -103,6 +125,7 @@ entities:
       - id: 34
       - id: 34
         name: swing_horizontal_mode
         name: swing_horizontal_mode
         type: string
         type: string
+        optional: true
         mapping:
         mapping:
           - dps_val: "8"
           - dps_val: "8"
             value: "off"
             value: "off"
@@ -299,3 +322,47 @@ entities:
             value: "elderly"
             value: "elderly"
           - dps_val: "3"
           - dps_val: "3"
             value: "child"
             value: "child"
+  - entity: switch
+    name: Anti mould
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 9
+        type: boolean
+        optional: true
+        name: switch
+      - id: 9
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
+  - entity: select
+    name: Generator mode
+    icon: "mdi:generator-portable"
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 132
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: "0"
+            value: disabled
+          - dps_val: "1"
+            value: level_1
+          - dps_val: "2"
+            value: level_2
+          - dps_val: "3"
+            value: level_3
+      - id: 132
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true