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
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -58,7 +58,7 @@ Lovelace Button card for your entities.
58
58
## Features
59
59
60
60
- works with any toggleable entity
61
-
- 6 available actions on **tap** and/or **hold** and/or **double click**: `none`, `toggle`, `more-info`, `navigate`, `url` and `call-service`
61
+
- 6 available actions on **tap** and/or **hold** and/or **double click** and/or **press**and/or **release**: `none`, `toggle`, `more-info`, `navigate`, `url` and `call-service`
62
62
- state display (optional)
63
63
- custom color (optional), or based on light rgb value/temperature
64
64
- custom state definition with customizable color, icon and style (optional)
@@ -98,6 +98,8 @@ Lovelace Button card for your entities.
98
98
|`tap_action`| object | optional | See [Action](#Action)| Define the type of action on click, if undefined, toggle will be used. |
99
99
|`hold_action`| object | optional | See [Action](#Action)| Define the type of action on hold, if undefined, nothing happens. |
100
100
|`double_tap_action`| object | optional | See [Action](#Action)| Define the type of action on double click, if undefined, nothing happens. |
101
+
|`press_action`| object | optional | See [Action](#Action)| Define the type of action on press (triggers the moment your finger presses the button), if undefined, nothing happens. |
102
+
|`release_action`| object | optional | See [Action](#Action)| Define the type of action on releasing the button, if undefined, nothing happens. |
101
103
|`name`| string | optional |`Air conditioner`| Define an optional text to show below the icon. Supports templates, see [templates](#javascript-templates)|
102
104
|`state_display`| string | optional |`On`| Override the way the state is displayed. Supports templates, see [templates](#javascript-templates)|
103
105
|`label`| string | optional | Any string that you want | Display a label below the card. See [Layouts](#layout) for more information. Supports templates, see [templates](#javascript-templates)|
0 commit comments