Просмотр исходного кода

Fairland X20: use feature flags, and pool_heatpump presets

- pool_heatpump has presets that more closely match the original (breaking change)
- filter out boost and cool if they are flagged by the device as unsupported

Issue #2337
Jason Rumney 1 год назад
Родитель
Сommit
d8b1b3b5dd

+ 6 - 3
custom_components/tuya_local/devices/fairland_x20_poolheatpump.yaml

@@ -6,6 +6,7 @@ products:
     name: Fairland X20 series
 primary_entity:
   entity: climate
+  translation_only_key: pool_heatpump
   dps:
     - id: 101
       type: boolean
@@ -22,6 +23,7 @@ primary_entity:
               value: auto
             - dps_val: cool
               value: cool
+              available: cool_available
             - dps_val: warm
               value: heat
     - id: 102
@@ -29,11 +31,12 @@ primary_entity:
       type: string
       mapping:
         - dps_val: "silence"
-          value: sleep
+          value: quiet
         - dps_val: "smart"
-          value: comfort
+          value: smart
         - dps_val: "booster"
-          value: boost
+          value: quick
+          available: boost_available
     - id: 103
       name: current_temperature
       type: integer