Toggle smart devices at sunset