A little help with ESPHome + Wiegand reader

I’m trying to get a Wiegand reader and ESPHome via ESP8266 board into HA to read RFID tag scans and trigger an automation. I’m not using an access control module or anything like that, it’s just being wired directly to ESPHome and then into HA. As of right now when I scan a tag I see in the log for ESPHome the following: [19:40:41][I][RAW:040]: received raw 13 bits, value 1fff [19:40:41][D][wiegand:116]: received unknown 13-bit value: 1fff

I’m not sure if that is because of the tag I’m scanning or something else such as how I have it wired. Currently I have the data 0 and data 1 lines connected to pins D1 and D0 respectively and in the ESPHome config I have it set as D0: GPIO16 and D1: DPIO5.

So my two questions are:

  1. Is the wiring wrong or some other issue?
  2. How do I get the scans into HA so I can run automations?

Thanks.

Did you get this working. I had similar issues until I realized the ESP has to share a ground with the keypad to be reliable