esphome: on_boot: then: - tag.set_clean_mode: nfcc_pn7160_spi - tag.set_format_mode: nfcc_pn7160_spi - tag.set_read_mode: nfcc_pn7160_spi - tag.set_write_message: message: https://www.home-assistant.io/tag/pulse include_android_app_record: false - tag.set_write_mode: nfcc_pn7160_spi - tag.set_emulation_message: message: https://www.home-assistant.io/tag/pulse include_android_app_record: false - tag.emulation_off: nfcc_pn7160_spi - tag.emulation_on: nfcc_pn7160_spi - tag.polling_off: nfcc_pn7160_spi - tag.polling_on: nfcc_pn7160_spi pn7160_spi: id: nfcc_pn7160_spi cs_pin: ${cs_pin} irq_pin: ${irq_pin} ven_pin: ${ven_pin} emulation_message: https://www.home-assistant.io/tag/pulse_ce tag_ttl: 1000ms on_tag: then: - delay: 10ms - lambda: |- ESP_LOGD("test", "%s %zu %d %s", tag.get_tag_type().c_str(), tag.get_uid().size(), tag.has_ndef_message(), nfc::get_ha_tag_ndef(tag).c_str()); on_tag_removed: then: - lambda: ESP_LOGD("test", "%s", tag.get_tag_type().c_str()); on_emulated_tag_scan: - logger.log: "Tag emulated" binary_sensor: - platform: nfc nfcc_id: nfcc_pn7160_spi name: Pulse tag ndef_contains: pulse