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

Add support for MEDION Vacuum Robot S10 SW (MD19601)

Benno van den Bogaard 1 год назад
Родитель
Сommit
afb159b7be
1 измененных файлов с 110 добавлено и 0 удалено
  1. 110 0
      custom_components/tuya_local/devices/medion_s10_vacuum.yaml

+ 110 - 0
custom_components/tuya_local/devices/medion_s10_vacuum.yaml

@@ -0,0 +1,110 @@
+name: Robot vacuum
+products:
+  - id: dxzaldz77vzlxauh
+    name: MEDION Vacuum Robot S10 SW (MD19601)
+primary_entity:
+  entity: vacuum
+  dps:
+    - id: 1
+      type: boolean
+      name: power
+      optional: true
+    - id: 2
+      type: boolean
+      name: activate
+      optional: true
+    - id: 3
+      type: string
+      name: command
+      mapping:
+        - dps_val: standby
+          value: stop
+        - dps_val: spiral
+          value: clean_spot
+        - dps_val: smart
+          value: smart
+        - dps_val: chargego
+          value: return_to_base
+        - dps_val: wall_follow
+          value: wall_follow
+    - 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: turn_right
+          value: right
+        - dps_val: stop
+          value: stop
+    - id: 5
+      type: string
+      name: status
+      mapping:
+        - dps_val: "0"
+          value: standby
+        - dps_val: "1"
+          value: smart
+        - dps_val: "3"
+          value: wall_follow
+        - dps_val: "4"
+          value: returning_to_base
+        - dps_val: "5"
+          value: charging
+        - dps_val: "6"
+          value: clean_spot
+    - id: 13
+      type: boolean
+      name: locate
+      optional: true
+    - id: 14
+      type: string
+      name: fan_speed
+      mapping:
+        - dps_val: quiet
+          value: quiet
+        - dps_val: normal
+          value: normal
+        - dps_val: strong
+          value: strong
+    - id: 18
+      type: bitfield
+      name: error
+      optional: true
+
+secondary_entities:
+  - entity: sensor
+    class: battery
+    dps:
+      - id: 6
+        type: integer
+        name: sensor
+        unit: "%"
+        class: measurement
+  - entity: sensor
+    name: Clean area
+    category: diagnostic
+    dps:
+      - id: 16
+        type: integer
+        name: sensor
+        unit: m2
+        class: measurement
+      - id: 15
+        type: string
+        optional: true
+        name: clean_record
+  - entity: sensor
+    name: Clean time
+    class: duration
+    category: diagnostic
+    dps:
+      - id: 17
+        type: integer
+        name: sensor
+        unit: min
+        class: measurement