Breakout box question

thesoulpatch

Well-Known Member
View Badges
Joined
Oct 7, 2017
Messages
598
Reaction score
335
Rating - 0%
0   0   0
I'm adding lights in the cabinet, and wanted to get some help here. I was going to add these switches to my two doors so that when they are opened the light turns on. But my question is how would I code it so if both doors are open the light is on, or if either door is open the light is on, and the only way the light is off is if both doors are closed?

I figure:

set off
if Sw_1 open then on
if Sw_2 open then on

does that work or no?
 
As an Amazon Associate we earn from qualifying purchases.
I have the same set up and used similar reed switches to accomplish the same. I have 4 doors, each of the switches are labeled accordingly. Here is the code:
Fallback OFF
Set OFF
If Door_1 OPEN Then ON
If Door_2 OPEN Then ON
If Door_3 OPEN Then ON
If Door_4 OPEN Then ON
If Power Apex Off 000 Then OFF

I power monitor my apex, so the last line is in the rare case the apex looses power and I go to battery back up.
Hope this helps!
 
Okay awesome, so it really is that easy awesome thanks! Now to find a light and set it up.
 
I found a 24v strip LED light that I was able to wire directly into the 24v port on the EB832. Less wires and easy to control. Just program the 24v power outlet as the on/off for your doors. Easy!
 
oh i like that idea, less wires would be awesome. would this work, or does it need to be waterproof? @jassermd
 
Last edited:
As an Amazon Associate we earn from qualifying purchases.

IF YOU HAD TO TAKE A REEFING EXAM, WOULD YOU PASS?

  • Yes!

    Votes: 32 45.7%
  • Not yet, but I have one that I want to buy in mind!

    Votes: 9 12.9%
  • No.

    Votes: 26 37.1%
  • Other (please explain).

    Votes: 3 4.3%

New Posts

Back
Top