Well first of all for a door that opens when a switch is pressed you would use interaction 1E04-07. 1E08-0B is the interaction used for doors that open via the death of all enemies in that room. The number you choose depends on what wall you want it on; the first number of the sequence is always the top, then to the right then the bottom and finally the left (04--top, 05--right, etc).
It seems you know already what the Y box is used for so I'll leave that out.
As for the X value, in case you were wondering, it shouldn't need to be touched unless you have multiple switches in your room and you want a certain switch to open the door.
If you ever forget how to make a door then visit the tutorial at:
http://zeldahacking.ulmb.com/index.php?topic=3.0