I just found a unique scenario while modifying my crazy complicated ATO code. while it is easy to make an and with pH, time, conductivity, etc. it is not so easy to do so with virtual outlets. After pondering this in my head for longer than I would like to admit, I found the solution using one extra virtual outlet
XandY
Set OFF
If Outlet X = ON Then ON
If Outlet Y = OFF Then OFF
In the outlet you need to turn off when both X and Y are true, add the line
If Outlet XandY = ON Then OFF
This can also be turned into a multiple input and gate as well. Say you want something to turn OFF if X Y Z and A outlets are on, then
XYZandA
Set OFF
If Outlet X = ON Then ON
If Outlet Y = OFF Then OFF
If Outlet Z = OFF Then OFF
If Outlet A = OFF Then OFF
Bookmarks