Skip to content

Some lovelace button-card templates to match the mushroom card theme

Notifications You must be signed in to change notification settings

hcoohb/lovelace-mushroom-button-card

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Lovelace-mushroom-button-card

The intention is to build a collection of button-card templates to match the theme of the mushroom-cards for the cards not present in lovelace-mushroom, or cards adding some features/customization.

Note that a key difference with the nice UI Lovelace Minimalist is that you can still use the lovelace UI editor.
Primarily for my personnal use but sharing in case it helps someone.

Usage

  • button-card must be installed for all below cards
  • Specific other requirements may be needed as specified
  1. Ensure all requirements are met
  2. In the Raw configuration editor in the Lovelace UI editor, copy the code from the templates.yml file at the top (adapt if you already ahve some button-card templates).
  3. In the dashboard, add a Manual card and place the usage code provided below tweaking as necessary.

Cards

1. 🌡 Climate card

image image

See usage

Requirements:

  • Button-card

Manual card code:

type: custom:button-card
template: mushroom_climate
entity: climate.main_ac

Variables:

  • default_hvac_mode: set the default mode when card is clicked. (if variable not set: cool)

Manual card code - example with variables:

type: custom:button-card
template: mushroom_climate
entity: climate.main_ac
variables:
 default_hvac_mode: heat

2. ⏳ Timer card

image image

See usage

Requirements:

Manual card code:

type: custom:button-card
template: mushroom_timer
name: Bedside Music Timer
entity: timer.bedside_music_timer
variables:
  input_datetime_id: input_datetime.bedside_music_timer_time

Details:

  • The entity must be a timer (Configuration>Automation&Scenes>Helpers>Add helper>Timer)
  • variable input_datetime_id is the input_datetime that must be created (Configuration>Automation&Scenes>Helpers>Add helper>Date&Time>Time) to be able to configure the duration of the timer from the UI.
  • Create any automation for what you want to happen, using the trigger: Event> timer.finished

About

Some lovelace button-card templates to match the mushroom card theme

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published