Просмотр исходного кода

Lublublue vacuum: add additional dps

Additional dps from iot.tuya.com info for the device.

Some dps were listed as attributes, made available as entities so they can
be controlled. Others are new. Any new ones marked as optional so as not
to increase requirements for detection.

Issue #2334
Jason Rumney 1 год назад
Родитель
Сommit
5f32dc68d9
1 измененных файлов с 178 добавлено и 8 удалено
  1. 178 8
      custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml

+ 178 - 8
custom_components/tuya_local/devices/lublueblu_sl60d_vacuum.yaml

@@ -40,10 +40,6 @@ primary_entity:
       optional: true
       optional: true
       name: pause
       name: pause
       hidden: true
       hidden: true
-    - id: 3
-      type: boolean
-      name: charge
-      optional: true
     - id: 4
     - id: 4
       type: string
       type: string
       name: command
       name: command
@@ -59,12 +55,16 @@ primary_entity:
           value: clean_spot
           value: clean_spot
         - dps_val: part
         - dps_val: part
           value: partial
           value: partial
+        - dps_val: selectroom
+          value: select_room
     - id: 5
     - id: 5
       type: string
       type: string
       name: status
       name: status
       mapping:
       mapping:
         - dps_val: standby
         - dps_val: standby
           value: standby
           value: standby
+        - dps_val: smart
+          value: smart
         - dps_val: zone_clean
         - dps_val: zone_clean
           value: zone
           value: zone
         - dps_val: part_clean
         - dps_val: part_clean
@@ -84,8 +84,11 @@ primary_entity:
         - dps_val: charging
         - dps_val: charging
           value: charging
           value: charging
         - dps_val: charge_done
         - dps_val: charge_done
-          value: sleep
+          value: charged
         - dps_val: sleep
         - dps_val: sleep
+          value: sleep
+        - dps_val: select_room
+          value: selecting_room
     - id: 9
     - id: 9
       type: string
       type: string
       name: fan_speed
       name: fan_speed
@@ -115,14 +118,36 @@ primary_entity:
           value: right
           value: right
         - dps_val: stop
         - dps_val: stop
           value: stop
           value: stop
-    - id: 27
-      type: boolean
-      name: break_clean
+    - id: 14
+      type: string
+      optional: true
+      name: path_data
+    - id: 15
+      type: string
+      optional: true
+      name: command_trans
     - id: 28
     - id: 28
       type: bitfield
       type: bitfield
       name: error
       name: error
+    - id: 34
+      type: string
+      optional: true
+      name: device_info
+    - id: 35
+      type: string
+      optional: true
+      name: voice_data
 
 
 secondary_entities:
 secondary_entities:
+  - entity: switch
+    name: Charge
+    icon: "mdi:battery-charging"
+    category: config
+    dps:
+      - id: 3
+        type: boolean
+        optional: true
+        name: switch
   - entity: sensor
   - entity: sensor
     name: Cleaning time
     name: Cleaning time
     icon: "mdi:progress-clock"
     icon: "mdi:progress-clock"
@@ -166,6 +191,22 @@ secondary_entities:
             value: medium
             value: medium
           - dps_val: high
           - dps_val: high
             value: high
             value: high
+  - entity: select
+    name: Fetch request
+    icon: "mdi:message-question"
+    category: config
+    dps:
+      - id: 16
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: get_map
+            value: Map
+          - dps_val: get_path
+            value: Path
+          - dps_val: get_both
+            value: Both
   - entity: sensor
   - entity: sensor
     name: Side brush lifetime
     name: Side brush lifetime
     category: diagnostic
     category: diagnostic
@@ -287,3 +328,132 @@ secondary_entities:
       - id: 25
       - id: 25
         type: boolean
         type: boolean
         name: switch
         name: switch
+      - id: 33
+        type: string
+        optional: true
+        name: schedule
+  - entity: switch
+    name: Intermittent cleaning
+    icon: "mdi:clock-star-four-points"
+    category: config
+    dps:
+      - id: 27
+        type: boolean
+        name: switch
+      - id: 32
+        type: string
+        optional: true
+        name: schedule
+  - entity: select
+    translation_key: language
+    category: config
+    dps:
+      - id: 36
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: chinese_simplified
+            value: chinese
+          - dps_val: chinese_traditional
+            value: chinese_traditional
+          - dps_val: english
+            value: english
+          - dps_val: german
+            value: german
+          - dps_val: french
+            value: french
+          - dps_val: russian
+            value: russian
+          - dps_val: spanish
+            value: spanish
+          - dps_val: korean
+            value: korean
+          - dps_val: latin
+            value: latin
+          - dps_val: portuguese
+            value: portuguese
+          - dps_val: japanese
+            value: japanese
+          - dps_val: italian
+            value: italian
+  - entity: number
+    name: Dust empty frequency
+    category: config
+    icon: "mdi:delete"
+    dps:
+      - id: 37
+        type: integer
+        optional: true
+        name: value
+        range:
+          min: 0
+          max: 4
+  - entity: button
+    name: Empty dust
+    category: config
+    dps:
+      - id: 38
+        type: boolean
+        optional: true
+        name: button
+  - entity: switch
+    name: Custom room
+    icon: "mdi:floor-plan"
+    category: config
+    dps:
+      - id: 39
+        type: boolean
+        optional: true
+        name: switch
+  - entity: binary_sensor
+    name: Mop installed
+    icon: "mdi:water-plus"
+    category: diagnostic
+    dps:
+      - id: 40
+        type: boolean
+        optional: true
+        name: sensor
+        mapping:
+          - dps_val: null
+            value: false
+  - entity: select
+    name: Operation mode
+    icon: "mdi:robot-vacuum"
+    category: config
+    dps:
+      - id: 41
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: only_sweep
+            value: Sweep
+          - dps_val: only_mop
+            value: Mop
+          - dps_val: both_work
+            value: Both
+  - entity: select
+    name: Carpet mode
+    icon: "mdi:rug"
+    category: config
+    dps:
+      - id: 44
+        type: string
+        optional: true
+        name: option
+        mapping:
+          - dps_val: adaptive
+            value: Adapt
+          - dps_val: evade
+            value: Avoid
+  - entity: switch
+    name: Auto boost
+    icon: "mdi:car-turbocharger"
+    category: config
+    dps:
+      - id: 45
+        type: boolean
+        optional: true
+        name: switch