Have a look at this for some ideas ( it is essentially the same, except you are switching off a tv not a light):