markf Posted August 9, 2022 Share Posted August 9, 2022 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. Quote Link to comment Share on other sites More sharing options...
eggzlot Posted August 10, 2022 Share Posted August 10, 2022 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 Quote Link to comment Share on other sites More sharing options...
markf Posted August 10, 2022 Author Share Posted August 10, 2022 That’s exactly what I’m looking for. I’ll ask my dealer. Thank you! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.