We discuss the relationship between recent proposals of "atom diodes" or one-way barriers for ultracold atoms and a Maxwell demon valve: in particular the way in which these proposals make use of dissipation via a one-photon spontaneous emission and avoid violation of the second law.