From 80a4a34d9a04ada56f364301477f8ae981b808a5 Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Wed, 18 Nov 2020 23:43:23 +0200 Subject: [PATCH] Add radiator buttons to home dashboard --- .../cards/radiator_button_card.yaml | 4 +++- .../lovelace/home_dashboard/main_dashboard.yaml | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/config/lovelace/decluttering_templates/cards/radiator_button_card.yaml b/config/lovelace/decluttering_templates/cards/radiator_button_card.yaml index 8535bae..a787599 100644 --- a/config/lovelace/decluttering_templates/cards/radiator_button_card.yaml +++ b/config/lovelace/decluttering_templates/cards/radiator_button_card.yaml @@ -1,9 +1,11 @@ radiator_button_card: + default: + - name: "Radiator" card: type: custom:button-card template: default entity: "[[entity_id]]" - name: Radiator + name: "[[name]]" icon: mdi:radiator state: - value: 'off' diff --git a/config/lovelace/home_dashboard/main_dashboard.yaml b/config/lovelace/home_dashboard/main_dashboard.yaml index c07fb4e..ff21e3f 100644 --- a/config/lovelace/home_dashboard/main_dashboard.yaml +++ b/config/lovelace/home_dashboard/main_dashboard.yaml @@ -136,6 +136,23 @@ cards: - type: custom:decluttering-card template: ac_button_card + - type: custom:decluttering-card + template: radiator_button_card + variables: + - entity_id: climate.living_room_radiator_mode + - name: "Living room" + - type: custom:decluttering-card + template: radiator_button_card + variables: + - entity_id: climate.bedroom_radiator_mode + - name: "Bedroom" + - type: custom:decluttering-card + template: radiator_button_card + variables: + - entity_id: climate.kitchen_radiator_mode + - name: "Kitchen" + - type: horizontal-stack + cards: - type: custom:button-card template: default entity: switch.camera