Nerwyn / android-tv-card

Universal Customizable TV Remote Card, with HA actions, super configurable touchpad, slider, haptics, and keyboard
Apache License 2.0
183 stars 9 forks source link

AppleTV keyboard #45

Open jdemarc2 opened 6 months ago

jdemarc2 commented 6 months ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like Can you add a keyboard for appleTV

Describe alternatives you've considered Using the appletv remote on my iphone which supports keyboard use

Additional context Add any other context or screenshots about the feature request here.

Nerwyn commented 6 months ago

In order to add Apple TV support the Home Assistant Apple TV integration has to support sending text. Currently it does not, but the underlying package it uses does. Someone made a feature request thread about adding keyboard support to the Apple TV integration a few months ago but no one else responded.

Until keyboard support gets added to the Apple TV integration, adding Apple TV keyboard support to this card is not possible.

houser42 commented 6 months ago

An obvious workaround if you are on iOS is to have a button to open the Apple TV remote from within the HA app as that functionality is of course in there. Well, that is what I do here in waiting for this feature which would be nice. But probably just stating the bleeding obvious.

Cha40s commented 6 months ago

@houser42 would you mind to share your code with the button for Appetv Keyboard integrated. would appreciate. I can remember I did similar with app:tvremote or something like that.

houser42 commented 6 months ago

Of course @Cha40s . Below is the code for a button in my HA remote that opens the Apple TV remote on an iOS device: Best wishes for 2024!

      - show_name: false
        show_icon: true
        type: button
        tap_action:
          action: url
          url_path: tvremote://
        icon: mdi:remote
        icon_height: 24px

... and here is also the code for a button that opens the Apple Music app if you need that too:


      - show_name: false
        show_icon: true
        type: button
        tap_action:
          action: url
          url_path: music://
        icon: mdi:music
        icon_height: 24px