bokub / rgb-light-card

💡 A Lovelace custom card for RGB lights
MIT License
408 stars 24 forks source link

Haptics support #29

Open agneevX opened 3 years ago

agneevX commented 3 years ago

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.

bokub commented 3 years ago

Hi,

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

agneevX commented 3 years ago

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

bokub commented 3 years ago

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

agneevX commented 3 years ago

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.

bokub commented 3 years ago

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

agneevX commented 3 years ago

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

agneevX commented 3 years ago

@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.