Okay, having just received the ‘proper’ R503 device today, I connected it to my LOLIN D1 mini, and ESPHome is happily reporting the device online. All fine and dandy EXCEPT I cannot for the life of me call the service esphome.fingerscan_enroll data: { finger_id: 0, num_scans: 2 } successfully. The Developer Tools / Services screen quickly displays this error message:
Failed to call service esphome.fingerscan_enroll. Unable to find service esphome.fingerscan_enroll
The AS608 uses the same SynoChip integrated circuit, but apparently draws more current than the R503. It also appears to be heavily counterfeited, judging from the quality of the chip etching. I was never able to get one of them to talk properly. It validates the password, and provides other status values via the ESPHome driver, but I never found the service in Home Assistant.
Now that I have the R503, I still can’t find the service.
Okay, now that THAT stupid omission has been corrected, I can call the service, and the ESP8266 logs the service call. But the LED ring isn’t lighting up, at all. This leads me to believe I’ve wired something wrong. Here’s what I’ve got:
R503 Color ESP8266
Red 3V3 Power
Black Ground
Yellow D1 / RXD
Tan/Brown D2 / TXD
White 3V3 power
Blue D3 / Touch
I’m fairly certain D1 and D2 are correct, because the default 0x00 password value is being validated, and the R503 is returning all sensor values. Where I’m not so certain are the White and Blue wires. Think I’m going to switch those and see if I get any lights. Nope, no LED ring illumination at all. I sent e-mail to [email protected] asking for help.
Yup, tried D5 instead, no difference. Tried placing white wire on 5V point, still no lights. Tried swapping white and blue, still no lights. Thanks for the suggestion.
The sensing pin should not affect the start of an enrollment. What does the fingerprint state entity say when you call the enrollment service?
Does the led blink red when you put your unenrolled finger on the sensor? What if you remove the sensing pin? (It will continuously scan for fingers then)
Nope, the LEDs don’t light AT ALL. Not when trying to scan a fingerprint for the enroll service, not when trying to validate a fingerprint. Just don’t light at all. Let me try again while watching the text sensor state.
RXD and TXD are sometimes in use (especially if you have the board connected via USB). I’ve found that using software serial is more stable.
The white and blue wires shouldn’t affect behavior - it’s just an optimization, and you can leave them disconnected during testing.
Today I received the Item 4651 R503 fingerprint sensor from Adafruit and surprise, no brown wire, and all wires match colors with the PDF. Being wary of soldering to these wires again (I don’t believe this was the problem with the AliExpress sensor, but you just never know) I went looking for the JST-style connector needed. There is a discussion thread at the Adafruit forum that shows this.
First things first. I wired it up as carefully and nicely as possible this morning. Then HomeAssistant would not “recognize” the ESPHome device as a new entity. I had to clean up files in the homeassistant/.storage directory, and restart HA twice before it was recognized and registered as a valid entity with valid sensors and states. And still it did NOT WORK.
Before totally giving up, I tried one final thing. I used your exact pin assignments for TX and RX and SENSE. (I was previously using D1, D2, and D3. That NEVER worked.) I used your D0, D1, and D2 and it just started working
Lesson learned: If these pin assignments worked for the author, JUST USE THEM.
Something that is not obvious to me right now, i have created a template switch in the esphome config. but it is never triggered when i put a finger on it,am i doing something wrong?
this does not seem to work for me, in the log I see that the switch is switched on and off, but it is not apparent in Home assistant this stays always on state off… even if I manually set it to on it jumps right back to off…
The Log:
[19:07:22][I][fingerprint_grow:148]: Processed image 1
[19:07:22][D][fingerprint_grow:101]: Fingerprint matched
[19:07:22][D][sensor:127]: 'fingerprint Last Finger ID': Sending state 0.00000 with 0 decimals of accuracy
[19:07:22][D][sensor:127]: 'fingerprint Last Confidence': Sending state 68.00000 with 0 decimals of accuracy
[19:07:22][D][switch:021]: 'Finger scanned' Turning ON.
[19:07:23][D][switch:025]: 'Finger scanned' Turning OFF.
[19:07:23][D][fingerprint_grow:304]: Setting Aura LED
[19:07:23][D][fingerprint_grow:308]: Aura LED set
[19:07:23][D][text_sensor:015]: 'fingerprint State': Sending state 'Authorized finger'
Is the name of the switch finger_scanned? Is this switch also defined and connected to the same esp board? If your still having trouble post the whole config