mirror of
https://github.com/esphome/esphome.git
synced 2025-10-30 06:33:51 +00:00
Add PN532 On Tag Trigger (#189)
* Add PN532 On Tag Trigger
* Lint
* Fix 😶
* Fix
This commit is contained in:
@@ -878,6 +878,12 @@ status_led:
|
||||
pn532:
|
||||
cs_pin: GPIO23
|
||||
update_interval: 1s
|
||||
on_tag:
|
||||
- lambda: |-
|
||||
ESP_LOGD("main", "Found tag %s", x.c_str());
|
||||
- mqtt.publish:
|
||||
topic: the/topic
|
||||
payload: !lambda 'return x;'
|
||||
|
||||
rdm6300:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user