Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not enter alphanumeric pin in Home Assistant app on android #143

Closed
2 tasks done
StefanGit22 opened this issue Feb 6, 2025 · 10 comments
Closed
2 tasks done

Can not enter alphanumeric pin in Home Assistant app on android #143

StefanGit22 opened this issue Feb 6, 2025 · 10 comments
Labels
bug Something isn't working

Comments

@StefanGit22
Copy link

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue: latest (1.2.15)

Last working release (if known): 1.2.13

Browser and Operating System: Android 15, Home Assistant app

Description of problem:

Since the update of the restriction cart to 1.2.15 i can no longer enter an alphanumeric pin in the Home Assistant app on an android 15 smartphone.
I have set my code to a more secure alphanumerikal code (eg. 12a@) but since 1.2.15 i can no longer input my set code because the app only offers me a numbers keyboard (and the numbers touch field).

I can not find an option to get the old behavior back and i would like to keep my more secure code (on PC it´s not an issue becouse i have my normal keyboard).

Mabey this could be an option in the pin options to either use only numbers, then the new input should be shown or use the old input if you want to use more than numbers.

My Card Config:

type: custom:restriction-card
restrictions:
  confirm: null
  pin:
    code: 1@23
card:
  type: button
  show_name: true
  show_icon: true
  tap_action:
    action: toggle
  entity: lock.haustur
  hold_action:
    action: none

@StefanGit22 StefanGit22 added the bug Something isn't working label Feb 6, 2025
@ildar170975
Copy link
Collaborator

I see. Will think about a solution.

@ildar170975
Copy link
Collaborator

Usually PINs are numbers. So, it was not supposed to contain letters. Anyway, will think about it.

@ildar170975
Copy link
Collaborator

ildar170975 commented Feb 11, 2025

Well, on mobile clients or other touchscreen devices it is easier to use a numeric keypad like it was done recently.
Showing a simple input box (allowing to input anything) can only be implemented with some additional option like show_legacy_inputbox: if true -> then show an old popup, otherwise show a numeric keypad.

@StefanGit22
Copy link
Author

Hi ildar,
this would work great for me.
Just one idea: insted of legacy it could be named somthing like show_alpha_numerik_inputbox or show_full_keyboard, because legacy is not realy desctiptiv in my opinion.

@ildar170975
Copy link
Collaborator

Note that the old popup does not have any keyboard - it is just a popup with a simple input-box.
I will think about possible alternatives for "legacy".

@StefanGit22
Copy link
Author

Yeah i know, on touch devices, the keyboard will automaticly appear.

Thank you very much for your work on this card.

@ildar170975
Copy link
Collaborator

ildar170975 commented Feb 14, 2025

Asking just in case to be sure:
Do you mean that you cannot see an input field here with Andriod?

Image

Asking because I still cannot believe that such a fundamental thing used in alarm_control_panel does not work on Android.

@StefanGit22
Copy link
Author

I can see this input panel, and if i click in the Code-field a secound keyboard (my touch keyboard, first picture) appears, but because it is inputmode="numeric" (in its html tag) the keyboard has only numbers, the old input field would display a full keyboard (second picture) and thats the reason i cant input other chars.

Input Mode numeric

Old Input Mode

@ildar170975
Copy link
Collaborator

Try 1.2.16

@StefanGit22
Copy link
Author

tryed 1.2.16, works perfectly, thank you very much for your effort.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants