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

feat(sygonix_smarter_dehumidifier): add Anslut 20L product

PR #6066

DPS 100% match, modes and ranges also a match.
PR #6066 has a switch for ionizer, but Sygonix left this as an attribute
because the dp is present but non-functional. Changed to a hidden entity
so it can be enabled on devices that actually support it.
Jason Rumney 1 месяц назад
Родитель
Сommit
355a1a4ee7

+ 11 - 5
custom_components/tuya_local/devices/sygonix_smarter_dehumidifier.yaml

@@ -3,6 +3,9 @@ products:
   - id: 4xcjyqplnfenhplh
     manufacturer: Sygonix
     model: Smarter
+  - id: 36sgz5ez8f4kaap7
+    manufacturer: Anslut
+    model: Dehumidifier 20L
 entities:
   - entity: humidifier
     class: dehumidifier
@@ -32,11 +35,6 @@ entities:
       - id: 6
         type: integer
         name: current_humidity
-      # This doesn't actually have an ionizer, but having the dp
-      # will aid in detection
-      - id: 10
-        type: boolean
-        name: ionizer
       - id: 102
         type: integer
         name: model_code
@@ -237,3 +235,11 @@ entities:
       - id: 28
         type: boolean
         name: button
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    hidden: true  # dp present but not functional for Sygonix device
+    dps:
+      - id: 10
+        type: boolean
+        name: ionizer