Controlling TP-Link Kasa Smart Switches with PowerShell
Recently I installed a few TP-Link smart light switches in my house to make turning certain lights on and off easier. I've been using them for about a month and they integrate perfectly with my Google Home Mini too. There was one thing missing though - being able to turn the outside lights on and off at sunset and sunrise. At first I went looking for a scheduling functionality in the Kasa app but found out that in order to get scheduling functionality you need to purchase a smart home router to enable the functionality. Next I tried setting up the popular IFTT app on my phone and it worked - sort of. I was constantly having trouble running the routine on a regular basis. Some days the lights would never turn on, and other days they'd never turn off. So I set out to find a better solution. I've recently been working with REST API's at work and I got to wondering if there was an API out there to work with Kasa devices. After some googling I came across a coup