I’m trying to create an automation triggered by scanning an NFC tag to toggle a light. I would like to add logic such that if the tag is scanned again within 5 seconds it can toggle the brightness level (dim/undim?).
I’m trying to use wait for trigger but I’m not sure how to make it work.