Parcourir la 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 il y a 2 ans
Parent
commit
ab4f9994f5
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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