Преглед на файлове

C500 improvements (#5120)

* Update air purifier sensor value mappings

changed the sensor mapping to better help match what is shown in the tuya/smartlife app

* Add 'unhealthy' icon to icons.json

* Add translation key for timer switch

* Reorder 'danger' and 'unhealthy' icon entry in icons.json

* Fix formatting in icons.json for emoticon entries

* Fix translation issue

* Try adding icon (i don’t know if it will work)

* Can id 8 from indicator to display

Thats the thing it controls in the app

* Add fan speed entity with string mapping (got help from gemini))

Added fan speed selection with mapping for different speeds.

* Remove unhealthy

* Remove the fan select entity

* Comply with tuya local’s air quality standards

* Add quotes to Mdi:timer
vemboy20 преди 19 часа
родител
ревизия
d6951806a4
променени са 1 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 5 4
      custom_components/tuya_local/devices/homemedics_c500_airpurifier.yaml

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

@@ -59,7 +59,7 @@ entities:
         type: boolean
         type: boolean
         name: lock
         name: lock
   - entity: light
   - entity: light
-    translation_key: indicator
+    translation_key: display
     category: config
     category: config
     dps:
     dps:
       - id: 8
       - id: 8
@@ -108,15 +108,16 @@ entities:
         name: sensor
         name: sensor
         mapping:
         mapping:
           - dps_val: great
           - dps_val: great
-            value: excellent
+            value: good
           - dps_val: mild
           - dps_val: mild
             value: moderate
             value: moderate
           - dps_val: good
           - dps_val: good
-            value: good
-          - dps_val: medium
             value: poor
             value: poor
+          - dps_val: medium
+            value: severe
   - entity: switch
   - entity: switch
     name: Timer
     name: Timer
+    icon: "mdi:timer"
     category: config
     category: config
     dps:
     dps:
       - id: 101
       - id: 101