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

YX-025WB aroma diffuser: updates

- use brand name from Aliexpress in product name
- use new timer translations
- add raw fault code and boolean mapping to problem sensor

PR #2204
Jason Rumney 1 год назад
Родитель
Сommit
1e20807c69
1 измененных файлов с 14 добавлено и 4 удалено
  1. 14 4
      custom_components/tuya_local/devices/YX-025WB_aroma_diffuser.yaml

+ 14 - 4
custom_components/tuya_local/devices/YX-025WB_aroma_diffuser.yaml

@@ -1,7 +1,7 @@
 name: Aroma diffuser
 products:
   - id: yishet3p12fvohmd
-    name: Aroma YX-025WB
+    name: Liplasting YX-025WB
 primary_entity:
   entity: fan
   icon: "mdi:scent"
@@ -84,6 +84,16 @@ secondary_entities:
         type: bitfield
         name: sensor
         optional: true
+        mapping:
+          - dps_val: 0
+            value: false
+          - dps_val: null
+            value: false
+          - value: true
+      - id: 11
+        type: bitfield
+        name: fault_code
+        optional: true
   - entity: select
     translation_key: timer
     category: config
@@ -94,11 +104,11 @@ secondary_entities:
         optional: true
         mapping:
           - dps_val: 2h
-            value: "2 hours"
+            value: "2h"
           - dps_val: 4h
-            value: "4 hours"
+            value: "4h"
           - dps_val: cancel
-            value: "None"
+            value: cancel
   - entity: sensor
     translation_key: time_remaining
     class: duration