Yes, you are exactly right. Also note that "you were coming" is not conditional; it is a noun clause serving as the object of "known": If I had known X (i.e., something, a fact, etc.) I would have made dinner. So congratulations! You're not confused at all :)