Jump to content
C4 Forums | Control4

Switch LED color depending on Alarm State


markf

Recommended Posts

I'm trying to work out a way to change the LED color on my switches depending on if the alarm is armed or not.  I'd love for the LED of the current state of the light (on or off, upper or lower LED) to be red if it's armed and go back to normal (blue, in my case) if the alarm is disarmed.

At first I thought about conditionals based on the alarm state.  In programming I went to the partition and said: when the partition state changes, if the partition is armed, change all the LEDs to Red.  If it is disarmed, turn all the LEDs off.

That won't work since I don't want all the LEDs red, just the upper or lower depending on if the light is on or off, and I don't want all of them off on disarm, I just want whatever one is active to go back to normal.  I guess I could then tell it to check if the light is on or off and change the appropriate LED to red but that seems overly complicated and I'm not how to tell it to go back to normal on disarm, unless I just need to specify to check if it's on or off and change the appropriate LED to blue.

I thought about making a variable that was true if armed and false if disarmed but I'm just not sure how to apply it to changing the colors for true and back to normal for false.

I'm also not sure how, once I get this worked out, how to apply it to all of the switches or if I just need to go one by one.

FYI, I'm just an end user here who likes to do things myself in Composer HE rather than call the dealer for everything little thing.  Thanks in advance.

Link to comment
Share on other sites


4 hours ago, markf said:

I'm trying to work out a way to change the LED color on my switches depending on if the alarm is armed or not.  I'd love for the LED of the current state of the light (on or off, upper or lower LED) to be red if it's armed and go back to normal (blue, in my case) if the alarm is disarmed.

At first I thought about conditionals based on the alarm state.  In programming I went to the partition and said: when the partition state changes, if the partition is armed, change all the LEDs to Red.  If it is disarmed, turn all the LEDs off.

That won't work since I don't want all the LEDs red, just the upper or lower depending on if the light is on or off, and I don't want all of them off on disarm, I just want whatever one is active to go back to normal.  I guess I could then tell it to check if the light is on or off and change the appropriate LED to red but that seems overly complicated and I'm not how to tell it to go back to normal on disarm, unless I just need to specify to check if it's on or off and change the appropriate LED to blue.

I thought about making a variable that was true if armed and false if disarmed but I'm just not sure how to apply it to changing the colors for true and back to normal for false.

I'm also not sure how, once I get this worked out, how to apply it to all of the switches or if I just need to go one by one.

FYI, I'm just an end user here who likes to do things myself in Composer HE rather than call the dealer for everything little thing.  Thanks in advance.

There is a free led wizard driver.  A few easy point and clicks can change all of your leds to your desired color

so “when alarm is armed” in ComposerHE you can do a line of code to change all leds red

when “alarm is disarmed” change to white or green etc

this is what I do with the led wizard and my dsc alarm all through composer he 

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.