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

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 часов назад
Родитель
Сommit
d6951806a4

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

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