Quellcode durchsuchen

TTEC vacuum: add separate buttons for first three dps

Leave the 1/2 combo for activate, but remove dp 3 as power, as this is
for sending the vacuum to charge.

Add the separate buttons in case the vacuum interface is not able to control
it (eg device does not like two commands sent at once).

Based on comment in #1393 about a similar vacuum with 3 booleans for power_go,
pause and switch_charge
Jason Rumney vor 2 Jahren
Ursprung
Commit
40e13b887e
1 geänderte Dateien mit 21 neuen und 8 gelöschten Zeilen
  1. 21 8
      custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

+ 21 - 8
custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

@@ -5,14 +5,6 @@ products:
 primary_entity:
   entity: vacuum
   dps:
-    - id: 3
-      type: boolean
-      name: power
-      optional: true
-      mapping:
-        - dps_val: null
-          value: false
-          hidden: true
     - id: 1
       type: boolean
       name: activate
@@ -162,6 +154,27 @@ primary_entity:
       optional: true
       name: voice_data
 secondary_entities:
+  - entity: button
+    name: Start
+    category: config
+    dps:
+      - id: 1
+        type: boolean
+        name: button
+  - entity: button
+    name: Pause
+    category: config
+    dps:
+      - id: 2
+        type: boolean
+        name: button
+  - entity: button
+    name: Dock
+    category: config
+    dps:
+      - id: 3
+        type: boolean
+        name: button
   - entity: sensor
     name: Cleaning time
     class: duration