custom-cards / button-card

❇️ Lovelace button-card for home assistant
MIT License
1.93k stars 233 forks source link

Haptic on mobile app/browser doesn't work when combine with "action: navigate" #760

Open vu-the-dung opened 1 year ago

vu-the-dung commented 1 year ago

Checklist

Describe the bug When i set tap_action as "action: navigate", haptic doesn't work, i tried with all haptic options

Version of the card Version: v4.1.1

To Reproduce This is the configuration I used:

type: custom:button-card
entity: fan.bedroom_fan
tap_action:
  haptic: light
  action: navigate
  navigation_path: /lovelace/fan
hold_action:
  action: toggle
  haptic: light

Screenshots If applicable, add screenshots to help explain your problem.

Expected behavior A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

ASNNetworks commented 1 year ago

Can confirm haptic has more issues, also on latest dev build 4.1.2-dev.1

For example:

No haptic when using navigate. No haptic when using more-info. No failure or heavy haptic, it just gives medium feedback.

Seems all haptic is medium and only possible with toggle or service-calls.