瀏覽代碼

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 2 年之前
父節點
當前提交
40e13b887e
共有 1 個文件被更改,包括 21 次插入8 次删除
  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