mirror of
https://github.com/esphome/esphome.git
synced 2026-10-06 10:56:43 +00:00
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
19 lines
481 B
YAML
19 lines
481 B
YAML
pn532_spi:
|
|
id: pn532_nfcc_spi
|
|
cs_pin: ${cs_pin}
|
|
on_tag:
|
|
then:
|
|
- delay: 10ms
|
|
- lambda: |-
|
|
ESP_LOGD("test", "%s %zu %d %d", tag.get_tag_type().c_str(), tag.get_uid().size(), tag.has_ndef_message(),
|
|
nfc::has_ha_tag_ndef(tag));
|
|
on_tag_removed:
|
|
then:
|
|
- lambda: ESP_LOGD("test", "%s", tag.get_tag_type().c_str());
|
|
|
|
binary_sensor:
|
|
- platform: pn532
|
|
pn532_id: pn532_nfcc_spi
|
|
name: PN532 NFC Tag
|
|
uid: 74-10-37-94
|