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.
- button-card must be installed for all below cards
- Specific other requirements may be needed as specified
- Ensure all requirements are met
- In the
Raw configuration editor
in the Lovelace UI editor, copy the code from thetemplates.yml
file at the top (adapt if you already ahve some button-card templates). - In the dashboard, add a
Manual card
and place the usage code provided below tweaking as necessary.
See usage
Requirements:
- Button-card
Manual card code:
type: custom:button-card template: mushroom_climate entity: climate.main_acVariables:
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
See usage
Requirements:
- Button-card
- Card-mod
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_timeDetails:
- 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