OpenPrintTag reader: aux write action for the integration
CI / YAML lint (push) Failing after 17s
CI / ESPHome config validation (push) Successful in 51s

openprinttag_write_aux lets the OpenPrintTag integration's
openprinttag.update write the consumed weight and other aux values
to the tag on the reader.
This commit is contained in:
randy committed 2026-10-03 13:55:21 +02:00
1 parent 9eb5cd9155
commit 5fdacb82df
1 file changed
+10
+10
View File
@@ -49,6 +49,16 @@ external_components:
components: [pn5180] components: [pn5180]
refresh: 1h refresh: 1h
# Called by the OpenPrintTag integration (openprinttag.update) to update the aux region
api:
actions:
- action: openprinttag_write_aux
variables:
uid: string
aux: string
then:
- lambda: id(pn5180_reader).write_aux(uid, aux);
spi: spi:
clk_pin: GPIO7 clk_pin: GPIO7
mosi_pin: GPIO6 mosi_pin: GPIO6