Thanks for the help. I have my relays wired in the NC configuration and I do have the "reverse" option checked. The outlets are all working as intended on the "Equipment" tab i.e. they are on when Reef-pi says they are on etc. I am using a cheap generic optical sensor off of ebay (like this
https://www.ebay.com/itm/Water-Liqu...897133?hash=item361ba2f02d:g:Bj8AAOSwjvJZVa70). With this particular optical sensor, it seems to be returning the opposite value as Reef-pi expects. Here are some examples from the log:
***sticks sensor in water***
Dec 10 14:15:17 reefpi reef-pi[4742]: 2017/12/10 14:15:17 ATO sensor value: 0
Dec 10 14:15:17 reefpi reef-pi[4742]: 2017/12/10 14:15:17 Setting GPIO Pin: 13 State: 0
Dec 10 14:15:17 reefpi reef-pi[4742]: 2017/12/10 14:15:17 Switched on ATO pump
***ATO pumps turns on***
***takes sensor out of water***
Dec 10 14:16:17 reefpi reef-pi[4742]: 2017/12/10 14:16:17 ATO sensor value: 1
Dec 10 14:16:17 reefpi reef-pi[4742]: 2017/12/10 14:16:17 Setting GPIO Pin: 13 State: 1
Dec 10 14:16:17 reefpi reef-pi[4742]: 2017/12/10 14:16:17 Switched off ATO pump
***ATO pumps turns off***
So reef-pi seems to have the correct logic for when the ATO pump is on and off. However, the sensor value seems to be opposite what reef-pi is expecting. Here is the circuit I am using:
As a temporary fix, I could switch this one outlet to not be "reversed" to trick reef-pi into turning on the pump when it is meaning to turn off the pump and vice versa