![]() This way you can set up and use the HS100/HS110 plugs in any location that has never ever seen an Internet connection, as long as you have electric power and a router. Now you can control it using the tplink-smartplug.py script. Then you connect to your own wifi network and find the plug’s ip address. When it connects to your wifi, you lose connection to the plug. If you make a typo, it can’t connect (obviously) and you can simply try again. Tap on your device, Tap on the settings button at the top right of the screen and move the slider for 'enable remote control' Once it is enabled you will be able to control the smart plug remotely and also link the Kasa account to your Alexa and control it with the Alexa Assistant. With the settings in the picture 3, Kasa will turn off the HS100 at 5:30 pm on Monday. ![]() Click on + icon to create a schedule, for example: With the settings in the picture 2, Kasa will turn on the HS100 at 9:50 am every day. When the plug receives the command, it connects to your wifi and turns off it’s own wifi network. On the Kasa app, go to Devices page, click on HS100, then tap Schedule icon. Obviously, you change SSID and PASSWORD to the ssid and password of your own wifi network. Hi George, This little c-prgramm can decode the messages – just pipe the raw data to it like: echo AAAAI9Dw0qHYq9+61/XPtJS20bTAn+yV5o/hh+jK8J7rh+vLtpbr|base64 -d|./hs1xdec #include int main(int argc, char *argv) ’ Thomas Baust documented the encryption algorithm in a comment (which was unfortunately lost while migrating from Blogger to WordPress): I was able to extract the payload and put it into a simple shell script (update 26 June 2016: thanks to Thomas Baust for figuring out the querying commands). They connect directly to your Wi-Fi network router, without needing a central smart hub. Every single Kasa device connects using Wi-Fi. First we need to take a look at how Kasa devices connect in order to understand the root of this Wi-Fi problem. I was absolutely delighted to find that the payload varies only at offset 43 between the on and off commands it doesn’t vary over time, contains no check sums and is not encrypted. A Kasa Smart Plug with energy monitoring functionality. Now the juicy stuff: the app controls the plug by connecting via TCP to port 9999 of the plug and exchanging a 55 byte payload. And so it came that I left the shop 40€ poorer and with a TP-LINK HS100 Wi-Fi smart plug in the pocket. I haven’t quite caught on with the home automation hype yet, but with everything going on I felt left behind and it seemed like a good idea to use the long weekend ahead and try to catch up a bit. I was scurrying down the home automation isle at the local electronics discounter, firm in my determination to make it without distractions to the computer section, when one of those fancy new Wi-Fi power sockets caught my attention. ![]() I sincerely apologise to everyone who contributed questions and remarks. I realised that when moving from Blogger to WordPress, user comments were lost. TL DR This is about a shell script which controls the TP-LINK HS100, HS103s, HS110, HS200 and KP105 Wi-Fi smart power plugs. Other models in that product line may also work (the tplink-smarthome-api project uses a similar concept to this script to communicate with a wider range of plugs). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |