I would like to create a virtual switch so i can make a routine run when the switch is on. My goal is to use this as an alarm. If the switch is on at 7am, then a routine runs that turns my light slowly.
Is this possible? If so, can you point me to the right direction?