Browse Source

New Device - Liectroux G7 vacuum

TiTaTim 1 year ago
parent
commit
e8f4365168
1 changed files with 308 additions and 0 deletions
  1. 308 0
      custom_components/tuya_local/devices/liectroux_g7

+ 308 - 0
custom_components/tuya_local/devices/liectroux_g7

@@ -0,0 +1,308 @@
+name: Robot vacuum - Liectroux G7
+products:
+  - id: bvcx2bum8jsb4zra
+    name: Liectroux G7
+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: smart
+          value: smart
+        - dps_val: zone
+          value: zone
+        - dps_val: pose
+          value: go_to_position
+        - dps_val: part
+          value: clean_spot
+        - dps_val: chargego
+          value: return_to_base
+        - dps_val: wallfollow
+          value: wall_follow
+        - dps_val: selectroom
+          value: select_room
+    - id: 105
+      type: string
+      name: status
+      mapping:
+        - dps_val: standby
+          value: standby
+        - dps_val: smart
+          value: cleaning
+        - dps_val: wall_follow
+          value: cleaning
+        - dps_val: mop
+          value: cleaning
+        - dps_val: spiral
+          value: cleaning
+        - dps_val: paused
+          value: pause
+        - dps_val: left_spiral
+          value: cleaning
+        - dps_val: right_spiral
+          value: cleaning
+        - dps_val: right_bow
+          value: cleaning
+        - dps_val: left_bow
+          value: cleaning
+        - dps_val: partial_bow
+          value: cleaning
+        - dps_val: pos_arrived
+          value: on_location
+        - dps_val: pos_unarrive
+          value: cannot_find_location
+        - dps_val: chargego
+          value: returning
+        - dps_val: charging
+          value: charging
+        - dps_val: charge_done
+          value: charged
+    - id: 109
+      type: string
+      name: fan_speed
+      mapping:
+        - dps_val: quiet
+          value: Quiet
+        - dps_val: auto
+          value: Standard
+        - dps_val: power
+          value: Low
+        - dps_val: max
+          value: Max
+    - id: 13
+      type: boolean
+      name: locate
+      optional: true
+    - id: 111
+      type: string
+      name: direction_control
+      optional: true
+      mapping:
+        - dps_val: foward
+          value: forward
+        - dps_val: backward
+          value: reverse
+        - dps_val: turn_left
+          value: left
+        - dps_val: turn_right
+          value: right
+        - dps_val: stop
+          value: stop
+    - id: 123
+      type: string
+      name: path_data
+      optional: true
+    - id: 124
+      type: string
+      name: command_trans
+      optional: true
+    - id: 125
+      type: string
+      name: request
+      optional: true
+    - id: 122
+      type: bitfield
+      name: error
+      mapping:
+        - dps_val: 2
+          value: left_wheel_hanging
+        - dps_val: 4
+          value: main_brush_stuck
+        - dps_val: 8
+          value: right_wheel_hanging
+        - dps_val: 16
+          value: left_wheel_jammed
+        - dps_val: 32
+          value: right_wheel_jammed
+        - dps_val: 64
+          value: cliff
+        - dps_val: 128
+          value: edge_sweeper_worn
+        - dps_val: 512
+          value: collision
+        - dps_val: 1024
+          value: dust_full
+        - dps_val: 4096
+          value: land_check
+        - dps_val: 32768
+          value: motor_jammed
+        - dps_val: 65536
+          value: overcurrent
+        - dps_val: 131072
+          value: docking_failure
+        - dps_val: 524288
+          value: jammed
+        - dps_val: 1048576
+          value: trapped
+        - dps_val: 2097152
+          value: laser_cover_stuck
+        - dps_val: 4194304
+          value: laser_blocked
+        - dps_val: 8388608
+          value: wall_sensors_blocked
+        - dps_val: 16777216
+          value: exclusion_zone_invalid
+        - dps_val: 33554432
+          value: charging_failure
+        - dps_val: 67108864
+          value: picked_up
+secondary_entities:
+  - entity: switch
+    name: Charge
+    icon: "mdi:lightning-bolt"
+    category: config
+    dps:
+      - id: 103
+        type: boolean
+        name: switch
+        optional: true
+  - entity: sensor
+    name: Cleaning time
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 107
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement
+  - entity: sensor
+    name: Cleaned area
+    category: diagnostic
+    icon: "mdi:floor-plan"
+    dps:
+      - id: 108
+        type: integer
+        name: sensor
+        unit: m2
+  - entity: sensor
+    class: battery
+    dps:
+      - id: 106
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: select
+    name: Mopping
+    icon: "mdi:cup-water"
+    dps:
+      - id: 110
+        type: string
+        name: option
+        mapping:
+          - dps_val: closed
+            value: "Off"
+          - dps_val: low
+            value: Low
+          - dps_val: middle
+            value: Medium
+          - dps_val: high
+            value: High
+  - entity: button
+    name: Reset map
+    category: config
+    dps:
+      - id: 129
+        type: boolean
+        name: button
+        optional: true
+  - entity: switch
+    name: Do not disturb
+    category: config
+    dps:
+      - id: 113
+        type: boolean
+        name: switch
+  - entity: number
+    name: Volume
+    category: config
+    icon: "mdi:volume-high"
+    dps:
+      - id: 114
+        type: integer
+        name: value
+        unit: "%"
+        range:
+          min: 0
+          max: 100
+  - entity: switch
+    name: Break clean
+    category: config
+    dps:
+      - id: 151
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Y-mopping
+    category: config
+    dps:
+      - id: 139
+        type: boolean
+        name: switch
+  - entity: switch
+    name: Only Mop
+    category: config
+    dps:
+      - id: 141
+        type: boolean
+        name: switch
+  - entity: sensor
+    name: Edge brush remain
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 119
+        type: integer
+        name: sensor
+        unit: h
+  - entity: button
+    name: Edge brush reset
+    category: config
+    dps:
+      - id: 115
+        type: boolean
+        name: button
+        optional: true
+  - entity: sensor
+    name: Roller brush remain
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 120
+        type: integer
+        name: sensor
+        unit: h
+  - entity: button
+    name: Roller brush reset
+    category: config
+    dps:
+      - id: 115
+        type: boolean
+        name: button
+        optional: true
+  - entity: sensor
+    name: Filter remain
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 121
+        type: integer
+        name: sensor
+        unit: h
+  - entity: button
+    name: Filter reset
+    category: config
+    dps:
+      - id: 115
+        type: boolean
+        name: button
+        optional: true