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

GPPH heater config: add values in map even though they are the same as dps_val.

This list of dps_val was supposed to indicate that the dps is an enum, with a list
of fixed values to choose from.
When handling these, we actually check values, not dps_val.  But if we leave off the dps_val, they all become defaults, which will override any dps_val.
To avoid overcomplicating the handling code, include values for these.
Jason Rumney 4 лет назад
Родитель
Сommit
8d7bf10c47
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      custom_components/tuya_local/devices/goldair_gpph_heater.yaml

+ 5 - 0
custom_components/tuya_local/devices/goldair_gpph_heater.yaml

@@ -59,10 +59,15 @@ primary_entity:
           icon: "mdi:radiator-disabled"
           icon_priority: 2
         - dps_val: "1"
+          value: "1"
         - dps_val: "2"
+          value: "2"
         - dps_val: "3"
+          value: "3"
         - dps_val: "4"
+          value: "4"
         - dps_val: "5"
+          value: "5"
       name: power_level
     - id: 102
       type: integer