Switch on a device at sunset