Explorar o código

feat(intex_purespa_spa): add optional jets switch

Product description is "with salt & jet", while original was "with salt",
so probably both those are optional with some variants not having either.

Issue #5432
Jason Rumney hai 3 días
pai
achega
e6efe1efa2
Modificáronse 1 ficheiros con 17 adicións e 0 borrados
  1. 17 0
      custom_components/tuya_local/devices/intex_purespa_spa.yaml

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

@@ -31,6 +31,23 @@ entities:
       - id: 104
         type: boolean
         name: switch
+  - entity: switch
+    name: Jets
+    icon: "mdi:shower-head"
+    hidden: unavailable
+    dps:
+      - id: 105
+        type: boolean
+        optional: true
+        name: switch
+      - id: 105
+        type: boolean
+        optional: true
+        name: available
+        mapping:
+          - dps_val: null
+            value: false
+          - value: true
   - entity: switch
     name: Filtration
     icon: "mdi:air-filter"