1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Add on_tag_removed trigger to pn532 (#1436)

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
romerod
2021-05-18 01:54:09 +02:00
committed by GitHub
parent d4686c0fb1
commit d3e291b442
5 changed files with 36 additions and 5 deletions

View File

@@ -1968,6 +1968,12 @@ pn532_spi:
- mqtt.publish:
topic: the/topic
payload: !lambda 'return x;'
on_tag_removed:
- lambda: |-
ESP_LOGD("main", "Removed tag %s", x.c_str());
- mqtt.publish:
topic: the/topic
payload: !lambda 'return x;'
pn532_i2c: