From 3c4d087b46407aa222f9dd1468072750d9f88ccd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Lov=C3=A9n?= Date: Fri, 4 Jan 2019 01:20:17 +0100 Subject: [PATCH] lovelace - Coffeemaker card --- lovelace/coffee_card.yaml | 19 +++++++++++++++++++ lovelace/main.yaml | 8 ++++++++ 2 files changed, 27 insertions(+) create mode 100644 lovelace/coffee_card.yaml diff --git a/lovelace/coffee_card.yaml b/lovelace/coffee_card.yaml new file mode 100644 index 0000000..96095d1 --- /dev/null +++ b/lovelace/coffee_card.yaml @@ -0,0 +1,19 @@ +type: entities +entities: + - type: custom:hui-picture-entity-card + entity: switch.kaffebryggare + image: !file /local/images/moccamaster.jpg + show_state: false + show_name: false + tap_action: { action: toggle } + - type: custom:fold-entity-row + head: + entity: switch.kaffebryggare + icon: mdi:coffee + items: + - input_boolean.cfe_on + - type: custom:time-input-row + entity: input_datetime.cfe_on + - type: section + - input_boolean.cfe_off + - input_number.cfe_off diff --git a/lovelace/main.yaml b/lovelace/main.yaml index a10df8c..bab429e 100644 --- a/lovelace/main.yaml +++ b/lovelace/main.yaml @@ -1,4 +1,11 @@ title: Åvägen +resources: + - url: !file /local/lovelace-card-tools/card-tools.js + type: js + - url: !file /local/lovelace-fold-entity-row/fold-entity-row.js + type: js + - url: !file /local/lovelace-time-input-row/time-input-row.js + type: js views: - title: Hemma2 cards: @@ -9,3 +16,4 @@ views: action: call-service service: shell_command.lovelace_gen - !include floorplan.yaml + - !include coffee_card.yaml