-
Notifications
You must be signed in to change notification settings - Fork 1
Getting Started
This guide walks you through creating your first button with Button Builder.
When you open Button Builder, you'll see a split-panel interface:
`
Button Builder [Import] [Copy YAML] [Presets]
Configuration Live Preview
Panel
Entity
Appearance Button
Effects Preview
Actions
Advanced
YAML Output
`
Drill-down navigation with categories:
- Entity - Select entity, configure name/icon/state display
- Appearance - Layout, colors, backgrounds, typography
- Effects - Animations, shadows, borders, glass effects
- Actions - Tap, hold, double-tap behaviors
- Advanced - Templates, variables, extra styles
- Live button preview - Updates in real-time
- Size slider - Test different button sizes
- ON/OFF toggle - Simulate entity states
- Canvas settings - Background color/image
- YAML output - Generated configuration
- Click into the Entity category
- Click on Core Settings
- Click the Entity ID dropdown
- Browse or search for your entity (e.g.,
light.living_room) - Select it - the preview updates immediately
- Click the Presets button in the header
- Browse the categories (try "Glass" or "Minimal")
- Click any preset to apply it
- The button preview updates with the new style
Make it your own:
- Change the icon: Entity Core Settings Icon
- Adjust colors: Appearance Colors Card Background
- Resize: Appearance Layout Card Height or Aspect Ratio
- Add animation: Effects Animations Icon Animation
- Click Copy YAML in the header
- The configuration is copied to your clipboard
- Paste it into your Home Assistant dashboard
- Edit your dashboard
- Click + Add Card
- Search for "Manual" or "Custom: Button Card"
- Paste the YAML from Button Builder
- Save
- Edit your dashboard in YAML mode
- Add a new card:
`yaml type: custom:button-card
entity: light.living_room name: Living Room icon: mdi:lightbulb
`
The preview includes state simulation buttons:
- ON - Shows how the button looks when entity is on
- OFF - Shows how the button looks when entity is off
This helps you design state-based styling without toggling real devices.
Use the size slider to test your button at different sizes:
- Buttons should look good from small (80px) to large (200px+)
- Test aspect ratios that match your dashboard layout
Click the **** icon to change the preview background:
- Solid colors (dark, light, custom)
- Your actual dashboard backgrounds (when running in HA)
- Custom uploaded images
- Click Presets in the header
- Categories appear as tabs/list
- Click any preset to apply
When a preset is active:
- The preset name shows: " Glassmorphism"
- Settings from the preset are tracked
- Modified settings show with edit indicator
Apply different presets for ON/OFF states:
- In the Presets panel, find Apply to State
- Choose: Always, ON State Only, OFF State Only
- Select different presets for each state
If you've modified a preset and want to restore it:
- Click the preset name in the header
- Select "Reset to Preset Defaults"
- Select your light entity
- Apply "Minimal Dark" preset
- Enable Auto Color to match light color
- Set Icon Animation to "glow" when ON
- Copy YAML
- Select your sensor entity
- Apply a minimal preset
- Disable Show Icon if not needed
- Enable Show State
- Add Units Override if needed
- Copy YAML
- Select your script entity
- Apply any style preset
- Go to Actions Tap Action
- Set action to "toggle" or "call-service"
- Copy YAML
- Select any entity (or leave blank)
- Apply an "Area Card" preset
- Set a custom Name for the area
- Choose an appropriate icon
- Set tap action to navigate to area view
- Copy YAML
Don't try to build from scratch. Apply a preset first, then customize.
The preview updates instantly - experiment freely!
Always check how your button looks in both ON and OFF states.
Copy your YAML frequently as you work. Browser refreshes can reset your config.
Test your buttons at smaller sizes - they should be touch-friendly.
- Configuration Options - Detailed reference for all settings
- Style Presets - Browse all available presets
- Actions and Interactions - Configure button behaviors
- Advanced Features - Templates, AI builder, and more
Getting Started
Configuration
Advanced
Help