Lights on with I/O

Basic / Standard Reef Angel hardware
Post Reply
Lionfan
Posts: 166
Joined: Wed Nov 26, 2014 8:53 am

Lights on with I/O

Post by Lionfan »

My flot switches are open now that I have a water level sensor.
I've tried copying and pasting skimmer code,but can't figure it out.
I would like one float switch to be a toggle switch, and cut on all the lights,
and the other to cut the skimmer off in the event of the cup being full..
Any help here?
Image
User avatar
cosmith71
Posts: 1437
Joined: Fri Mar 29, 2013 3:51 pm
Location: Oklahoma City

Re: Lights on with I/O

Post by cosmith71 »

Skimmer code goes something like this:

Code: Select all

/ Turn off skimmer if skimmate locker is full
  if (ReefAngel.HighATO.IsActive()) ReefAngel.Relay.On(Skimmer);
  else ReefAngel.Relay.Override(Skimmer, 0);
Replace "Skimmer" with your skimmer port. This example uses the HighATO. You can use the LowATO if you like. You might need to use !ReefAngel.HighATO.IsActive() (or LowATO) if it works backwards.

This sets an override on the skimmer port. You'll have to clear it with the App or just reset the controller to clear it.

The lighting is a little more complicated. We'll need to know your lighting setup, if you're using dimming, etc.

--Colin
Post Reply