Heelp with nfc tag scanning in automations

hey all,

i need some help with a repeat automation to stop under 2 conditions
1- the toothbrush duration is above 30
2- the nfc tag has been scanned

i recently got help with some nfc tags for a separate automation so i tried to use this template but i dont believe it is working(im not even sure if its the template i should use in this scenario i usually steer clear from templates)?

if anyone could help solve this it would be appreciated im probably missing something obvious

i know the template should be “check if tag HAS been scanned today” but i cant find any information on how to change to that

one way to do this is to have an automation trigger on the nfc tag being scanned and have it set an input_boolean.nfc_tag_scanned (create one in helper).

then in this template do your template check and add this to your tempalte

or states('input_boolean.nfc_tag_scanned') == 'on' 

then after the loop be sure to set that input_boolean to off again.

1 Like

that is a good idea but i would like it if it was just an all in one automation and i dont have to make other automations or anything but ill keep it in mind

using parallel, you can do this in one automation. create another trigger and on that other trigger id (tag_scanned), set the input_boolean.

just make sure you set the automation mode to parallel