rgb-light-card icon indicating copy to clipboard operation
rgb-light-card copied to clipboard

Haptics support

Open agneevX opened this issue 3 years ago • 7 comments

Hi!

Love your card. Its perfect for my lamps. However its missing haptic support.

I would appreciate it very much if you could add it, thanks.

agneevX avatar Oct 08 '20 07:10 agneevX

Hi,

Do you know any custom card which implement haptic support? That would help a lot

bokub avatar Oct 08 '20 09:10 bokub

button-card - https://github.com/custom-cards/button-card/pull/123

agneevX avatar Oct 08 '20 10:10 agneevX

That's a great idea ! However, the example you gave me only has haptic support for iOS.

I personally own an Android, and I have no idea if it's possible for Android devices

bokub avatar Oct 08 '20 11:10 bokub

You can more info here: https://companion.home-assistant.io/docs/integrations/haptics/

Haptics don't exist on Android but I remember reading about some sort of vibration on Android.

agneevX avatar Oct 08 '20 14:10 agneevX

I won't be able to code this as I don't have an Apple device to test, but I'll leave this issue open in case someone wants to give it a try

bokub avatar Oct 11 '20 16:10 bokub

@bokub I'm willing to test this, if you're up for it

agneevX avatar Oct 11 '20 17:10 agneevX

@bokub vibrations should work on Android with:

tap_action:
  haptic: medium
  action: more-info

Hopefully if https://github.com/home-assistant/android/issues/1091 is resolved, haptics should work on Pixel devices, which IIRC support haptics on Android.

agneevX avatar Oct 22 '20 14:10 agneevX