# Making a Label flash for alarm condition

**URL:** <https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 25, 2025, 10:35pm UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594 "2025-04-25T22:35:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomas\_wallace](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thomas\_wallace](https://forum.inductiveautomation.com/u/thomas_wallace)\
**Post date:** [April 25, 2025, 10:35pm UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/1 "2025-04-25T22:35:00Z")

</div>

I'm trying to get this LED display to flash red when in alarm condition. For testing purposes current value is 114 currently and should be flashing if less than 120. Can anyone see what I'm missing?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/d/eda1306e48d66e6e31b590bc297f0be515f261a1.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/0/d0e76cdce6af7c873054b7f9c1242623a6b2a12d.png)

I'm following this post as a guide:

> [@Make a component or text flash](https://forum.inductiveautomation.com/t/make-a-component-or-text-flash/100437):
>
> I've got a request from our COO to make certain values change when over a certain level. For example, I'm using a 14 segment display to show a temperature and I'd like it to flash red when over... lets say 400. Currently I have an expression that looks at the tag and changes the color to red if greater than 400 else it is green. I'd like for it to also flash, but am kinda stuck on if thats possible. Alternatively, a red square, that would frame my view and would be invisible if the temperature w…

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [April 25, 2025, 10:56pm UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/2 "2025-04-25T22:56:17Z")

</div>

Start small, create the style and just type it in, once that works then you can add bindings.

What's not working? From first glance, you have a backgroundColor set in properties but then trying to overwrite in the class. Not going to work. Delete the prop and just let the class set things.

---

<div class="post-metadata">

**Author:** ![thomas\_wallace](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thomas\_wallace](https://forum.inductiveautomation.com/u/thomas_wallace)\
**Post date:** [April 26, 2025, 12:22am UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/3 "2025-04-26T00:22:33Z")

</div>

@jlandwerlen That's what I tried first. This is what I get. I have no idea where there black is coming from.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/e/7e42f62fbed6d1357f99ead37840f2607262476d.png)

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [April 26, 2025, 12:41am UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/4 "2025-04-26T00:41:37Z")

</div>

This component is pretty broken from IA.  
The `backgroundColor` that sets the background of the actual readout is NOT a css property from the styles area, if you look closely, its actually `.props.backgroundColor` not `.props.style.backgroundColor`, so that is why your style isn't affecting it.  
When you delete the original backgroundColor prop, it goes to default which is black.

You will need to make an Advanced Stylesheet entry against `ia_ledComponent __background` that does the flashing animation, and also apply this same animation to `ia_ledComponent__ diode--off`

---

<div class="post-metadata">

**Author:** ![thomas\_wallace](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thomas\_wallace](https://forum.inductiveautomation.com/u/thomas_wallace)\
**Post date:** [April 26, 2025, 5:12am UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/5 "2025-04-26T05:12:20Z")

</div>

I figured it out. I cant use a "LED Display". Using a generic "Label" worked perfectly.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [April 26, 2025, 9:12am UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/6 "2025-04-26T09:12:30Z")

</div>

> [@thomas\_wallace](#):
>
> I cant use a "LED Display".

Yeah, they're from the 1970s and you can't get spare parts anymore.

They're hard to read and labels are so much better with properly shaped digits, clearly legible and even elegant.

---

<div class="post-metadata">

**Author:** ![thomas\_wallace](https://avatars.discourse-cdn.com/v4/letter/t/57b2e6/32.png) [@thomas\_wallace](https://forum.inductiveautomation.com/u/thomas_wallace)\
**Post date:** [April 28, 2025, 7:56pm UTC](https://forum.inductiveautomation.com/t/making-a-label-flash-for-alarm-condition/105594/7 "2025-04-28T19:56:36Z")

</div>

@Transistor Haha we don't like change around here.
