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

icons: add states for air quality using emoticon faces.

Jason Rumney 1 год назад
Родитель
Сommit
b6f63c0997
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      custom_components/tuya_local/icons.json

+ 7 - 0
custom_components/tuya_local/icons.json

@@ -180,6 +180,13 @@
         "sensor": {
             "air_quality": {
                 "default": "mdi:weather-dust"
+                "state": {
+                    "excellent": "mdi:emoticon-excited",
+                    "good": "mdi:emoticon-happy",
+                    "moderate": "mdi:emoticon-neutral",
+                    "poor": "mdi:emoticon-sad",
+                    "severe": "mdi:emoticon-dead"
+                }
             },
             "cooking_status": {
                 "default": "mdi:information-variant-circle"