Преглед изворни кода

feat(brandson_a307362x3_fan): add optional ionizer

To match compatible Yoer Verto TV01 fan.
Product ID given is not valid, so cannot match by product id.

PR #5550 by @chrRtg
Jason Rumney пре 4 дана
родитељ
комит
b1227dc515
1 измењених фајлова са 17 додато и 0 уклоњено
  1. 17 0
      custom_components/tuya_local/devices/brandson_a307362x3_fan.yaml

+ 17 - 0
custom_components/tuya_local/devices/brandson_a307362x3_fan.yaml

@@ -120,3 +120,20 @@ entities:
             value: false
           - dps_val: false
             value: true
+  - entity: switch
+    translation_key: ionizer
+    category: config
+    hidden: unavailable
+    dps:
+      - id: 9
+        type: boolean
+        optional: true
+        name: switch
+      - id: 9
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true