Tag Reader for Home Assistant
The tag reader is a simple to build/use NFC tag reader, specially created for Home Assistant. It is using a Wemos D1 and the PN532 NFC module. The firmware is built using ESPhome.
I am selling a pre-built version, a DIY version (assembly required) or just the case (use with own components). Check it out on my website.
Building the tag reader
To build your own tag reader, you need the following components:
The 3D models for the case are here.
Connecting the components
There are not too many components to connect, but it does require soldering. You will need the following:
Also make sure that you have set the switches on the PN532 to the following:
- Switch 1: Off (down)
- Switch 2: On (up)
This enables the PN532 module to communicate with the D1 over SPI, and is required for the modules to work together!
To flash the reader firmware to your D1 Mini you point ESPHome at tagreader.yaml. If you're new to ESPHome, we recommend that you use the ESPHome Home Assistant add-on.
Configuring for use with Home Assistant
The tag reader requires Home Assistant 0.115 or later.
If the tag reader is unable to connect to a wifi network, it will start a WiFi access point with a captive portal to allow you to enter your WiFi credentials.
The tag reader will be automatically discovered by Home Assistant once the tag reader is connected to the same network. You can follow the instructions in the UI to set it up.
Usage
Scanned tags can be managed from the tags interface in Home Assistant. You can find it under config -> tags.
TODO
RFID module wiring
D1 Mini officals may work following the Fritz Schematics above, but the clones seem to require the following:
D1 Mini | PN532 |
---|---|
D0 | SCK |
D1 | MISO |
D2 | MOSI |
D3 | SS |
5V | VCC |
G | GND |