I just got a R503-s Grow Fingerprint Sensor and I wired everything and got it working with HA very well. Suddenly, the sensor stopped working. I guess it occured right after I updated ESPHome to the latest version.
To make sure nothing changed, I looked at the wiring and did some soldering again but nothing changed. Everytime I placed my finger at the sensor, nothing happened, no led indicator, nothing.
Than, I tried to add a fingerprint by calling the enrol service and to my surprise, I got a purple LED as configured, but the service did not proceed with the enrolment and the sensor is stuck in purple.
I also was able to delete specific ids (fingerprints) as the log shows.
What I got that I couldn’t find any information about is this: [component:082]: Component fingerprint_grow is marked FAILED
Any idea what might be happening?
Here is my full config and some log:
esphome:
name: sensor-digital
friendly_name: Sensor_Digital
esp8266:
board: nodemcuv2
# Enable logging
logger:
ota:
password: "password"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Sensor-Digital Fallback Hotspot"
password: "password"
captive_portal:
api:
encryption:
key: "apikey"
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;'
- fingerprint_grow.aura_led_control:
state: ALWAYS_ON
speed: 0
color: PURPLE
count: 0
- 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:
uart:
rx_pin: D1
tx_pin: D2
baud_rate: 57600
fingerprint_grow:
password: password
sensing_pin: D6
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: BLUE
count: 1
- text_sensor.template.publish:
id: fingerprint_state
state: "Autorizado"
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
- text_sensor.template.publish:
id: fingerprint_state
state: "Desconhecido"
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
- fingerprint_grow.aura_led_control:
state: ALWAYS_ON
speed: 0
color: PURPLE
count: 0
- text_sensor.template.publish:
id: fingerprint_state
state: "Aprendendo"
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
- text_sensor.template.publish:
id: fingerprint_state
state: "Registrada"
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
- text_sensor.template.publish:
id: fingerprint_state
state: "Falha"
# Optional template text sensor for visual feedback
text_sensor:
- platform: template
id: fingerprint_state
name: "Fingerprint State"
lambda: |-
return {"-"};
update_interval: 6s
# Optional sensors
binary_sensor:
- platform: fingerprint_grow
id: fingerprint_enrolling
name: "Fingerprint Enrolling"
sensor:
- platform: fingerprint_grow
fingerprint_count:
name: "Fingerprint Count"
last_finger_id:
name: "Fingerprint Last Finger ID"
last_confidence:
name: "Fingerprint Last Confidence"
status:
name: "Fingerprint Status"
capacity:
name: "Fingerprint Capacity"
security_level:
name: "Fingerprint Security Level"
INFO ESPHome 2024.4.0
INFO Reading configuration /config/esphome/sensor-fingerprint.yaml...
INFO Starting log output from 192.168.15.74 using esphome API
INFO Successfully connected to sensor-digital @ 192.168.15.74 in 0.018s
INFO Successful handshake with sensor-digital @ 192.168.15.74 in 2.665s
[13:28:56][I][app:100]: ESPHome version 2024.4.0 compiled on Apr 22 2024, 13:23:39
[13:28:56][C][wifi:580]: WiFi:
[13:28:56][C][wifi:408]: Local MAC: 48:5E:DA:44:5C:3D
[13:28:56][C][wifi:413]: SSID: [redacted]
[13:28:56][C][wifi:416]: IP Address: 192.168.15.74
[13:28:56][C][wifi:419]: BSSID: [redacted]
[13:28:56][C][wifi:421]: Hostname: 'sensor-digital'
[13:28:56][C][wifi:423]: Signal strength: -78 dB ▂▄▆█
[13:28:56][C][wifi:427]: Channel: 11
[13:28:56][C][wifi:428]: Subnet: 255.255.255.0
[13:28:56][C][wifi:429]: Gateway: 192.168.15.1
[13:28:56][C][wifi:430]: DNS1: 192.168.15.34
[13:28:56][C][wifi:431]: DNS2: 8.8.4.4
[13:28:56][C][logger:166]: Logger:
[13:28:56][C][logger:167]: Level: DEBUG
[13:28:56][C][logger:169]: Log Baud Rate: 115200
[13:28:56][C][logger:170]: Hardware UART: UART0
[13:28:56][C][uart.arduino_esp8266:118]: UART Bus:
[13:28:56][C][uart.arduino_esp8266:119]: TX Pin: GPIO4
[13:28:56][C][uart.arduino_esp8266:120]: RX Pin: GPIO5
[13:28:56][C][uart.arduino_esp8266:122]: RX Buffer Size: 256
[13:28:56][C][uart.arduino_esp8266:124]: Baud Rate: 57600 baud
[13:28:56][C][uart.arduino_esp8266:125]: Data Bits: 8
[13:28:56][C][uart.arduino_esp8266:126]: Parity: NONE
[13:28:56][C][uart.arduino_esp8266:127]: Stop bits: 1
[13:28:56][C][uart.arduino_esp8266:131]: Using software serial
[13:28:56][C][template.text_sensor:020]: Template Sensor 'Fingerprint State'
[13:28:56][C][fingerprint_grow:537]: GROW_FINGERPRINT_READER:
[13:28:56][C][fingerprint_grow:538]: System Identifier Code: 0x0000
[13:28:56][C][fingerprint_grow:539]: Touch Sensing Pin: GPIO12
[13:28:56][C][fingerprint_grow:541]: Sensor Power Pin: None
[13:28:56][C][fingerprint_grow:546]: Idle Period to Sleep: Never
[13:28:56][C][fingerprint_grow:548]: Update Interval: 0.5s
[13:28:56][C][fingerprint_grow:550]: Fingerprint Count 'Fingerprint Count'
[13:28:56][C][fingerprint_grow:550]: State Class: ''
[13:28:56][C][fingerprint_grow:550]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:550]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:550]: Icon: 'mdi:fingerprint'
[13:28:56][C][fingerprint_grow:551]: Current Value: 65535
[13:28:56][C][fingerprint_grow:554]: Status 'Fingerprint Status'
[13:28:56][C][fingerprint_grow:554]: State Class: ''
[13:28:56][C][fingerprint_grow:554]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:554]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:555]: Current Value: 255
[13:28:56][C][fingerprint_grow:558]: Capacity 'Fingerprint Capacity'
[13:28:56][C][fingerprint_grow:558]: State Class: ''
[13:28:56][C][fingerprint_grow:558]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:558]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:558]: Icon: 'mdi:database'
[13:28:56][C][fingerprint_grow:559]: Current Value: 65535
[13:28:56][C][fingerprint_grow:562]: Security Level 'Fingerprint Security Level'
[13:28:56][C][fingerprint_grow:562]: State Class: ''
[13:28:56][C][fingerprint_grow:562]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:562]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:562]: Icon: 'mdi:security'
[13:28:56][C][fingerprint_grow:563]: Current Value: 255
[13:28:56][C][fingerprint_grow:566]: Last Finger ID 'Fingerprint Last Finger ID'
[13:28:56][C][fingerprint_grow:566]: State Class: ''
[13:28:56][C][fingerprint_grow:566]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:566]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:566]: Icon: 'mdi:account'
[13:28:56][C][fingerprint_grow:567]: Current Value: -1
[13:28:56][C][fingerprint_grow:570]: Last Confidence 'Fingerprint Last Confidence'
[13:28:56][C][fingerprint_grow:570]: State Class: ''
[13:28:56][C][fingerprint_grow:570]: Unit of Measurement: ''
[13:28:56][C][fingerprint_grow:570]: Accuracy Decimals: 0
[13:28:56][C][fingerprint_grow:570]: Icon: 'mdi:account-check'
[13:28:56][C][fingerprint_grow:571]: Current Value: -1
[13:28:56][E][component:082]: Component fingerprint_grow is marked FAILED
[13:28:56][C][captive_portal:088]: Captive Portal:
[13:28:56][C][mdns:115]: mDNS:
[13:28:56][C][mdns:116]: Hostname: sensor-digital
[13:28:56][C][ota:096]: Over-The-Air Updates:
[13:28:56][C][ota:097]: Address: sensor-digital.local:8266
[13:28:56][C][ota:100]: Using Password.
[13:28:56][C][ota:103]: OTA version: 2.
[13:28:56][C][api:139]: API Server:
[13:28:56][C][api:140]: Address: sensor-digital.local:6053
[13:28:56][C][api:142]: Using noise encryption: YES
[13:28:58][I][fingerprint_grow:097]: Starting enrollment in slot 4
[13:28:58][D][binary_sensor:036]: 'Fingerprint Enrolling': Sending state ON
[13:28:58][D][fingerprint_grow:348]: Setting Aura LED
[13:28:58][D][fingerprint_grow:352]: Aura LED set
[13:28:58][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:04][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:07][I][fingerprint_grow:295]: Deleting fingerprint in slot 4
[13:29:07][I][fingerprint_grow:299]: Deleted fingerprint
[13:29:07][D][fingerprint_grow:285]: Getting fingerprint count
[13:29:07][D][fingerprint_grow:288]: Got fingerprint count
[13:29:07][D][sensor:093]: 'Fingerprint Count': Sending state 7.00000 with 0 decimals of accuracy
[13:29:10][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:16][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:17][I][ota:117]: Boot seems successful, resetting boot loop counter.
[13:29:22][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:28][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:34][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:40][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:40][I][fingerprint_grow:097]: Starting enrollment in slot 4
[13:29:40][D][fingerprint_grow:348]: Setting Aura LED
[13:29:40][E][fingerprint_grow:457]: Unknown response received from reader: 0x80
[13:29:40][E][fingerprint_grow:360]: Try led_control instead
[13:29:46][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:50][I][fingerprint_grow:097]: Starting enrollment in slot 4
[13:29:50][D][fingerprint_grow:348]: Setting Aura LED
[13:29:50][D][fingerprint_grow:352]: Aura LED set
[13:29:52][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:29:58][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:04][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:10][I][fingerprint_grow:295]: Deleting fingerprint in slot 4
[13:30:10][I][fingerprint_grow:299]: Deleted fingerprint
[13:30:10][D][fingerprint_grow:285]: Getting fingerprint count
[13:30:10][D][fingerprint_grow:288]: Got fingerprint count
[13:30:10][D][sensor:093]: 'Fingerprint Count': Sending state 7.00000 with 0 decimals of accuracy
[13:30:10][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:16][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:22][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:27][I][fingerprint_grow:295]: Deleting fingerprint in slot 3
[13:30:27][I][fingerprint_grow:299]: Deleted fingerprint
[13:30:27][D][fingerprint_grow:285]: Getting fingerprint count
[13:30:27][D][fingerprint_grow:288]: Got fingerprint count
[13:30:27][D][sensor:093]: 'Fingerprint Count': Sending state 7.00000 with 0 decimals of accuracy
[13:30:28][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:33][I][fingerprint_grow:097]: Starting enrollment in slot 3
[13:30:33][D][fingerprint_grow:348]: Setting Aura LED
[13:30:33][D][fingerprint_grow:352]: Aura LED set
[13:30:34][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:40][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:46][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:52][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:30:58][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:02][I][fingerprint_grow:295]: Deleting fingerprint in slot 3
[13:31:02][I][fingerprint_grow:299]: Deleted fingerprint
[13:31:02][D][fingerprint_grow:285]: Getting fingerprint count
[13:31:02][D][fingerprint_grow:288]: Got fingerprint count
[13:31:02][D][sensor:093]: 'Fingerprint Count': Sending state 7.00000 with 0 decimals of accuracy
[13:31:04][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:10][I][fingerprint_grow:295]: Deleting fingerprint in slot 2
[13:31:10][I][fingerprint_grow:299]: Deleted fingerprint
[13:31:10][D][fingerprint_grow:285]: Getting fingerprint count
[13:31:10][D][fingerprint_grow:288]: Got fingerprint count
[13:31:10][D][sensor:093]: 'Fingerprint Count': Sending state 6.00000 with 0 decimals of accuracy
[13:31:10][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:16][I][fingerprint_grow:097]: Starting enrollment in slot 2
[13:31:16][D][fingerprint_grow:348]: Setting Aura LED
[13:31:16][D][fingerprint_grow:352]: Aura LED set
[13:31:16][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:22][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:28][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:34][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:40][D][text_sensor:064]: 'Fingerprint State': Sending state '-'
[13:31:46][D][text_sensor:064]: 'Fingerprint State': Sending state '-'