What does いいものの "ii mono no" mean in this sentence?


> おやすみと言ったはいいものの、ついさっき気が付いてしまった私の中の恋心や、呑気にすうすうと寝息を立てるマヤの心の中が気になって眠気が全く感じられない.

I only understand "ii mono" as "good thing" so the beginning of this sentence
isn't making much sense to me (also, not sure if the ending "no" is the
explanatory "no", "koto" no, or possessive "no" particle, or something else).




This ものの is yet another way to say "although". See the comment section. The
part before comma is the same as おやすみと言ったはいいが or おやすみと言ったはいいけれども.

Then what does ～たはいいが mean? This is a set expression explained here:
[「〜たはいいが、……」grammar pattern](https://japanese.stackexchange.com/q/25955/5010)

So おやすみと言ったはいいものの means "I said good night (and things were fine until then),
but...".




This ものの is yet another way to say "although". See the comment section. The
part before comma is the same as おやすみと言ったはいいが or おやすみと言ったはいいけれども.

Then what does ～たはいいが mean? This is a set expression explained here:
[「〜たはいいが、……」grammar pattern](https://japanese.stackexchange.com/q/25955/5010)

So おやすみと言ったはいいものの means "I said good night (and things were fine until then),
but...".

