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

Pin as numeric keypad #62

Closed
criticallimit opened this issue Oct 11, 2021 · 23 comments · Fixed by #115
Closed

Pin as numeric keypad #62

criticallimit opened this issue Oct 11, 2021 · 23 comments · Fixed by #115
Labels
enhancement New feature or request

Comments

@criticallimit
Copy link
Contributor

I´m using a wall mounted ipad for HA and protect some switches with restriction-card.
Whenever I unlock a switch with a pin protection the normal keyboard appears because it expects text (I think).
Would be very nice that only the numneric keypad would be opened for numbers input.

Can I change this? whenever a numeric pin is needed, the numeric keypad will open instead of the normal big keypad?

thanx

@flixlix
Copy link

flixlix commented Jan 28, 2022

I would also like this feature. I have two wall mounted Fire Tablet 10 running Fully Kiosk Browser, and at the moment, it's not very user friendly to always change to numerica keypads. I'm available for testing

@johntdyer
Copy link

@flixlix did you ever find a solution for your tablet?

@johntdyer
Copy link

@iantrich any thoughts on where this stacks up on the roadmap for this project ? Wish I was capable with CSS otherwise I would give it a go myself...

@johntdyer
Copy link

@iantrich also tried to buy you some coffees but link on this repo is broken...

@eric1905
Copy link

I would also be glad if it is possible to define a parameter like numeric and then I can input numbers directly instead of first switching to numbers

@johntdyer
Copy link

This feature is so needed !!

@vazquezjm
Copy link

Please, make it happen! 🙏

@swampylee
Copy link

I agree. This would be awesome if it were available.

@Fusseldieb
Copy link

Fusseldieb commented Nov 8, 2023

This is not possible with a vanilla JS input dialog. Also no amount of CSS will fix this, unfortunately.

Meaning that iantrich would need to implement a third-party dialog, which could get messy very quick.

A workaround is to download GBoard on your wall tablet. GBoard usually stays in the last keyboard position, eg. if you typed numbers, it'll stay on the number pad even after closed.
Or, just download a keyboard from the Play Store that defaults to numbers, or just have numbers. If you need to type something, you can always switch back to your full keyboard using the "Keyboard switcher" (natively on Android) by choosing another keyboard in the status bar.

@ildar170975 ildar170975 added the enhancement New feature or request label Jan 16, 2024
@ildar170975
Copy link
Collaborator

I wonder if it is possible to use a standard HA keypad?
home-assistant/frontend#19969

@fiste788
Copy link

implemented in #115

@eric1905
Copy link

eric1905 commented Aug 1, 2024

Great work, thank you. Let's hope that there will be a new release soon.

@eric1905
Copy link

eric1905 commented Aug 7, 2024

@fiste788
As there is no progress, do I have any possibility to already use it in my home assistance instance.

@fiste788
Copy link

fiste788 commented Aug 7, 2024

@fiste788
As there is no progress, do I have any possibility to already use it in my home assistance instance.

You can Copy and paste the content of restriction-card.ts in your installation of home assistant and then gzip the file

@eric1905
Copy link

@fiste788
As there is no progress, do I have any possibility to already use it in my home assistance instance.

You can Copy and paste the content of restriction-card.ts in your installation of home assistant and then gzip the file

Do I have to enable your implementation? I gzipped the file and replaced the 2 existing files in www/community/restriction-card with restriction-card.js and restriction-card.js.gz but it looks still like the same

@ildar170975 ildar170975 linked a pull request Jan 13, 2025 that will close this issue
@ildar170975
Copy link
Collaborator

Solved in #115
All credits to @fiste788

@johntdyer
Copy link

@fiste788 you are my hero ! Thank you

@saoescape
Copy link

saoescape commented Jan 28, 2025

Image
Hi, how can I activate the screen for the pin as in the picture?

@ildar170975
Copy link
Collaborator

how can I activate the screen for the pin as in the picture?

This dialog is shown when a pin input is needed.

@Nisbo
Copy link

Nisbo commented Jan 30, 2025

how can I activate the screen for the pin as in the picture?

This dialog is shown when a pin input is needed.

I updated to 1.2.15, cleared the cache but I still get the JavaScript prompt

@ildar170975
Copy link
Collaborator

but I still get the JavaScript prompt

Please post a screenshot.
Also, press F12 to get a Code Inspector (or whatever it is called in your browser) to check what version of a card is used.

@Nisbo
Copy link

Nisbo commented Jan 31, 2025

Image

Version:

Image

Browser: Firefox 134.0.2 (64-Bit)

@Nisbo
Copy link

Nisbo commented Jan 31, 2025

Ups, I think I am using an other addon

card:
  type: custom:love-lock-card
  popup: password
  password: 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

12 participants