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
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.
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