dawiddutoit/custom-claude/ha-button-cards
Claude Code and agent skill by dawiddutoit/custom-claude
- community
Checking that the SKILL.md file is still in the repository.
Creates and configures Home Assistant button cards with actions (tap, hold, double-tap), service calls, navigation, and custom button-card (HACS) with templating and state-based styling. Use when asked to "create button card", "add service call button", "configure tap actions", or "customize button appearance".
Install
npx vskill@latest install dawiddutoit/custom-claude/ha-button-cardsSKILL.md
Works with Lovelace YAML dashboards and custom button-card integration.
Home Assistant Button Cards
Create interactive buttons for controlling devices, calling services, and navigating between views in Home Assistant dashboards.
Overview
This skill covers:
- Native Button Card: Simple entity controls with actions
- Custom Button Card (HACS): Advanced templating, state-based styling, multiple actions
- Action Types: tap, hold, double-tap behaviors
- Service Calls: Execute Home Assistant services
- Navigation: Move between dashboard views
- State-Based Styling: Dynamic colors and icons
When to Use This Skill
Use this skill when you need to:
- Create interactive buttons for toggling lights, switches, or climate controls
- Add service call buttons to execute automations or scripts
- Configure tap, hold, and double-tap actions for different behaviors
- Build navigation buttons to move between dashboard views
- Implement state-based styling with dynamic colors and icons
- Use custom button-card (HACS) for advanced templating and conditional logic
Do NOT use when:
- You only need to display sensor values without interaction (use entity card instead)
- Building complex multi-entity cards (use entities card or custom layouts)
Quick Start
Basic Toggle Button
Service Call Button
Navigation Button
Action Types
Home Assistant cards support three action types:
| Action | Trigger | Use Case | |
|---|---|---|---|
tap_action | Single tap/click | Primary action (toggle, navigate, service call) | |
hold_action | Press and hold 0.5s+ | Secondary action (more-info, different service) | |
double_tap_action | Two quick taps | Tertiary action (navigate, custom service) |
Available Actions
| Action | Description | Example Use | |
|---|---|---|---|
none | Do nothing | Disable interaction | |
toggle | Toggle entity on/off | Lights, switches | |
more-info | Show entity details dialog | View sensor history | |
navigate | Go to another view/dashboard | Room navigation | |
url | Open external URL | Documentation, web apps | |
perform-action (was call-service) | Execute HA service | Scripts, automations, scenes | |
assist | Trigger voice assistant | Voice commands |
Instructions
Using Native Button Card
The native button card provides basic entity control with action support.
Entity Toggle Button
Climate Control Button
Scene Activation Button
Script Execution Button
External URL Button
Assist/Voice Button
Service Calls
Turn Off All Lights
Set Climate Temperature
Turn On Light with Brightness
Run Automation
Navigation Patterns
Simple Navigation
Room Navigation Grid
Back to Home Button
Custom Button Card (HACS)
Installation: HACS → Frontend → Search "button-card"
The custom button-card provides extensive templating, state-based styling, and advanced action configurations. For complete template examples and advanced patterns, see references/custom-button-card-templates.md.
Basic Custom Button
State-Based Styling
See references/custom-button-card-templates.md for advanced examples including temperature thresholds, multiple service calls, and icon-specific tap actions.
Troubleshooting
Button Not Responding
- Check entity exists in HA (Developer Tools → States)
- Verify service name is correct (
perform-actionnotcall-servicein newer HA) - Check browser console for errors (F12)
Service Call Fails
- Test service in Developer Tools → Services first
- Verify entity_id or target format
- Check service data syntax (YAML indentation)
Navigation Not Working
- Ensure view path is defined (e.g.,
path: bedroom) - Use full navigation path:
/lovelace/bedroom - Check for typos in navigation_path
Custom Button Card Not Loading
- Verify HACS installation (Frontend category)
- Clear browser cache (Ctrl+Shift+R)
- Check Lovelace resources (Settings → Dashboards → Resources)
References
For advanced configurations, see:
- references/action-reference.md - Complete action type documentation
- references/service-calls.md - Common service call patterns
- references/custom-button-card-templates.md - Reusable button templates
Official Documentation
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ha-button-cards/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawiddutoit/custom-claude/ha-button-cards)