Haptic Feedback on Android 13 with custom button not working

So I set up a simple button. When I toggle the button in the app, I want to give it a very short vibration, like the default buttons or the mushroom buttons. So it’s possible, but I don’t know how to make it work.

Here’s what I have:

type: custom:button-card
entity: light.nous_a1z_1_switch
icon: mdi:toggle-switch
color_type: icon
color: orange
size: 35px
name: Flur
show_name: true
show_state: false
layout: icon_name_state
action:
  haptic: light
styles:
  name:
    - font-size: 13px
    - font-weight: regular
    - justify-self: start
state:
  - value: 'off'
    icon: mdi:toggle-switch-off
    styles:
      icon:
        - color: grey

I don’t really know where to put the haptic instruction or what to do with the action part since there are no examples in the custom button documentation. Maybe someone knows how to do this properly - thanks in advance!

Check their GitHub page they go into detail on everything.

Thanks for replying. Yes, they go into detail, but they don’t provide any examples on this specific functionality.

However, I was able to find the solution within a feature request on the Github discussion page, which looks like this:

type: custom:button-card
entity: <your-entity-id>
tap_action:
  action: toggle
  haptic: selection
hold_action:
  action: more-info

I tried it and it worked perfectly. Maybe that’s useful for someone, so I’ll just leave it here.