You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Lovelace Button card for your entities.
16
16
## Features
17
17
18
18
- works with any toggleable entity
19
-
-3 actions on tap `none`, `toggle`, `more-info` and `call-service`
19
+
-5 actions on tap `none`, `toggle`, `more-info`, `navigate` and `call-service`
20
20
- state display (optional)
21
21
- custom color (optional), or based on light rgb value
22
22
- custom state definition with customizable color, icon and style (optional)
@@ -48,6 +48,7 @@ Lovelace Button card for your entities.
48
48
|`size`| string |`40%`|`20px`| Size of the icon. Can be percentage or pixel |
49
49
|`tap_action`| object | optional | See [Service](#Action)| Define the type of action, if undefined, toggle will be used. |
50
50
|`name`| string | optional |`Air conditioner`| Define an optional text to show below the icon |
51
+
|`show_name`| boolean |`true`|`true`\|`false`| Wether to show the name or not. Will pick entity_id's name by default, unless redefined in the `name` property or in any state `name` property |
51
52
|`show_state`| boolean |`false`|`true`\|`false`| Show the state on the card. defaults to false if not set |
52
53
|`show_icon`| boolean |`true`|`true`\|`false`| Wether to show the icon or not. Unless redefined in `icon`, uses the default entity icon from hass |
53
54
|`style`| object list | optional |`- text-transform: none`| Define a list of css attribute and their value to apply to the card |
@@ -70,6 +71,7 @@ Lovelace Button card for your entities.
|`operator`| string |`==`| See [Available Operators](#Available-operators)| The operator used to compare the current state against the `value`|
72
73
|`value`| string/number |**required** (unless operator is `default`) | If your entity is a sensor with numbers, use a number directly, else use a string | The value which will be compared against the current state of the entity |
74
+
|`name`| string | optional | Any string, `'Alert'`, `'My little switch is on'`, ... | if `show_name` is `true`, the name to display for this state. If undefined, uses the general config `name`, and if undefined uses the entity name |
73
75
|`icon`| string | optional |`mdi:battery`| The icon to display for this state. Defaults to the entity icon. Hide with `show_icon: false`|
74
76
|`color`| string |`var(--primary-text-color)`| Any color, eg: `rgb(28, 128, 199)` or `blue`| The color of the icon (if `color_type: icon`) or the background (if `color_type: card`) |
75
77
|`style`| string | optional | Any CSS style. If nothing is specified, the main style is used unless undefined. If you want to override the default style of the main part of the config, use `style: []`| Define a list of css attribute and their value to apply to the card |
@@ -357,6 +359,7 @@ The `navigation_path` also accepts any Home Assistant internal URL such as /dev-
0 commit comments