Hey folks! Just wanted to ping the hive mind about something.
I have successfully gotten my PN532 NFC reader online. My application requires that the binary sensor for a recognized tag be set to “ON” for as long as the tag is in the field of the reader, and goes to “OFF” when I remove the tag form the field.
The weird issue I am having is that one batch of tags I purchased a while back seems to do this. As long as I hold the tag in the reader field, it remains as “ON” in home assistant, and when removed it changes to “OFF”. However, a new batch of tags i received this week seems to be recognized for 1s (based on my update interval, i assume) and then immediately set itself to off, even though it doesn’t move out of the field.
The tags I purchased in June are THESE and the tags i jsut received are THESE
Both tags are NTAG215, and i can’t really see why they would react differently.
I also tried changing my update_interval, but then there seems to be no way to turn it off within the update interval period. I will need the tag to sometimes read off after 30 minutes and sometimes after 4 hours or more.
esphome:
name: boardgame_nfc
platform: ESP8266
board: nodemcuv2
wifi:
ssid: REDACTED
password: REDACTED
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Boardgame Nfc Fallback Hotspot"
password: REDACTED
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
spi:
clk_pin: D0
miso_pin: D1
mosi_pin: D2
pn532:
cs_pin: D3
update_interval: 1s
binary_sensor:
- platform: pn532
uid: 04-B5-81-0A-28-5E-80
name: "Playing Suburbia"
- platform: pn532
uid: 04-2D-80-0A-28-5E-81
name: "Playing Quacks of Quedlinburg"
- platform: pn532
uid: 04-FF-9F-1A-2E-66-80
name: "Playing Anachrony"
Hoping anyone out there might have some thoughts before i order a new batch of the previous tags to try them out.
Thanks!
Anthony