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

feat(gardenpac_heatpump): add product details for Garden PAC InverTech

Product details from PR #4982

Also renamed hvac_action to work_mode as in the PR, since this config
is very old (Issue #11) and made based on a simplistic understanding
of the climate entity API. Only "warm" was known as a value, but
expectation based on other climate devices is the device would use
"warm", "heating" and maybe "cooling" if it supports that through some
mechanism not exposed in the config. But that was never more than an
assumption, and the PR's mapping of warm, cool and smart would not
fit with that.
Jason Rumney 2 месяцев назад
Родитель
Сommit
62e0848546
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      custom_components/tuya_local/devices/gardenpac_heatpump.yaml

+ 5 - 5
custom_components/tuya_local/devices/gardenpac_heatpump.yaml

@@ -1,5 +1,8 @@
 name: Pool heat pump
 name: Pool heat pump
-# products: GardenPAC
+products:
+  - id: koAASpds906awojG
+    manufacturer: Garden PAC
+    model: InverTech GHD-150-0356
 entities:
 entities:
   - entity: climate
   - entity: climate
     dps:
     dps:
@@ -27,11 +30,8 @@ entities:
           - dps_val: true
           - dps_val: true
             value: C
             value: C
       - id: 105
       - id: 105
-        name: hvac_action
+        name: work_mode
         type: string
         type: string
-        mapping:
-          - dps_val: warm
-            value: idle
       - id: 106
       - id: 106
         name: temperature
         name: temperature
         type: integer
         type: integer