になっていました

had become; was supposed to

→ に
phrase Rare #26,753
had become; was supposed to The meaning depends on the construction. With a state or adjective, it means “had become” or “was in a state”; in ことになっていました, it means “was supposed to” or “had been decided.” In お待ちになっていました, お〜になる is an honorific form, so it means “were waiting.”
JA: 来週から東京に住むことになっていました。
EN: I was supposed to live in Tokyo starting next week.

長い間空き家になっていました

It had been vacant for a long time.

ナンシーその場所に来ることになっていました来ませんでした

Nancy was supposed to come to that place, but she didn’t.

ある日バイロン目を覚ましてみたら有名人になっていました

One day, Byron woke up to find that he had become famous.

大統領はその月にフランスを訪れることになっていました

The president was scheduled to visit France that month.

どのくらい私をお待ちになっていました

How long have you been waiting for me?

トムさんは少しホームシックになっていました

Tom was feeling a little homesick.

すでに直したつもりになっていました

I thought I had already fixed it.