iantrich / restriction-card

🔒 Apply restrictions to Lovelace cards
MIT License
254 stars 22 forks source link

Pin as numeric keypad #62

Open criticallimit opened 2 years ago

criticallimit commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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

johntdyer commented 1 year ago

@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 commented 1 year ago

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

eric1905 commented 1 year ago

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 commented 1 year ago

This feature is so needed !!

vazquezjm commented 9 months ago

Please, make it happen! 🙏

swampylee commented 9 months ago

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

Fusseldieb commented 8 months ago

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 commented 2 months ago

I wonder if it is possible to use a standard HA keypad? https://github.com/home-assistant/frontend/pull/19969