feat: report last scanned token to home assistant
This commit is contained in:
parent
261d5e71be
commit
5b173917be
|
@ -91,6 +91,10 @@ rc522_spi:
|
||||||
# store the tag id into global variable
|
# store the tag id into global variable
|
||||||
- lambda: |-
|
- lambda: |-
|
||||||
id(my_tag) = x;
|
id(my_tag) = x;
|
||||||
|
- text.set:
|
||||||
|
id: ${name_of_board}_letzter_token
|
||||||
|
value: !lambda return id(my_tag);
|
||||||
|
- delay: 2s
|
||||||
# login to vault with role_id to fetch short lived token
|
# login to vault with role_id to fetch short lived token
|
||||||
- http_request.post:
|
- http_request.post:
|
||||||
url: https://vault.ctdo.de/v1/auth/approle/login
|
url: https://vault.ctdo.de/v1/auth/approle/login
|
||||||
|
@ -225,3 +229,10 @@ text:
|
||||||
id: ${name_of_board}_letzte_entsperrung
|
id: ${name_of_board}_letzte_entsperrung
|
||||||
optimistic: true
|
optimistic: true
|
||||||
mode: text
|
mode: text
|
||||||
|
|
||||||
|
text:
|
||||||
|
- platform: template
|
||||||
|
name: "$name_of_board Zuletzt Gelesener Token"
|
||||||
|
id: ${name_of_board}_letzter_token
|
||||||
|
optimistic: true
|
||||||
|
mode: text
|
||||||
|
|
Loading…
Reference in New Issue