瀏覽代碼

TTEC vacuum

Mark power, charging dps as optional

Logs from use show these as sometimes missing. As they are required switches
for operation, null is mapped to false (off) as an assumption.

Issue #1491
Jason Rumney 2 年之前
父節點
當前提交
ab4f9994f5
共有 1 個文件被更改,包括 10 次插入0 次删除
  1. 10 0
      custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

+ 10 - 0
custom_components/tuya_local/devices/ttec_reobipro_vacuum.yaml

@@ -8,6 +8,11 @@ primary_entity:
     - id: 1
       type: boolean
       name: power
+      optional: true
+      mapping:
+        - dps_val: null
+          value: false
+          hidden: true
     - id: 2
       type: boolean
       optional: true
@@ -147,6 +152,11 @@ secondary_entities:
       - id: 3
         type: boolean
         name: switch
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+            hidden: true
   - entity: sensor
     name: Cleaning time
     class: duration