mirror of
https://github.com/esphome/esphome.git
synced 2025-11-02 16:11:53 +00:00
Add text component (#5336)
Co-authored-by: Maurits <maurits@vloop.nl> Co-authored-by: mauritskorse <mauritskorse@gmail.com> Co-authored-by: Daniel Dunn <dannydunn@eternityforest.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -795,7 +795,23 @@ switch:
|
||||
value: !lambda |-
|
||||
return {0x13, 0x37};
|
||||
|
||||
|
||||
esp32_ble_server:
|
||||
id: ble
|
||||
manufacturer_data: [0x72, 0x4, 0x00, 0x23]
|
||||
|
||||
text:
|
||||
- platform: template
|
||||
name: My Text
|
||||
id: my_text
|
||||
min_length: 0
|
||||
max_length: 20
|
||||
mode: text
|
||||
pattern: "[a-z]+"
|
||||
optimistic: true
|
||||
restore_value: true
|
||||
initial_value: "Hello World"
|
||||
- platform: copy
|
||||
name: My Text Copy
|
||||
id: my_text_copy
|
||||
source_id: my_text
|
||||
mode: password
|
||||
|
||||
Reference in New Issue
Block a user