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

fix(jiahong_et61plus_thermostat): rename and fix power setting

- File was incorrectly named "thermometer" instead of "thermostat"
- Power setting was partially adjusted from the et72w config, but not
  properly converted to a number entity, and the name not changed fully
Jason Rumney 1 месяц назад
Родитель
Сommit
ea2024760d
1 измененных файлов с 5 добавлено и 2 удалено
  1. 5 2
      custom_components/tuya_local/devices/jiahong_et61plus_thermostat.yaml

+ 5 - 2
custom_components/tuya_local/devices/jiahong_et61plus_thermometer.yaml → custom_components/tuya_local/devices/jiahong_et61plus_thermostat.yaml

@@ -203,15 +203,18 @@ entities:
             value: "5+1+1 (Adaptive)"
             value: "5+1+1 (Adaptive)"
   - entity: number
   - entity: number
     category: config
     category: config
-    name: Floor sensor power
+    name: Power setting
     class: power
     class: power
     dps:
     dps:
       - id: 116
       - id: 116
         type: integer
         type: integer
-        name: option
+        name: value
+        unit: W
         range:
         range:
           min: 0
           min: 0
           max: 4500
           max: 4500
+        mapping:
+          - scale: 10
   - entity: binary_sensor
   - entity: binary_sensor
     class: problem
     class: problem
     category: diagnostic
     category: diagnostic