A community driven boilerplate of best practices for Home Assistant Lovelace custom cards
![hacs_badge](https://camo.githubusercontent.com/b489e7a98c85fff6d35cc9e89b0702bc43a05710c292da09f78f652181ee9ef8/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f484143532d44656661756c742d6f72616e67652e7376673f7374796c653d666f722d7468652d6261646765)
![GitHub Activity](https://camo.githubusercontent.com/a20bf32fd14a1899e39afff7001ee90a3e3240ca5f750842cd7ee53b80ec4c40/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636f6d6d69742d61637469766974792f792f637573746f6d2d63617264732f626f696c6572706c6174652d636172642e7376673f7374796c653d666f722d7468652d6261646765)
Name |
Type |
Requirement |
Description |
Default |
type |
string |
Required |
custom:AirPurifier-card |
|
name |
string |
Optional |
Card name |
AirPurifier |
show_error |
boolean |
Optional |
Show what an error looks like for the card |
false |
show_warning |
boolean |
Optional |
Show what a warning looks like for the card |
false |
entity |
string |
Optional |
Home Assistant entity ID. |
none |
tap_action |
object |
Optional |
Action to take on tap |
action: more-info |
hold_action |
object |
Optional |
Action to take on hold |
none |
double_tap_action |
object |
Optional |
Action to take on hold |
none |
Name |
Type |
Requirement |
Description |
Default |
action |
string |
Required |
Action to perform (more-info, toggle, call-service, navigate url, none) |
more-info |
navigation_path |
string |
Optional |
Path to navigate to (e.g. /lovelace/0/) when action defined as navigate |
none |
url |
string |
Optional |
URL to open on click when action is url. The URL will open in a new tab |
none |
service |
string |
Optional |
Service to call (e.g. media_player.media_play_pause) when action defined as call-service |
none |
service_data |
object |
Optional |
Service data to include (e.g. entity_id: media_player.bedroom) when action defined as call-service |
none |
haptic |
string |
Optional |
Haptic feedback for the Beta IOS App success, warning, failure, light, medium, heavy, selection |
none |
repeat |
number |
Optional |
How often to repeat the hold_action in milliseconds. |
non |