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

Klarstein Skyscraper Ice: naming updates, time remaining sensor

- move branding under products and use a generic top level name
- separate out countdown_left attribute to a standard time_remaining sensor
- Follow HA naming convention
Jason Rumney 1 год назад
Родитель
Сommit
192ca7fc2e

+ 12 - 6
custom_components/tuya_local/devices/klarstein_skyscraper_ice_smart.yaml

@@ -1,6 +1,7 @@
-name: Klarstein Skyscraper Ice Smart
+name: Air cooler
 products:
   - id: vklyfhpnd7a47iym
+    name: Klarstein Skyscraper Ice Smart
 primary_entity:
   entity: fan
   translation_only_key: fan_with_presets
@@ -31,9 +32,6 @@ primary_entity:
     - id: 10
       type: boolean
       name: oscillate
-    - id: 12
-      name: countdown_left
-      type: integer
 secondary_entities:
   - entity: select
     translation_key: timer
@@ -75,10 +73,18 @@ secondary_entities:
             value: "7 hours"
           - dps_val: "7_5h"
             value: "7.5 hours"
+  - entity: sensor
+    category: diagnostic
+    translation_key: time_remaining
+    class: duration
+    dps:
+      - id: 12
+        name: sensor
+        type: integer
+        unit: min
   - entity: switch
-    name: humidifier
+    name: Humidifier
     icon: "mdi:air-humidifier"
-    category: config
     dps:
       - id: 15
         type: boolean