EDIT: it just started working again on its own. Can anyone explain how is that even possible?
I'd guess problem was TV end getting confused.
It is quite common for CEC issues to be resolved by unplugging all HDMI from TV, and unplugging it from mains.
We don't have an explanation of why that works so often - we just know it does.