1
0
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:
Otto Winter
2018-10-17 21:29:44 +02:00
committed by GitHub
parent 75628b96a1
commit 81bc400340
3 changed files with 20 additions and 4 deletions

View File

@@ -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: