Float Switch Connected To Expansion Relay
Posted: Sat Jul 02, 2016 1:44 pm
Hello - I would like to incorporate a float switch into my setup, but it's needed close by the expansion relay. When I hook it up to the expansion relay, it's not recognized by RA (not showing on RA screen, iOS app, portal, code below not working). I only see the 2 ATO ports that are on the RA unit.
As far as the code itself, I would like to prevent my heater from running if my saltwater Brute is not full. So, I have the float mounted at the top of the Brute with the wires coming out of the top of the float switch. Here is the code I was going to test:
//Turn Off Brute Heater If Water Level Is Low (Box2_Port5 is the heater)
if (ReefAngel.LowATO.IsActive() && ReefAngel.Relay.Status(Box2_Port5)) ReefAngel.Relay.Off(Box2_Port5);
Any suggestions on how to reference the float switch from the expansion relay box? Also, does the code above look right?
Thanks!
As far as the code itself, I would like to prevent my heater from running if my saltwater Brute is not full. So, I have the float mounted at the top of the Brute with the wires coming out of the top of the float switch. Here is the code I was going to test:
//Turn Off Brute Heater If Water Level Is Low (Box2_Port5 is the heater)
if (ReefAngel.LowATO.IsActive() && ReefAngel.Relay.Status(Box2_Port5)) ReefAngel.Relay.Off(Box2_Port5);
Any suggestions on how to reference the float switch from the expansion relay box? Also, does the code above look right?
Thanks!