This is a template for home assistant dashboards
- button-card
- my-slider-v2
Just add a whole code from template.yaml to a top of a dashboard raw code.
A simple card for controlling lights.
In variables setup what you need for your card.
type: custom:button-card
template: light-card
variables:
var_name: Celling
var_label: Living Room
var_entity: light.living_room
var_icon: mdi:lightbulb
A option you can set:
var_name
- Main header on card,
var_label
- Second text on card,
var_entity
- Switch-type entity,
var_icon
- Icon for a card
type: custom:button-card
template: simple-switch-card
variables:
var_name: Office Socket
var_entity: sensor.entity
var_icon: mdi:power-socket-eu
A option you can set:
var_name
- Main header on card,
var_entity
- Entity with a switch option,
var_icon
- Icon for card
type: custom:button-card
template: room-navigation-card
variables:
var_name: Living Room
var_entity: sensor.temperature
var_icon: mdi:sofa
var_navigationPath: /lovelace/living-room
var_color: '#EE4266'
A option you can set:
var_name
- Main header on card,
var_entity
- Temperature sensor for card,
var_icon
- Icon for room,
var_navigationPath
- Where to navigate when clicking the card,
var_color
- Color for icon background