I don't THINK you can connect the alarm directly to the smart socket. HOWEVER most of them have software for your phone that can be used for direct control as WELL as setting timed events such as a turn on time, and/or a turn off time. Here's what I do. I have my lamp at the base of my staircase set to turn OFF at 1am and then back on at 7am. This way I get light at the base of my stairs for the morning climb down from my bedroom. The software for my smart plug allows me to do this. THIS is the software I have and it works with MANY "smart" items, and MIGHT work for you.....