Explorar o código

Add support for Rinkmo D2 vacuum cleaner.

Issue #624
Jason Rumney %!s(int64=2) %!d(string=hai) anos
pai
achega
000df63ca8

+ 1 - 1
ACKNOWLEDGEMENTS.md

@@ -245,4 +245,4 @@ Further device support has been made with the assistance of users.  Please consi
 - [Muelner](https://github.com/Muelner) for assisting with support for WDYK 3-phase energy meter circuit breakers.
 - [Cyrelion](https://github.com/Cyrelion) for assisting with support for Lifubide X600 air purifiers.
 - [mwkchan](https://github.com/mwkchan) for assisting with support for Princess 350 panel heater.
-- [aletsweb](https://github.com/aletsweb) for assisting with support for A60 rgbcw lightbubs.
+- [aletsweb](https://github.com/aletsweb) for assisting with support for A60 rgbcw lightbubs and Rinkmo D2 vacuums.

+ 1 - 0
DEVICES.md

@@ -321,6 +321,7 @@ of device.
 - Lefant M213 vacuum cleaner (also works for Lefant M213S and APOSEN A550)
 - Lenovo E1 vacuum cleaner
 - Mellerware City Move vacuum cleaner (high likelihood of mismatch)
+- Rinkmo D2 vacuum cleaner
 
 ### Lawnmowers
 

+ 83 - 0
custom_components/tuya_local/devices/rinkmo_d2_vacuum.yaml

@@ -0,0 +1,83 @@
+name: Rinkmo vacuum
+products:
+  - id: lq0g9hpampbedce0
+    name: Rinkmo D2
+primary_entity:
+  entity: vacuum
+  dps:
+    - id: 2
+      name: activate
+      type: boolean
+    - id: 3
+      name: command
+      type: string
+      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
+    - id: 4
+      type: string
+      name: direction_control
+      mapping:
+        - dps_val: forward
+          value: forward
+        - dps_val: backward
+          value: reverse
+        - dps_val: turn_left
+          value: left
+        - dps_val: turnn_right
+          value: right
+        - dps_val: stop
+          value: stop
+    - id: 5
+      type: string
+      name: status
+      mapping:
+        - dps_val: standby
+          value: standby
+        - dps_val: smart_clean
+          value: cleaning
+        - dps_val: wall_clean
+          value: cleaning
+        - dps_val: spot_clean
+          value: cleaning
+        - dps_val: goto_charge
+          value: returning
+        - dps_val: charging
+          value: charging
+        - dps_val: charge_done
+          value: standby
+        - dps_val: paused
+          value: paused
+    - id: 6
+      type: integer
+      name: battery
+    - id: 13
+      type: boolean
+      name: locate
+    - id: 18
+      type: bitfield
+      name: error
+      mapping:
+        - dps_val: 1
+          value: edge_sweep
+        - dps_val: 2
+          value: middle_sweep
+        - dps_val: 4
+          value: left_wheel
+        - dps_val: 8
+          value: right_wheel
+        - dps_val: 16
+          value: garbage_box
+        - dps_val: 32
+          value: land_check
+        - dps_val: 64
+          value: collision
+        - dps_val: 512