Fix #3261: use the state the host is about to be in, not the one it's ab...

...out to be in for power action notifications