Three way light switch emulation

Please edit your post above, and format your flow as described here.
The way that you have posted it makes it unusable.