Browse Source

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 years ago
parent
commit
ab4f9994f5
1 changed files with 10 additions and 0 deletions
  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
     - id: 1
       type: boolean
       type: boolean
       name: power
       name: power
+      optional: true
+      mapping:
+        - dps_val: null
+          value: false
+          hidden: true
     - id: 2
     - id: 2
       type: boolean
       type: boolean
       optional: true
       optional: true
@@ -147,6 +152,11 @@ secondary_entities:
       - id: 3
       - id: 3
         type: boolean
         type: boolean
         name: switch
         name: switch
+        optional: true
+        mapping:
+          - dps_val: null
+            value: false
+            hidden: true
   - entity: sensor
   - entity: sensor
     name: Cleaning time
     name: Cleaning time
     class: duration
     class: duration