NFC reader with Home Assistant

That’s why I didn’t. Unless you plan on having them PNP it’s a pain. Even if you wanted to hand do it you’d need a reflow oven or hotplate. You’d have to do batch orders to make it reasonable.

1 Like

I was playing with a Wiegand version of this and wrote this basic ESP Home configuration file, it still needs some work and I’m not sure if I should post it here or create a new thread:

  name: wiegandReader
  friendly_name: ESPHome Wiegand Reader

  board: esp01_1m

# Enable logging

# Enable Home Assistant API
#  encryption:
#    key: 


# Wiegand reder
  - id: wiegandReader
    d0: GPIO15
    d1: GPIO13
#    on_key:  # TODO: Add keypad support
#      - lambda: ESP_LOGI("KEY", "received key %d", x);
      - lambda: ESP_LOGI("TAG", "received tag %s", x.c_str());
      - homeassistant.tag_scanned: !lambda 'return x;'

# Adds support for buzzer and LED control. TODO: This is probably a bad way to control the buzzer.
  - platform: binary
    name: "Reader LED"
    output: readerLED
  - platform: binary
    name: "Reader Buzzer"
    output: readerBuzzer

  - id: readerLED
    platform: gpio
    pin: GPIO12
    inverted: true
  - id: readerBuzzer
    platform: gpio
    pin: GPIO14
    inverted: true

# Why not use the built in LED for troubleshooting proposes?
  pin: GPIO2

  ssid: !secret wifi_ssid
  password: !secret wifi_password

#  # Enable fallback hotspot (captive portal) in case wifi connection fails
#  ap:
#    ssid:
#    password:


Cool, if it’s regarding HA, I think here would be fine. What Wiegand read are you using?

I used one of the readers that I’ve reviewed, and this one worked ok on 5V. I wanted to keep my tests as simple as possible but some readers need 12V.