mirror of
https://github.com/randybb/esphome-configs.git
synced 2026-10-14 08:35:12 +02:00
OpenPrintTag reader: aux write action for the integration
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:
1 parent
9eb5cd9155
commit
5fdacb82df
1 file changed
+10
@@ -49,6 +49,16 @@ external_components:
|
||||
components: [pn5180]
|
||||
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:
|
||||
clk_pin: GPIO7
|
||||
mosi_pin: GPIO6
|
||||
|
||||
Reference in new issue
Block a user