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

feat(trotec_pac-w_heatpump): expose temperature unit as select also

Issue #3595
Jason Rumney 6 месяцев назад
Родитель
Сommit
fed806c6e1
1 измененных файлов с 12 добавлено и 0 удалено
  1. 12 0
      custom_components/tuya_local/devices/trotec_pac-w_heatpump.yaml

+ 12 - 0
custom_components/tuya_local/devices/trotec_pac-w_heatpump.yaml

@@ -70,6 +70,18 @@ entities:
       - id: 110
         name: model
         type: string
+  - entity: select
+    translation_key: temperature_unit
+    category: config
+    dps:
+      - id: 19
+        type: string
+        name: option
+        mapping:
+          - dps_val: C
+            value: celsius
+          - dps_val: F
+            value: fahrenheit
   - entity: switch
     translation_key: sleep
     category: config