Browse Source

feat (alen_45i_airpurifier): add optional light for V1.5 variant

Issue #4154
Jason Rumney 2 months ago
parent
commit
b8dd8ad1bc
1 changed files with 25 additions and 0 deletions
  1. 25 0
      custom_components/tuya_local/devices/alen_45i_airpurifier.yaml

+ 25 - 0
custom_components/tuya_local/devices/alen_45i_airpurifier.yaml

@@ -3,6 +3,9 @@ products:
   - id: Ng7UnT2dUDgIyJL9
     manufacturer: Alen
     model: BreatheSmart 45i
+  - id: 1fe3sdugltp4nocc
+    manufacturer: Alen
+    model: BreatheSmart 45i V1.5
 entities:
   - entity: fan
     translation_only_key: fan_with_presets
@@ -112,3 +115,25 @@ entities:
       - id: 21
         type: bitfield
         name: fault_code
+  - entity: light
+    hidden: unavailable
+    dps:
+      - id: 101
+        name: brightness
+        type: string
+        optional: true
+        mapping:
+          - dps_val: "Off"
+            value: 0
+          - dps_val: "Half"
+            value: 128
+          - dps_val: "Full"
+            value: 255
+      - id: 101
+        type: string
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true