Thank you for reporting and for your support! I do now understand your problem: live tv is continuing even when you send your PC to away mode and then it does not go to sleep when the recording is finished. This is not correct - live tv should be stoppen on going to away mode. I will try to analyse why this does not work as it should. But this will take some time and maybe I will need your help again.I started MP in debug mode and I started live TV (i.e. timeshifting is ON). Then I started to record 1 TV channel, the recording should finish at 11am, ~10:50am I press sleep button on remote control, so HTPC went to the away mode due to TV recording, and HTPC remained in the away mode, it did not go to sleep mode when the TV recording has finish. The log is attached.
I discovered that in case the TV is OFF (no timeshift), then HTPC goes from away mode (during TV recording) to sleep mode - this scenario works well.