Peanut as a trigger?

You could also use something like this app to report if a device is on if it's connected to your network.