Web cam, optional motion detection. If no motion in X minutes assume it is free. This will avoid cases where the PS4 is drawing power but not "in use" (ie background updates, etc).
it is a good idea! But I think it would not work 100% because the room of the console is very busy, so it would always have motion, people may just walk in front of the TV