Nerwyn / android-tv-card

A completely customizable universal remote card for Home Assistant. Supports multiple platforms out of the box.
Apache License 2.0
254 stars 13 forks source link

Keyboard and international characters (Swedish in my case). #61

Open mindtripper opened 9 months ago

mindtripper commented 9 months ago

Checklist:

Release with the issue: Latest at the time of posting.

Last working release (if known): Unknown. Only tested with current version,

Browser and Operating System: iPhone iOS latest version

Description of problem: When using the keyboard function, I can only get English characters sent to my CCwGT. Being Swedish it would be great if "å, ä, ö" can be sent as well. Allowing searching for Swedish content. But when typing these characters on my iPhone nothing happens on the CCwGT. Note: CCwGT is set to Swedish language and the on-screen keyboard displays the special characters.

Javascript errors shown in the web inspector (if applicable):

Your Full Remote Config

Additional information:

Nerwyn commented 9 months ago

I'm able to recreate the issue on my end. I think this may be a limitation with adb since this card should just be sending the input character to the TV via adb. If I try calling adb.send_command from the services developer tool with command input text "ä" it says it is sent successfully but it doesn't show up on the TV. I am able to send accented characters via the Google TV app.

Looking online I do see other people running into the same issue but not any solutions I can implement. This may be something that isn't fixable until sending text via the Android Remote API is reversed engineered and added to the Home Assistant integration.

Nerwyn commented 9 months ago

Note to self: look into performance of https://github.com/senzhk/ADBKeyBoard

Edit: While this keyboard does work, it takes over the whole screen and isn't a good user experience on Android TV.