mirror of
https://github.com/esphome/esphome.git
synced 2026-09-30 00:10:22 +00:00
[fingerprint_grow] Use register_apply_action for the six fingerprint_grow actions (#19640)
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
button:
|
||||
- platform: template
|
||||
name: Fingerprint LED Actions
|
||||
on_press:
|
||||
- fingerprint_grow.enroll: 3
|
||||
- fingerprint_grow.enroll:
|
||||
finger_id: !lambda return 4;
|
||||
num_scans: !lambda return 3;
|
||||
- fingerprint_grow.led_control: true
|
||||
- fingerprint_grow.led_control:
|
||||
state: !lambda return false;
|
||||
- fingerprint_grow.aura_led_control:
|
||||
state: BREATHING
|
||||
speed: 200
|
||||
color: BLUE
|
||||
count: 2
|
||||
@@ -0,0 +1,9 @@
|
||||
substitutions:
|
||||
tx_pin: GPIO0
|
||||
rx_pin: GPIO2
|
||||
sensing_pin: GPIO15
|
||||
|
||||
packages:
|
||||
uart: !include ../../test_build_components/common/uart/esp8266-ard.yaml
|
||||
fingerprint_grow: !include common.yaml
|
||||
actions: !include common-actions.yaml
|
||||
Reference in New Issue
Block a user