Hello everyone, and thank you in advance for your time!
Background:
We’ve been actively using HomeAssistant and wanted to open our front door using NFC (through a phone or a bank card) or standard RFID chips. Inspired by this idea, we implemented it using Adonno TagReader. We ordered an ESP8266 D1 Mini and NFC RFID PN532. We modified an example EspHome configuration file for HomeAssistant from Adonno TagReader to suit our situation (omitting the LED and buzzer), resulting in the following configuration. In this setup, everything worked fine. We applied chips and phones, and the doors opened through HA automation as expected.
First Problem:
It turns out that the NFC RFID PN532 has a very limited range. We tried installing it inside the door to conceal it, but the signal couldn’t penetrate even a thin layer of metal.
Proposed Solution:
We decided to switch from NFC RFID PN532 to an RFID reader with Wiegand interface. The advantages of this reader include minor vandalism protection, and we can hide the entire setup inside the door. Also, we believe it should operate reliably in cold weather.
Request for Assistance from the Knowledgeable Community:
We followed the below diagram and used the following EspHome configuration. However, when we present RFID chips and NFC cards, nothing happens (no signs of life in the HA - EspHome logs). I’ve read somewhere and seen that the Esp8266 and RFID Wiegand should share a common ground. I’m not sure how to do this or solve the problem…
I digged into this issue over the weekend, and there are two things missing in your setup:
The D0 (green wire) cannot be connected to D0 (GPIO16) of the wemos. You need to connect it to another GPIO (suggest GPIO4, or D2. This means your yaml would need to be adjusted to:
wiegand:
- id: leitor
d0: GPIO4
d1: GPIO5
You need to connect your GND wire (black wire) to the Wemos D1 GND pin