From 2bcbbbc21d1fe27be8753e78cf2f5a288be3e405 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Tue, 8 Dec 2020 11:07:42 +0200 Subject: [PATCH] Add vacuum popup card --- config/lovelace/popup_cards.yaml | 38 ++++++++++++++++++++++++++++++++ config/lovelace/resources.yaml | 2 ++ 2 files changed, 40 insertions(+) diff --git a/config/lovelace/popup_cards.yaml b/config/lovelace/popup_cards.yaml index 064d50d..6aff7a4 100644 --- a/config/lovelace/popup_cards.yaml +++ b/config/lovelace/popup_cards.yaml @@ -473,3 +473,41 @@ sensor.average_humidity: tap_action: action: navigate navigation_path: /lovelace-main/climate + + +vacuum.vacuum: + title: Vacuum + style: *broad_popup_style + auto_close: true + card: + type: custom:layout-card + layout: horizontal + max_columns: 2 + cards: + - type: custom:vacuum-card + entity: vacuum.vacuum + stats: + default: + - attribute: filter_left + unit: hours + subtitle: Filter + - attribute: side_brush_left + unit: hours + subtitle: Side brush + - attribute: main_brush_left + unit: hours + subtitle: Main brush + - attribute: sensor_dirty_left + unit: hours + subtitle: Sensors + cleaning: + - attribute: cleaned_area + unit: m2 + subtitle: Cleaning area + - attribute: cleaning_time + unit: minutes + subtitle: Cleaning time + - type: custom:xiaomi-vacuum-map-card + entity: vacuum.vacuum + camera_calibration: true + map_camera: camera.xiaomi_cloud_map_extractor diff --git a/config/lovelace/resources.yaml b/config/lovelace/resources.yaml index f801116..98f6f27 100644 --- a/config/lovelace/resources.yaml +++ b/config/lovelace/resources.yaml @@ -6,6 +6,8 @@ url: /hacsfiles/lovelace-battery-entity-row/battery-entity-row.js - type: module url: /hacsfiles/button-card/button-card.js +- type: module + url: /hacsfiles/lovelace-card-tools/card-tools.js - type: module url: /hacsfiles/config-template-card/config-template-card.js - type: module