NFC Tag ID is Different if Used on Phone and on External Scanner

Just got some NFC tags (THESE) and noticed that I get a different scan result depending on how I scanned it. The tags write OK with the companion app (on Samsung Galaxy S10+) and scan OK afterward.

I also just received the parts and pieces to build a scanner similar to the one in the blog post. The scanner is almost identical except that I used an ESP8266 and did not add an LED. The yaml code is the exact same except for the LED code.

If I scan with the companion app, I get a tag id that matches what the app says it wrote. Works every time. But, if I scan with the ESP Home NFC tag scanner, I get a completely different result. Both are repeatable every time. I tried a bunch of different tags including the ones linked above and also the sample tags and keychain that came with the PN532 itself. The same thing happens.

Attached is a screenshot of what I’m seeing. This is after I deleted every tag in Home Assistant then wrote to a new tag. The long id is a scan from the app itself and matches what the app says it wrote. The short ID is the same tag, but scanned on the ESPHome scanner.
I also captured debug data in Node Red, again for the same tag but one scan on the app on my phone and the other on the ESPHome scanner.

Anyone have any ideas whats going on? Am I doing something wrong here?

9/20/2020, 6:53:44 PM[node: NFC](http://HASSADDRESS:1880/#)tag_scanned : msg : Object

object

event_type: "tag_scanned"

topic: "tag_scanned"

payload: object

event_type: "tag_scanned"

event: object

tag_id: "e65e5929-67f8-45ee-95c6-b3fff3bed013"

device_id: "ad9fd525a87107df"

origin: "LOCAL"

time_fired: "2020-09-21T01:53:44.134699+00:00"

context: object

id: "47d60df2fbad11ea81a581b00250ff22"

parent_id: null

user_id: "fa8d71c4a4e34d53ac2f69e73921f97a"

_msgid: "a1ac5a54.f0ffc8"

_event: "node:df3900f9.dd27f"

9/20/2020, 6:53:47 PM[node: NFC](http://HASSADDRESS:1880/#)tag_scanned : msg : Object

object

event_type: "tag_scanned"

topic: "tag_scanned"

payload: object

event_type: "tag_scanned"

event: object

tag_id: "04-55-F5-72-5D-64-80"

device_id: "13b4f90d62584039b373ab1eb2d716bc"

origin: "LOCAL"

time_fired: "2020-09-21T01:53:47.400659+00:00"

context: object

id: "49c86c99fbad11ea801d31392cabaf64"

parent_id: null

user_id: null

_msgid: "12c47007.0da22"

_event: "node:df3900f9.dd27f"

image

1 Like

One is reporting the tag id, the other is reporting the tag data.

2 Likes

Thanks. I didn’t see that in the comments of the blog post. Good to know I didn’t meds anything up at least.

That just saved me a lot of trouble. Thanks!

1 Like

I’m hopping on this again with a related question:

If I have a non-writeable nfc tag that I am only able to gather an ID from, would there be a way to use it to start an automation?