Hi all,
i am using a Grow R503 fingerprint sensor which really works nicely, i only have one better said two small problems:
- The “delay” for switching on/off the aknowledgment Tone (event: esphome.test_node_finger_scan_matched) on a YL-44 Buzzer only works very imprecisely. It somehow works but the actual duration of the tone depends on how I scan my finger and probably also the weather
Since I want to work with different PWM frequencies and durations and tone sequences to have a good user experience i need to adjust the duration exactly!
- Even if i put the output.turn_off in the “on_boot” event there is a small beep at boot. Why is the ledc interface set to 100% by default?
esphome:
name: weg-tuer
on_boot:
- output.turn_off: buzzer
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "XXXXXXXXX"
services:
- service: enroll
variables:
finger_id: int
num_scans: int
then:
- fingerprint_grow.enroll:
finger_id: !lambda 'return finger_id;'
num_scans: !lambda 'return num_scans;'
- service: cancel_enroll
then:
- fingerprint_grow.cancel_enroll:
- service: delete
variables:
finger_id: int
then:
- fingerprint_grow.delete:
finger_id: !lambda 'return finger_id;'
- service: delete_all
then:
- fingerprint_grow.delete_all:
ota:
password: "XXXXXXXXXX"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Weg-Tuer Fallback Hotspot"
password: "2vJbYWKPiH28"
captive_portal:
#define buzzer
output:
- platform: ledc
pin: 16
id: buzzer
inverted: true
#Fingerprint sensor:
uart:
rx_pin: GPIO1
tx_pin: GPIO3
baud_rate: 57600
fingerprint_grow:
sensing_pin: GPIO5
on_finger_scan_matched:
- homeassistant.event:
event: esphome.test_node_finger_scan_matched
data:
finger_id: !lambda 'return finger_id;'
confidence: !lambda 'return confidence;'
- fingerprint_grow.aura_led_control:
state: BREATHING
speed: 200
color: GREEN
count: 1
- output.turn_on: buzzer
- delay: 200ms
- output.turn_off: buzzer
on_finger_scan_unmatched:
- homeassistant.event:
event: esphome.test_node_finger_scan_unmatched
- fingerprint_grow.aura_led_control:
state: FLASHING
speed: 25
color: RED
count: 2
on_enrollment_scan:
- homeassistant.event:
event: esphome.test_node_enrollment_scan
data:
finger_id: !lambda 'return finger_id;'
scan_num: !lambda 'return scan_num;'
- fingerprint_grow.aura_led_control:
state: FLASHING
speed: 25
color: BLUE
count: 2
on_enrollment_done:
- homeassistant.event:
event: esphome.test_node_enrollment_done
data:
finger_id: !lambda 'return finger_id;'
- fingerprint_grow.aura_led_control:
state: BREATHING
speed: 100
color: BLUE
count: 2
on_enrollment_failed:
- homeassistant.event:
event: esphome.test_node_enrollment_failed
data:
finger_id: !lambda 'return finger_id;'
- fingerprint_grow.aura_led_control:
state: FLASHING
speed: 25
color: RED
count: 4
Many thanks for your help!
Johannes