As of ESPhome 2023.2.0, Wiegand support is built in, meaning you should no longer need the header file. Just add something like this to your ESPhome device’s YAML file:
wiegand:
- id: front_door_rfid_reader
d0: GPIO5
d1: GPIO4
on_tag:
- lambda: ESP_LOGI("TAG", "received tag %s", x.c_str());
For more information, here is the ESPhome documentation for the Wiegand component.
Edit: I tried this with a HID ProxPoint Plus 6005, which is quite cheap on eBay and has fantastic read range with my NExT, and it works like a charm. You’ll just need a level shifter to convert the 5V data signals from the reader to 3.3V logic level expected by the GPIO pins on your ESP board, assuming the board uses 3.3V logic. Plus, since this style of HID reader uses very little power and can run on 5V, I can power the ESP board from a single USB cable and power the reader from the 5V pin on the ESP.