I have Q! ESP32-h2 + PN532 NFC Tag reader ( Expose The Tag UID to HA using Zigbee and return response what tasks to do next) #11120
Replies: 7 comments
-
Hi @KMTsvetanov, so what would be the Zigbee device purpose in the HomeAutomation? |
Beta Was this translation helpful? Give feedback.
-
hello @P-R-O-C-H-Y |
Beta Was this translation helpful? Give feedback.
-
I am not familiar with the TAG ID, what is that supposed to be used for and how it's ever populated? As its on your screenshot. |
Beta Was this translation helpful? Give feedback.
-
Imagine having a deck of cards (each with a NFT tag). Every time a card is scanned a playlist will start to play. Card with Tag ID 001 will play Metallica album. Card with Tag ID 002 will play NANA album. Something like that. All the albums will be stored in a SD |
Beta Was this translation helpful? Give feedback.
-
ok but what is then to topology of the network? This device should be able to read and send the NFT tag to some other device? I am not sure I get it. |
Beta Was this translation helpful? Give feedback.
-
The Tag reader will scan the NFC tag. Pass the tag Id to the ESP32. This ESP32 will be connected with Zigbee to Home Assistant where it will pass the tag id and the state as tagged detected. Then in Home Assistant I can have a trigger that can to anything. Know that I have already made the Tag reader working. It's just the Zigbee data passing to HA and the SD that I;m having problems. HA just needs to know when a tag is been scanned and what the tag id is. And I way for pass the data back from HA to ESP32 like: |
Beta Was this translation helpful? Give feedback.
-
I am sorry but I don't see a way of doing that with the end point types we currently support. Also I was looking to the available clusters and I don't see any for NFC Tags. Can you ask please on the "esp-zigbee-sdk" repository? How to do a Zigbee NFC tag reader if it's possible? Are there any Zigbee NFC tags on the market? So we might get some informations how its done. It might be done using a completely custom cluster. |
Beta Was this translation helpful? Give feedback.
-
Related area
Zigbee, NFC tag reader, DAC Decoder, Micro Mini SD Storage Expansion Board
Hardware specification
ESP32-h2, PN532 I2C mode, I2S PCM5102 DAC Decoder, Micro Mini SD Storage Expansion Board
Describe the solution you'd like
Hello. Over the past 3 weeks I'm looking for a way to make this setup:
My idea is to make a Zigbee coordinator (ESP32-h2) that can:
Steps:
Connect ESP32-h2 to HA - using Zigbee - DONE (library: espressif/arduino-esp32)
Connect ESP32-h2 to PN532 NFC - using I2C - DONE (library: adafruit/Adafruit-PN532)
By following this video
################
################ Q: 1 ### How to populate the TAG ID to Home Assistant using Zigbee ? ################
################
If you can't store it here:


Maybe just add it as:
There are 2 options to make the tag reader work:
################
################ Q: 2### After Q1 is done, how do i return some data to ESP32-h2 ? ################
################
Connect ESP32-h2 to PCM5102 DAC Decoder - using I2S - DONE (following XTronical youtube videos)
I added a WavData.h for now until i implement the SD Expansion Board
WavData.h containes 16 bit mono (16000Hz) or 16 bit steroe (16000Hz) made from Audacity and HxD programs.
with code starting like that:
unsigned const char WavData16BitMono[288982] = { 0x52, 0x49, 0x46, 0x46, 0xCE, 0x68, 0x04...
Will remove it later.
Connect ESP32-h2 to Micro Mini SD Storage Expansion Board - using SPI - TODO
Added a pasive Buzzer - DONE
Added a vibrating motor - DONE
Can someone help me with my Q? I think that adding custom Exposes (or NFC Tag) to Zigbee devices will be a good addition to this libraly. That way I can even triger an automation to play music from just opening a door or reading a tag.
Note* In the end I will provite the full steps and code!
Here is the code so far:
Work in progress!!!

Beta Was this translation helpful? Give feedback.
All reactions