Imitating alarm light with xiaomi gateway

Good day everyone!

Is there a way to mimic alarm lights with xiaomi hub? It is not going to work if I will send on and off message every half of second. How I understand, there should be built in “scenario”. So can i trigger it from Home Assistant?