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

Heatstorm heater: add mapping for unit, capitalise presets

- temperature_unit needs to be mapped to upper case to map to the correct units. Issue #1241
- presets from the device are capitalised, not all lower case. Issue #1242
Jason Rumney 2 лет назад
Родитель
Сommit
d6fd5ec95f

+ 8 - 3
custom_components/tuya_local/devices/heatstorm_hs6000gc_heater.yaml

@@ -39,11 +39,11 @@ primary_entity:
       type: string
       name: preset_mode
       mapping:
-        - dps_val: auto
+        - dps_val: Auto
           value: comfort
-        - dps_val: low
+        - dps_val: Low
           value: eco
-        - dps_val: high
+        - dps_val: High
           value: boost
     - id: 13
       type: bitfield
@@ -59,6 +59,11 @@ primary_entity:
       type: string
       name: temperature_unit
       hidden: true
+      mapping:
+        - dps_val: c
+          value: C
+        - dps_val: f
+          value: F
     - id: 20
       type: integer
       name: set_temp_f