Oops. Indeed we need separate Open and Closed, not just stationary. Something like:

enum DoorState
{
Open,
Closed,
Opening,
Closing
}