Control power outlet with Automate

146 views
Skip to first unread message

warpi...@gmail.com

unread,
Sep 26, 2016, 4:00:37 AM9/26/16
to Automate
Hello,

I would like to find a power outlet which is controllable with Automate, prefairable via WLAN.

What I would like to use it for is to turn off charger when battery level is >70% in order to maximize battery lifetime.

Maybe there is a power outlet which supports http request to control it?

Thanks in advance

warpi...@gmail.com

unread,
Sep 29, 2016, 8:58:15 AM9/29/16
to Automate, warpi...@gmail.com
Now I have found other people finding out the protocol of the Smart WIFI outlets. Many of them seems to use UDP protocol. So maybe it is as simple as putchasing one outlet, configure using their proprietary application and sniff the data which is sent when turning on / off.

E.g.
https://stikonas.eu/wordpress/2015/02/24/reverse-engineering-orvibo-s20-socket/

warpi...@gmail.com

unread,
Oct 3, 2016, 5:04:58 AM10/3/16
to Automate, warpi...@gmail.com
Today, I purchased the below outlet. I hope to be able to sniff what packages are sent when activating / deactivating the outlet and then send the same packages from Automate application.

http://www.ebay.com/itm/Household-Wifi-Smart-Electric-Outlet-Remote-Control-Socket-Smart-Power-Plug-/131928204767



Den måndag 26 september 2016 kl. 10:00:37 UTC+2 skrev warpi...@gmail.com:

mickeym...@gmail.com

unread,
Oct 6, 2016, 9:10:38 AM10/6/16
to Automate, warpi...@gmail.com
I have a few standard radio controlled power outlets at home (from amazon). I am controlling them from raspberry pi and Automate controls them through raspberry pi. It works great.

warpi...@gmail.com

unread,
Oct 7, 2016, 4:56:43 AM10/7/16
to Automate, warpi...@gmail.com
Hello,

Ok, but it would be nice to control the outlets directly from Automate.

  1. What outlets do you use?
  2. How do raspberry pie communicate with them?
  3. And how do you communicate with raspberry pie with Automate?

Thanks in advance,

warpi

Mickey Mouse

unread,
Oct 7, 2016, 8:10:39 AM10/7/16
to Automate, warpi...@gmail.com
1. From german Amazon: https://www.amazon.de/dp/B002UJKW7K ... but there a lot of other different power outlets on amazon, ebay etc. They all use 433MHz frequency

I would recomend buying something where the codes are already available because you will not have to look for them by yourself.


2. From german Amazon: https://www.amazon.de/gp/product/B00HULZ3ZO/ ... but you can get any 433MHz transmitter from ebay  ... 
you will also need three jumper female-female cables to connect it, like this one: https://www.amazon.de//dp/B00OK74ABO

Then raspberry pi just have to send the control codes to turn on/off. There a lot of tutorials online...



3. I installed on raspberry pi a web server (nginx) and made a small php script which can be called with parameters (which outlet and which status on/off)  to turn on/off the power outlets. Automate flow calls the url on the web server and control devices.

It works really nice. I control watering system in the garden with automate, lights etc... 

warpi...@gmail.com

unread,
Oct 14, 2016, 5:02:07 AM10/14/16
to Automate, warpi...@gmail.com
I envy you having the possibility to control power outlets using automate, good work! As soon I receive the outlet I have ordered, I will try to make it work using UDP commands and I will post my results here.

warpi...@gmail.com

unread,
Nov 4, 2016, 9:53:36 AM11/4/16
to Automate, warpi...@gmail.com
I have received the power outlet and it is working with the proprietary application which it is delivered with. But I cannot manage to reverse engineer the UDP signal using third part applications and UDP sniffers.

Does anyone have any tips on which application to use?
Reply all
Reply to author
Forward
0 new messages