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

Nedis PTC fan heater: naming changes

- simplify top level name
- follow HA naming convention
- use light for indicator rather than switch
Jason Rumney 2 лет назад
Родитель
Сommit
4a0e2dd8d6
1 измененных файлов с 5 добавлено и 4 удалено
  1. 5 4
      custom_components/tuya_local/devices/nedis_ptc_fan_heater.yaml

+ 5 - 4
custom_components/tuya_local/devices/nedis_ptc_fan_heater.yaml

@@ -1,7 +1,7 @@
-name: Ceramic PTC Fan Heater
+name: Fan heater
 products:
   - id: gzmby6hypv4daebf
-    name: Nedis Ceramic PTC Fan Heater HTFA22WTW
+    name: Nedis Ceramic PTC HTFA22WTW
 primary_entity:
   entity: climate
   dps:
@@ -49,9 +49,10 @@ primary_entity:
         - dps_val: true
           value: "on"
 secondary_entities:
-  - entity: switch
+  - entity: light
     name: Indicator
     category: config
+    icon: "mdi:led-on"
     dps:
       - id: 10
         type: boolean
@@ -80,7 +81,7 @@ secondary_entities:
           - dps_val: "5h"
             value: "6 hours"
   - entity: sensor
-    name: Remaining Time
+    name: Remaining time
     class: duration
     dps:
       - id: 20