How to turn tv of using cec

I am trying to make a screensaver that dims the screen and after a set time turns the tv off.
But i ran into a issue using cec to turn the tv off.

echo "standby 0" | cec-client -s

This turns off the tv, but when i turn it back on it does not connect to cec.'/bin/echo "standby 0" | /usr/osmc/bin/cec-client -d 1 -s', shell=True)

Called from py script also turns off the tv, but again, when i restart the tv it wont connect cec.

xbmc-send -a 'CECStandby'

Does absolutely nothing.

The first being a normal call to the cec client, the second a suggestion from another post here on osmc forum.
What can i do to turn off the tv, but keep cec alive so when i turn it back on it reconnects? At the moment it just does not show up as cec device on my tv anymore

Any advice?