Create a flashing indicator light

First time poster here. I’m in the process of creating a transmission mode controller for my goofy old RV. I have most of the programming details figured out but I would like a flashing indicator on the Nextion for an overheating condition on the trans. I have looked everywhere for code or examples of a flashing dual state button (used as an indicator light) but I can’t find any. Essentially, the trans will send a signal that triggers a relay. A contact on that relay will will trigger an input pin on the Arduino. I figured out how to control the dual state button in the Nextion from the Arduino. By default, the indicator light is lit up solid, but I would like the light to flash. How the hell is that accomplished?

This can be done on Nextion side. Let the dual State Button not be controlled by the Arduino, but by a timer with a 500ms interval and which at each run sets the button state = 1 - state. Then, enable and disable the timer from Arduino.