Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106299

Looking for a way to implement a regex on the input_text with an option to randomize the numbers

$
0
0

Hey !

I’m using the input_text to set up a door lock using a custom publish via MQTT
looking for two things and could not find anything online that worked on my setup.

  1. A way to limit the number of characters and only allow numbers in the input text (it’s possible to setup a maximum number of digits in the input_text, but it allows the user to type whatever it wants, and will not update the entity, I was looking for a way to limit the input in the input procedure)

  2. a way to generate a random password with 6 digits (only numbers)

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106299

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>