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

Fixed errors in the Air Purifier config

Alexander Balya 2 лет назад
Родитель
Сommit
880aa4da08
1 измененных файлов с 4 добавлено и 7 удалено
  1. 4 7
      custom_components/tuya_local/devices/smartmi_e1_purifier.yaml

+ 4 - 7
custom_components/tuya_local/devices/smartmi_e1_purifier.yaml

@@ -1,4 +1,4 @@
-name: Smartmi Air Purifier E1
+name: Air Purifier
 products:
   - id: pwrmggdhwkz1lnvh
     name: Smartmi E1
@@ -20,14 +20,11 @@ primary_entity:
       type: string
       mapping:
         - dps_val: sleep
-          value: Sleep
-          icon: "mdi:sleep"
+          value: sleep
         - dps_val: auto
-          value: Normal
-          icon: "mdi:air-purifier"
+          value: normal
         - dps_val: manual
-          value: Strong
-          icon: "mdi:wind-power-outline"
+          value: strong
     - id: 22
       type: bitfield
       name: fault_code