From 095cf2ec920a216cfeb91541dcf88549411bab46 Mon Sep 17 00:00:00 2001 From: Aljaz Plohl Date: Sat, 9 Jul 2022 14:38:10 +0200 Subject: [PATCH 1/2] Support for Dreame vacuums --- xiaomi-vacuum-card.js | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/xiaomi-vacuum-card.js b/xiaomi-vacuum-card.js index acbf01e..f41cbf2 100644 --- a/xiaomi-vacuum-card.js +++ b/xiaomi-vacuum-card.js @@ -184,6 +184,32 @@ sensor: false, }, }, + dreame: { + buttons: { + start: {service: 'vacuum.turn_on'}, + pause: {service: 'vacuum.stop'}, + stop: {service: 'vacuum.turn_off'}, + }, + attributes: { + main_brush: { + key: 'main_brush_life_level', + unit: '%' + }, + side_brush: { + key: 'side_brush_life_level', + unit: '%' + }, + filter: { + key: 'filter_life_level', + unit: '%' + }, + sensor: { + key: 'waterbox', + label: 'Mop', + unit: '' + } + } + }, neato: { state: { mode: false, From fd74fa27af6d2b8f4d03b1f250c176827705aed2 Mon Sep 17 00:00:00 2001 From: Aljaz Plohl Date: Sat, 9 Jul 2022 14:47:18 +0200 Subject: [PATCH 2/2] Mop attribute missing : and space --- xiaomi-vacuum-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xiaomi-vacuum-card.js b/xiaomi-vacuum-card.js index f41cbf2..24deddc 100644 --- a/xiaomi-vacuum-card.js +++ b/xiaomi-vacuum-card.js @@ -205,7 +205,7 @@ }, sensor: { key: 'waterbox', - label: 'Mop', + label: 'Mop: ', unit: '' } }