Explorar el Código

Add support for Lefant T700 vacuum

Issue #2241
Jason Rumney hace 1 año
padre
commit
fd0bc608a7
Se han modificado 3 ficheros con 129 adiciones y 0 borrados
  1. 1 0
      ACKNOWLEDGEMENTS.md
  2. 1 0
      DEVICES.md
  3. 127 0
      custom_components/tuya_local/devices/lefant_t700_vacuum.yaml

+ 1 - 0
ACKNOWLEDGEMENTS.md

@@ -656,3 +656,4 @@ Further device support has been made with the assistance of users. Please consid
 - [FrederikM97](https://github.com/FrederickM97) for assisting with Cleverio PF100 pet feeder.
 - [FrederikM97](https://github.com/FrederickM97) for assisting with Cleverio PF100 pet feeder.
 - [chadtheriault](https://github.com/chadtheriault) for assisting with Zemismart AM25 roller blinds.
 - [chadtheriault](https://github.com/chadtheriault) for assisting with Zemismart AM25 roller blinds.
 - [fmonday](https://github.com/fmonday) for assisting with Enlighten Café string lights.
 - [fmonday](https://github.com/fmonday) for assisting with Enlighten Café string lights.
+- [plopezllorca](https://github.com/plopezllorca) for assisting with support for Lefant T700 vacuum.

+ 1 - 0
DEVICES.md

@@ -614,6 +614,7 @@ of device.
 - Lefant LS1 Pro vacuum cleaner
 - Lefant LS1 Pro vacuum cleaner
 - Lefant M213 vacuum cleaner (also works for Lefant M213S and APOSEN A550)
 - Lefant M213 vacuum cleaner (also works for Lefant M213S and APOSEN A550)
 - Lefant N33 vacuum cleaner
 - Lefant N33 vacuum cleaner
+- Lefant T700 vacuum cleaner with mop
 - Lenovo E1 vacuum cleaner
 - Lenovo E1 vacuum cleaner
 - Liectroux G7 vacuum cleaner with mop
 - Liectroux G7 vacuum cleaner with mop
 - Liectroux XR500[T3]
 - Liectroux XR500[T3]

+ 127 - 0
custom_components/tuya_local/devices/lefant_t700_vacuum.yaml

@@ -0,0 +1,127 @@
+name: Robot vacuum
+products:
+  - id: izivjmyjsajl9jdh
+    name: Lefant T700
+primary_entity:
+  entity: vacuum
+  dps:
+    - id: 1
+      type: boolean
+      name: power
+    - id: 2
+      type: boolean
+      name: activate
+    - id: 3
+      type: string
+      name: command
+      mapping:
+        - dps_val: standby
+          value: standby
+        - dps_val: smart
+          value: smart
+        - dps_val: wall_follow
+          value: wall_follow
+        - dps_val: spiral
+          value: clean_spot
+        - dps_val: chargego
+          value: return_to_base
+        - dps_val: random
+          value: random
+    - id: 4
+      type: string
+      name: direction_control
+      mapping:
+        - dps_val: forward
+          value: forward
+        - dps_val: backward
+          value: reverse
+        - dps_val: turn_left
+          value: turn_left
+        - dps_val: turn_right
+          value: turn_right
+        - dps_val: stop
+          value: stop
+    - id: 5
+      type: string
+      name: status
+      mapping:
+        - dps_val: "0"
+          value: standby
+        - dps_val: "1"
+          value: cleaning
+        - dps_val: "2"
+          value: mopping
+        - dps_val: "3"
+          value: edge_cleaning
+        - dps_val: "4"
+          value: charging
+        - dps_val: "5"
+          value: charged
+        - dps_val: "6"
+          value: spot_cleaning
+    - id: 13
+      type: boolean
+      name: locate
+    - id: 15
+      type: string
+      name: clean_record
+    - id: 19
+      type: string
+      optional: true
+      name: map_config
+secondary_entities:
+  - entity: sensor
+    class: battery
+    category: diagnostic
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: "%"
+  - entity: sensor
+    name: Clean area
+    icon: "mdi:floor-plan"
+    category: diagnostic
+    dps:
+      - id: 16
+        type: integer
+        name: sensor
+        unit: m2
+  - entity: sensor
+    name: Clean time
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 17
+        type: integer
+        name: sensor
+        unit: min
+  - entity: binary_sensor
+    class: problem
+    category: diagnostic
+    dps:
+      - id: 18
+        type: bitfield
+        name: sensor
+        mapping:
+          - dps_val: 0
+            value: false
+          - value: true
+      - id: 18
+        type: bitfield
+        name: fault_code
+  - entity: select
+    name: Mopping
+    icon: "mdi:cup-water"
+    category: config
+    dps:
+      - id: 101
+        type: string
+        name: option
+        mapping:
+          - dps_val: low
+            value: low
+          - dps_val: nar
+            value: medium
+          - dps_val: high
+            value: high