Add radiator buttons to home dashboard

This commit is contained in:
2020-11-18 23:43:23 +02:00
parent e9a51b0f2c
commit 80a4a34d9a
2 changed files with 20 additions and 1 deletions
@@ -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'
@@ -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