Just a note that I have been trying to track down an easy way to control a mains power point in my iRidium project. There are professional PDU units available with TCP, UDP and HTTP control but they can be quite expensive. Recently, I picked up a TP-Link HS100 smart switch ($50 at JB HiFi in Australia) These are available worldwide. This is originally designed to only work with the manufacturers software, but I found a way to control this with a custom driver in iRidium:
Create a Custom TCP driver with:
IP: address of smart switch on your wifi network
No login/password required.
For commands, use the following:
00 00 00 2a d0 f2 81 f8 8b ff 9a f7 d5 ef 94 b6 c5 a0 d4 8b f9 9c f0 91 e8 b7 c4 b0 d1 a5 c0 e2 d8 a3 81 f2 86 e7 93 f6 d4 ee df a2 df a2
00 00 00 2a d0 f2 81 f8 8b ff 9a f7 d5 ef 94 b6 c5 a0 d4 8b f9 9c f0 91 e8 b7 c4 b0 d1 a5 c0 e2 d8 a3 81 f2 86 e7 93 f6 d4 ee de a3 de a3
I am working on also retrieving the status of the switch so that you can receive feedback.
This could be a cheap, simple and handy way to integrate mains control into your project i.e. fan, coffee machine, pool pump, Christmas lights etc.
Customer support service by UserEcho