-
I've found myself having to remind other users quite often what tap/hold/double_tap actions do and even forgetting myself at times. For some common use cases I've used the So an example scenario is light where I have the actions to defined to With a list of possible actions as the tap or hold action we could then present the user with a list that would allow them to get a lot more finer control without having to build more complicated UIs or add additional buttons for single tasks. So for example for a light my hold action could then present a list of additional actions such as: Turn On I don't know what would be the best way to present these, a dialog with a list of buttons perhaps? So your final config would be something like: type: button
entity: light.bed
tap_action:
action: toggle
hold_action:
action: list
actions:
- name: Turn On
action: call-service
service: light.turn_on
service_data:
entity_id: light.bed
- name: Turn Off
action: call-service
service: light.turn_off
service_data:
entity_id: light.bed
etc |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
While you move on from long press and double tap to the next thing, we have to keep maintaining it indefinitely. So let's think about if this is the right solution and format. Maybe the solution is that certain cards are not meant to do multiple things etc. |
Beta Was this translation helpful? Give feedback.
-
FWIW, I think this is a good idea that'd allow Home Assistant to reach a wider audience. It keeps the UI clean and simple because now you can replace six buttons with just one. And it makes the UX easier since now you don’t have to remember — or teach others — whether something was a tap, double tap, or hold action. You’d be getting the best of both worlds here, simplicity and flexibility. This would make it a lot more approachable for children, seniors, and those unfamiliar with Home Assistant. A lot of those people would struggle with “secret” undiscoverable long press actions, but everyone knows how to press a button and select an action from a list. Eliminates any guesswork/confusion and makes things foolproof. And I think this would really shine on wall mounted tablets and Home Assistant Cast. |
Beta Was this translation helpful? Give feedback.
#7464