custom-cards / custom-card-helpers

Custom Card Helper Functions/Types for Developers
https://custom-cards.github.io/custom-card-helpers/
MIT License
48 stars 28 forks source link

Haptics can't be disabled on android #61

Open bernikr opened 2 years ago

bernikr commented 2 years ago

Using the handleAction function with toggle or call_service on mobile can be very irritating because of the long vibrations / haptic feedback. On iOS it vibrates twice quickly (compared to once when toggling native entity cards) and on android it vibrates for around 0.5 seconds which can be very irritating.

Disabling vibrations in the Home Assistant settings on Android seems to have no effect on this.

This is so irritating that for me all cards using this helper are utterly useless at the moment.

bernikr commented 2 years ago

Also I think changing the haptic from "success" to "light" would be more consistent with native home assistant vibrations.

bernikr commented 2 years ago

related: home-assistant/android#2430

bernikr commented 2 years ago

More Context: This problem seems only to affect huawei users and might be caused by raising the haptic event on window instead of a lower DOM element like native HA cards do it.