OptoCoupler as a switch (or other options?)

@bosulli, do not cross-post. Other thread removed.