{"id":13577159,"url":"https://github.com/custom-cards/button-card","last_synced_at":"2026-02-14T19:01:17.656Z","repository":{"id":33197431,"uuid":"146194325","full_name":"custom-cards/button-card","owner":"custom-cards","description":"❇️ Lovelace button-card for home assistant","archived":false,"fork":false,"pushed_at":"2025-11-10T14:36:48.000Z","size":18505,"stargazers_count":2298,"open_issues_count":8,"forks_count":277,"subscribers_count":42,"default_branch":"master","last_synced_at":"2025-11-10T15:18:23.255Z","etag":null,"topics":["home-assistant","home-assistant-custom","home-automation","lovelace","lovelace-ui"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/custom-cards.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2018-08-26T15:50:44.000Z","updated_at":"2025-11-10T14:34:12.000Z","dependencies_parsed_at":"2024-01-05T20:58:07.413Z","dependency_job_id":"99add45b-a03f-4712-9626-128a5ffbcdea","html_url":"https://github.com/custom-cards/button-card","commit_stats":null,"previous_names":["kuuji/button-card"],"tags_count":134,"template":false,"template_full_name":null,"purl":"pkg:github/custom-cards/button-card","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fbutton-card","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fbutton-card/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fbutton-card/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fbutton-card/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/custom-cards","download_url":"https://codeload.github.com/custom-cards/button-card/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/custom-cards%2Fbutton-card/sbom","scorecard":{"id":313089,"data":{"date":"2025-08-11","repo":{"name":"github.com/custom-cards/button-card","commit":"2562b84360114ab6b4e9305c91503d47b2693957"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":4,"reason":"0 commit(s) and 5 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:40: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/custom-cards/button-card/release.yml/master?enable=pin","Info:   0 out of   9 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v4.1.2 not signed: https://api.github.com/repos/custom-cards/button-card/releases/139479728","Warn: release artifact v4.1.2-dev.2 not signed: https://api.github.com/repos/custom-cards/button-card/releases/139470804","Warn: release artifact v4.1.2-dev.1 not signed: https://api.github.com/repos/custom-cards/button-card/releases/117918865","Warn: release artifact v4.1.1 not signed: https://api.github.com/repos/custom-cards/button-card/releases/114968346","Warn: release artifact v4.1.0 not signed: https://api.github.com/repos/custom-cards/button-card/releases/114959021","Warn: release artifact v4.1.2 does not have provenance: https://api.github.com/repos/custom-cards/button-card/releases/139479728","Warn: release artifact v4.1.2-dev.2 does not have provenance: https://api.github.com/repos/custom-cards/button-card/releases/139470804","Warn: release artifact v4.1.2-dev.1 does not have provenance: https://api.github.com/repos/custom-cards/button-card/releases/117918865","Warn: release artifact v4.1.1 does not have provenance: https://api.github.com/repos/custom-cards/button-card/releases/114968346","Warn: release artifact v4.1.0 does not have provenance: https://api.github.com/repos/custom-cards/button-card/releases/114959021"],"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'","Warn: branch protection not enabled for branch 'dev'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 1 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"23 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-h5c3-5r3r-rr8q","Warn: Project is vulnerable to: GHSA-rmvr-2pp2-xj38","Warn: Project is vulnerable to: GHSA-xx4v-prfh-6cgc","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22","Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-hj9c-8jmm-8c52","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-x2pg-mjhr-2m5x","Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T23:33:34.652Z","repository_id":33197431,"created_at":"2025-08-17T23:33:34.652Z","updated_at":"2025-08-17T23:33:34.652Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29452584,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-14T15:52:44.973Z","status":"ssl_error","status_checked_at":"2026-02-14T15:52:11.208Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["home-assistant","home-assistant-custom","home-automation","lovelace","lovelace-ui"],"created_at":"2024-08-01T15:01:18.667Z","updated_at":"2026-02-14T19:01:17.649Z","avatar_url":"https://github.com/custom-cards.png","language":"TypeScript","funding_links":[],"categories":["JavaScript","others","Dashboard Cards"],"sub_categories":["📐 Layout helpers"],"readme":"# Button Card by [@RomRider](https://github.com/RomRider) \u003c!-- omit in toc --\u003e\n\n[![Stable][releases-shield]][releases] [![Beta][releases-dev-shield]][releases-dev] [![HACS Badge][hacs-badge]][hacs-link] ![Project Maintenance][maintenance-shield] \u003cbr/\u003e ![Downloads][downloads] [![GitHub Activity][commits-shield]][commits] [![License][license-shield]](LICENSE.md) [![Discord][discord-shield]][discord] [![Community Forum][forum-shield]][forum]\n\n[commits-shield]: https://img.shields.io/github/commit-activity/y/custom-cards/button-card.svg\n[commits]: https://github.com/custom-cards/button-card/commits/master\n[discord]: https://discord.gg/Qa5fW2R\n[discord-shield]: https://img.shields.io/discord/330944238910963714.svg\n[forum-shield]: https://img.shields.io/badge/community-forum-brightgreen.svg\n[forum]: https://community.home-assistant.io/t/lovelace-button-card/65981\n[license-shield]: https://img.shields.io/github/license/custom-cards/button-card.svg\n[maintenance-shield]: https://img.shields.io/maintenance/yes/2025.svg\n[releases-shield]: https://img.shields.io/github/release/custom-cards/button-card.svg\n[releases]: https://github.com/custom-cards/button-card/releases/latest\n[releases-dev-shield]: https://img.shields.io/github/package-json/v/custom-cards/button-card/dev?label=release%40dev\n[releases-dev]: https://github.com/custom-cards/button-card/releases\n[hacs-badge]: https://img.shields.io/badge/HACS-Default-41BDF5.svg\n[downloads]: https://img.shields.io/github/downloads/custom-cards/button-card/total\n[hacs-link]: https://hacs.xyz/\n\n# Useful links\n\n- [Stable version documentation](https://custom-cards.github.io/button-card/)\n- [Dev version documentation](https://custom-cards.github.io/button-card/dev/)\n- [HA Discord][discord]\n- [button-card forum thread][forum]\n\n# What is `custom:button-card`?\n\nThis is a lovelace custom card called button-card for your entities with a **LOT** of configuration options.\n\n![all](examples/all.gif)\n\n- works with any entity\n- 6 available actions on **tap** and/or **hold** and/or **double click**: `none`, `toggle`, `more-info`, `navigate`, `url`, `assist` and `call-service`\n- **icon tap action**: Separate action when clicking the icon specifically which takes precedence over main card actions.\n- **momentary actions** for the card and/or icon: `press_action` and `release_action` (if used, replaces default actions)\n- 3 button-card custom actions: `javascript`, `multi-actions`, `toast`\n- state display (optional)\n- custom color (optional), or based on light rgb value/temperature\n- custom state definition with customizable color, icon and style\n- custom size of the icon, width and height\n- aspect ratio support\n- Support for javascript templates\n- custom icon\n- custom css style\n- multiple layout support and custom layout support\n- units for sensors can be redefined or hidden\n- 2 color types\n  - `icon` : apply color settings to the icon only\n  - `card` : apply color settings to the card only\n- automatic font color if `color_type` is set to `card`\n- blank card and label card (for organization)\n- Native blink animation support\n- icon rotation animation support\n- confirmation popup for sensitive items or locking mecanism\n- password or PIN protection for actions\n- haptic support for the [IOS companion App](https://companion.home-assistant.io/docs/integrations/haptics)\n- support for [HACS](https://github.com/hacs/integration)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-cards%2Fbutton-card","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustom-cards%2Fbutton-card","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustom-cards%2Fbutton-card/lists"}