Преглед изворни кода

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