From 73074dad71d8d25437f57d5aeb89ad0bee4d97f8 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 21 Sep 2020 09:08:52 +1200 Subject: [PATCH 1/2] Change to use the new tag_scanned action in ESPHome 1.15.2 --- tagreader.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tagreader.yaml b/tagreader.yaml index 99a1b1a..5b9057c 100644 --- a/tagreader.yaml +++ b/tagreader.yaml @@ -80,10 +80,7 @@ pn532: # What happens when a tag is read on_tag: then: - - homeassistant.event: - event: esphome.tag_scanned - data: - tag_id: !lambda 'return x;' + - homeassistant.tag_scanned: !lambda 'return x;' - if: condition: switch.is_on: buzzer_enabled From 48d39fdbfaeee3ed8932f9f292c4cb440dbba0d9 Mon Sep 17 00:00:00 2001 From: Jesse Hills <3060199+jesserockz@users.noreply.github.com> Date: Mon, 21 Sep 2020 16:26:29 +1200 Subject: [PATCH 2/2] Update readme to add minimum ESPHome version --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0aac1c8..1439923 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,10 @@ Also make sure that you have set the switches on the PN532 to the following: This enables the PN532 module to communicate with the D1 over SPI, and is required for the modules to work together! +To flash the reader firmware to your D1 Mini you point ESPHome at [tagreader.yaml](https://github.com/adonno/tagreader/blob/master/tagreader.yaml). +**The tag reader requires ESPHome 1.15.2 or later.** -To flash the reader firmware to your D1 Mini you point ESPHome at [tagreader.yaml](https://github.com/adonno/tagreader/blob/master/tagreader.yaml). If you're new to ESPHome, we recommend that you use the [ESPHome Home Assistant add-on](https://esphome.io/guides/getting_started_hassio.html). +If you're new to ESPHome, we recommend that you use the [ESPHome Home Assistant add-on](https://esphome.io/guides/getting_started_hassio.html). ![Open Case](https://raw.githubusercontent.com/adonno/tagreader/master/docs/open-case.jpg)