UI icon indicating copy to clipboard operation
UI copied to clipboard

Add haptic feedback

Open jeffconrad18 opened this issue 2 years ago • 8 comments

Hey, can we add Haptics to all of the cards? It would look like this:

tap_action:
  haptic: light

Or maybe optionally with a variable!? That would be very useful, so that you don't accidentally switch things on and off.

jeffconrad18 avatar Jul 09 '22 11:07 jeffconrad18

Has this been solved with the 1.1.0 update? I am not getting haptic with my button presses.

mdb17 avatar Aug 08 '22 22:08 mdb17

Hi @mdb17,

It's already available in the current release. See https://ui-lovelace-minimalist.github.io/UI/setup/custom_actions/ for more information.

matrixx567 avatar Aug 09 '22 18:08 matrixx567

I have added the haptic actions to my ulm_custom_actions.yaml file and some button are providing haptic while others are not. Should all be working?

mdb17 avatar Aug 09 '22 20:08 mdb17

@mdb17

Which cards aren't working? Most of the internal cards should already work.

matrixx567 avatar Aug 10 '22 16:08 matrixx567

The stock cards that I am not getting haptics with are: card_person, card_script', card_vertical_buttonandchip_back`. Is there something else i need to configure to get it all working?

I am also not getting haptics on custom_card_esh_room or custom_card_esh_welcom though I suspect something has to be done to those cards to enable it.

mdb17 avatar Aug 10 '22 21:08 mdb17

@mdb17

These cards don't support the custom actions yet.

You can simply add the haptic support to your cards: Overwrite the tap action within your configuration for the specific cards.

tap_action:
  haptic: "medium"

matrixx567 avatar Aug 10 '22 21:08 matrixx567

edited, it is working. Thank you for the help!

Is it possible to do that same thing for the custom cards?

mdb17 avatar Aug 10 '22 21:08 mdb17

Hi @mdb17

The whole "theme" is based on the Custom Button Cards. It is possible to overwrite each element of the used template. See the docs of the Custom Button Cards for more details.

matrixx567 avatar Aug 11 '22 08:08 matrixx567