Quellcode durchsuchen

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 vor 2 Jahren
Ursprung
Commit
ab4f9994f5
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  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