1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

add key collector component (#4242)

Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
Samuel Sieb
2023-01-16 20:18:34 -08:00
committed by GitHub
parent efc6a8df35
commit 1bb90f304c
6 changed files with 272 additions and 2 deletions

View File

@@ -168,14 +168,22 @@ binary_sensor:
sn74hc165: sn74hc165_hub
number: 0
- platform: ezo_pmp
pump_state:
name: "Pump State"
is_paused:
name: "Is Paused"
- platform: matrix_keypad
keypad_id: keypad
id: key4
row: 1
col: 1
- platform: matrix_keypad
id: key1
key: 1
tlc5947:
data_pin: GPIO12
clock_pin: GPIO14
@@ -558,3 +566,21 @@ sn74hc165:
load_pin: GPIO27
clock_inhibit_pin: GPIO26
sr_count: 4
matrix_keypad:
id: keypad
rows:
- pin: 21
- pin: 19
columns:
- pin: 17
- pin: 16
keys: "1234"
key_collector:
- id: reader
source_id: keypad
min_length: 4
max_length: 4