Can you control your device from UI? No point trying to automate without being able to control it first.
Then you’ll need to write a rule. Decide when you want this flashing to start. Decide if you ever need to stop it. These influence the structure of your rule.
Search posts here for flashing or beeping for ideas.