Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

restriction-card

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restriction-card

Lovelace restriction-card

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Restriction Card

A community driven restriction of best practices for Home Assistant Lovelace custom cards

GitHub Release License

Project Maintenance GitHub Activity

Discord Community Forum

Options

NameTypeRequirementDescriptionDefault
typestringRequiredcustom:restriction-card
namestringOptionalCard nameRestriction
show_errorbooleanOptionalShow what an error looks like for the cardfalse
show_warningbooleanOptionalShow what a warning looks like for the cardfalse
entitystringOptionalHome Assistant entity ID.none
tap_actionobjectOptionalAction to take on tapaction: more-info
hold_actionobjectOptionalAction to take on holdnone

Action Options

NameTypeRequirementDescriptionDefault
actionstringRequiredAction to perform (toggle-menu, more-info, toggle, call-service, navigate url, none)toggle-menu for menu and more-info for items
navigation_pathstringOptionalPath to navigate to (e.g. /lovelace/0/) when action defined as navigatenone
urlstringOptionalURL to open on click when action is url. The URL will open in a new tabnone
servicestringOptionalService to call (e.g. media_player.media_play_pause) when action defined as call-servicenone
service_dataobjectOptionalService data to include (e.g. entity_id: media_player.bedroom) when action defined as call-servicenone
hapticstringOptionalHaptic feedback for the Beta IOS App success, warning, failure, light, medium, heavy, selectionnone

Starting a new card from restriction-card

Step 1

Clone this repo

Step 2

Install necessary modules yarn install or npm install

Step 3

Do a test lint & build on the project. You can see available scripts in the package.json npm run build

Step 4

Customize to suit your needs and contribute it back to the custom-cards org

Troubleshooting

Keywords

FAQs

Package last updated on 16 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc