Remote power outlet home automation tutorial ESP8266

  Переглядів 396,052

bitluni

bitluni

7 років тому

Tutorial how cheap RF remote power outlets can be controlled over WiFi. There is a small error: It is 200µs not ms.
Links to the parts (I get small cut at no extra cost for you):
433Mhz Power outlets US:
s.click.aliexpress.com/e/YNrvNnE
amzn.to/2hE98vF
ebay.to/2hEjHPf
433Mhz Power outlets EU plug type:
s.click.aliexpress.com/e/VRV3rNJ
s.click.aliexpress.com/e/JM3zrfy
amzn.to/2gzTOuS
WeMos D1 mini:
s.click.aliexpress.com/e/jUfAmUF
ebay.to/2skrCE1
amzn.to/2saaoKL
433Mhz RF transmitter & receiver:
s.click.aliexpress.com/e/qFUjaMz
amzn.to/2gKg1tF
ebay.to/2huK0nI
Arduino sketches:
github.com/bitluni/BasicRf
github.com/bitluni/EspRfRemote
Also extended my home Automation Sketch:
github.com/bitluni/bitluniHom...
Previous detailed home automation video:
• Home automation over W...
Subscribe if you want more and have fun!
bitluni's trash:
/ bitlunistrash

КОМЕНТАРІ: 191
@amoghskulkarni
@amoghskulkarni 5 років тому
Let's face it, we all have fondled with the idea of a servo pushing the button at some point
@pacsmile
@pacsmile 4 роки тому
and many of us did it because we didn't know any better lol
@rfjgfude
@rfjgfude 2 роки тому
LOL! I thought it was just me
@AbhishekKumar1902
@AbhishekKumar1902 7 років тому
You know what I found in your video = Fun, Knowledge, DIY and Awesomeness!!
@malkies6341
@malkies6341 7 років тому
I just made it thru the intro and I am dying..... I don't even care if I learn anything anymore, I'm just watching for the entertainment value at this point
@SiLeXnet
@SiLeXnet 6 років тому
Incredible infotainment! Keep it coming! I love your humor and your project are just right between in-depth information and keeping up the pace.
@jasonhaglund1557
@jasonhaglund1557 7 років тому
I have been looking into home automation with the ESP8266 for a while and your videos are the best I have seen on this topic! Many thanks and well done sir!
@buk0wski
@buk0wski 7 років тому
The servo pushing the button got me.
@Chris-yx4gn
@Chris-yx4gn 6 років тому
Scott Stone same here😂❤
@davideflorriani
@davideflorriani 5 років тому
Me same
@user-gs6cc1nj9n
@user-gs6cc1nj9n 3 роки тому
@@Chris-yx4gn دططدططططدطدططدطدططةدةدهعدطةدةدةدةدةدةددطهختدطادطاجدااداطدادطادط0دط
@user-gs6cc1nj9n
@user-gs6cc1nj9n 3 роки тому
@@Chris-yx4gn دددددددددة))))؟ ))؟,
@user-gs6cc1nj9n
@user-gs6cc1nj9n 3 роки тому
@@davideflorriani دطة
@manecolooper
@manecolooper 7 років тому
Great video! More audio and midi projects now that we have a new processor (esp8266) much more powerful and with much more ram (96 k!!! ) Thanks for all your knowledge and generosity!
@guilhermefraga4349
@guilhermefraga4349 7 років тому
Always enjoy your videos, thanks for posting!
@rizalpambudi
@rizalpambudi 7 місяців тому
Genius and creative at the same time. Subscribed.
@thatradkid
@thatradkid 7 років тому
thanks for the extensive description! cool project.
@hopheadeddie
@hopheadeddie 4 роки тому
Hi Bitluni Love your videos and have learned a great deal on the 8266 Wifi from watching. I got a couple of Etekcity remote outlets. I copied your Arduino code and bought the 433Mhz transmitter / receiver modules. I had a problem that I was able to determine that the Etekcity remote outlets have a different ON/OFF pattern. The data bits that control on/off are reversed and they don't use a bit for the channel. The outlets all have separate addresses. 0011=off 1100=on. (Preamble, Address, On/OFF data) I was almost to the point of using a relay to short out the switches..Thanks
@user-iy9lb5jk6b
@user-iy9lb5jk6b 6 років тому
креативный мужик! каждое видео с позитивчиком)
@RoboGeek123
@RoboGeek123 7 років тому
Why do you not have more subs man!? Love the vids. Keep it up :)
@pablom9223
@pablom9223 5 років тому
Hallo, I'm trying a similar-ish project with little knowledge on the matter. I'm using NodeMCU. Just on lil' question, does the phone you're using needs to be connected via WiFi to the same router your little shield is? Or can you do the same thing over celular data / other WiFi? Thaaaanks
@anarki8884
@anarki8884 7 років тому
Thanks for the video, it was fun to watch :) I had also taken a look at these cheap RF power outlets and I was thinking about incorporating them into my existing home automation system using an ESP as a bridge. It seemed like a pretty reasonable solution until I started thinking about security. In principle, anyone can control your equipment with this setup, right? I realize that the risk is probably quite low in most cases, but I don't like the idea too much. I think I would still consider using a solution like this for non-critical sensors, but not for actuators.
@moritzlaszlo3115
@moritzlaszlo3115 6 років тому
This is entertaining and educational at the same time!
@vksalian
@vksalian 7 років тому
Hi, can you please explain, why both RF and Wifi modules used? Is there any special purpose? I thought ESP alone was sufficient.
@uiopuiop3472
@uiopuiop3472 5 років тому
Any chance this could work with the philips remote controlled plugs?
@Really2950
@Really2950 5 років тому
Nice complete solution. I like your videos more and more as I watch. Thanks .
@alexk6585
@alexk6585 3 роки тому
hey great job i made something similar (control an air conditioner outlet using esp via blynk app) the ac requirers about 20a 110v at first everything seems to work yet after a month or so the relay output (com / no) stop executing power while inputs on of works fine what could be the problem? I use a relay which is made for 10 a should i get a bigger one? and i power relay from esp should i power itbfrom a different separate power source? Thanks
@Breeegz
@Breeegz 2 роки тому
So, in order to build a jammer, you would only need to txmit a preamble pulse every 16 cycles? I actually use one of these kits for controlling my Christmas Lights, but I'm still using the remotes.
@ytfp
@ytfp 7 років тому
Great video, not seen a comedy sketch since the girlfriend one with automation. Great channel.
@verishare
@verishare 7 років тому
The Etekcity outlets I have do not have the program button. Have you encountered this? HAving trouble programming the ID with the esp and fs1000 module.
@pandarzzz
@pandarzzz 5 років тому
Thank you for sharing this fun & informative video! 😺🖐
@andydt73
@andydt73 5 років тому
How did you workout binary 28013 from 20bit? I tried to learn but different id!
@JNET_Reloaded
@JNET_Reloaded 5 років тому
I need a diagram for pins i not got a an RX pin in the readme file you made?
@2O3A
@2O3A 7 років тому
bitluni, your absensce troubles me, where is live? the one with printer and question, pls start
@MrBobWareham
@MrBobWareham 2 місяці тому
Thank you for sharing your project It's just what I need, but I can't find the Android sketch, any suggestions would be helpful or another app to do the same job?
@user-me2ih9mw4p
@user-me2ih9mw4p 6 років тому
Hi! It's very interesting and cool! Thank you very much! Now I want to build a smart home based on ESP, and looking for wall switches and wall plugs with the same feature. Actually I've found some but I'am not sure that I would be able to grab their codes and make them work with ESP because of it I want to ask your help to choice that stuff on Aliexpress
@alpakat292
@alpakat292 4 роки тому
2:40 I'm a little late but a logic analyzer would be perfect for this kind of application...
@TheKutia
@TheKutia 7 років тому
I did it with relays, nice to know you can do it this easy tho.
@sushilshrestha5903
@sushilshrestha5903 6 років тому
if we are in different room and have to on or off the light of one room from another room then how we will know that the actually the light is on or off.??
@gazialankus
@gazialankus 5 років тому
Hi bitluni! Thanks for the idea. Your code did not work for me though. I got mine to work with the RCSwitch library, in case anyone is in my situation. However, I have to credit you for giving me the idea to use these plugs for home automation. Cheers!
@FearTec
@FearTec 4 роки тому
Do you have a link to compatible Australian plugs?
@montenegro3167
@montenegro3167 3 роки тому
I have similar switches and done the same thing, however my plugs seems to forgot the remote controller's code. so I after a power outage, you have to re-pair all of the sockets, which sucks.
@billg2345
@billg2345 7 років тому
love it. nice work man.
@EfrainRiii
@EfrainRiii 7 років тому
I love this stuff.
@enriquephan7729
@enriquephan7729 7 років тому
Hello, where can I find more in-depth info? Any useful link will be prety much appreciated!
@digitalthomson1300
@digitalthomson1300 6 років тому
YOU ARE A GENIUS!!! THANKS!!!
@Voquevo
@Voquevo 6 років тому
Hi Luni, love your videos man . Im curious as to how i could connect multiple devices to more than one outlet at a time and control each one separately
@Voquevo
@Voquevo 6 років тому
Hi guys , can someone please help me with my problem :(
@KavehAfshari
@KavehAfshari 5 років тому
Following this process, I was able to reprogram the outlet to the default code. However it would turn the outlet off when I press ON. Pressing OFF doesn't do any thing. I have tried changing the RF_OSC, channel and ID, but the results is always the same. if outlet is ON, pressing ON on the page would turn off. Pressing OFF doesn't do any thing. Any suggestions?
@TomKatom
@TomKatom 6 років тому
which arduino did you use?
@regrom11
@regrom11 4 роки тому
How to remove, clear memory of learned signals in the socket? Is it possible with this grey button? EDIT: the only way i found out: save many times the same code, to roll out the memory slots. Holding the button while entering the socket to the wall deosn't work for me. .
@ranger81de
@ranger81de 6 років тому
Awesome editing skills :-)
@DierafPlat
@DierafPlat 7 років тому
is that just a local connection? or it can use in any internet connection?
@zeffofx
@zeffofx 7 років тому
Your videos are great, Hope to see more of your content! How about a tutorial on esp8266 programming over the air?
@northshorepx
@northshorepx 7 років тому
Rai Blue-spark check out Andreas spiess' videos. Lots of cool esp8266 stuff including ota
@ronik330
@ronik330 6 років тому
Or you could use it with broad link pro.
@WaschyNumber1
@WaschyNumber1 5 років тому
Would be a ssr better than a normal relay?
@sandychatterjee7457
@sandychatterjee7457 7 років тому
Can you show us how to control a relay with nodemcu esp8266 Thanks.
@LatinDanceVideos
@LatinDanceVideos 4 роки тому
Just found this. Pretty cool. I think the sonoff devices make this redundant now.
@anumsheraz4625
@anumsheraz4625 6 років тому
That was AWESOME !
@abdallahkh4511
@abdallahkh4511 7 років тому
(hello bro i use it but when press off pin stell high ???????????
@othmanmirizi6465
@othmanmirizi6465 4 роки тому
i can turn on my device from the webserver with the link, but i cant turn it off with the link? can you help me?
@ggbot1627
@ggbot1627 6 років тому
hi, How to get URL constucted and called. #pls
@Xh3lar
@Xh3lar 7 років тому
Hi, what's the range with that tiny antenna you wired? I see you are powering it with 3.3v, wouldn't the range be greater if you gave it 5v? I've read a lot of stuff about these 433mhz modules, and the range is sometimes low even with 12v arduino power. Thanks
@AndersJackson
@AndersJackson 7 років тому
Xh3lar the length of the antenna is more important. And the device are designed to work with the right voltage. Wrong voltage will ruin the device...
@sitinuraliajasmin2038
@sitinuraliajasmin2038 7 років тому
hello sir, can you continue your keyfinder project by connect it to android phone
@northshorepx
@northshorepx 7 років тому
Thank you. Very good video.
@Pistolonly1
@Pistolonly1 6 років тому
U mad scientist, broh.
@marcingrabarz2755
@marcingrabarz2755 4 роки тому
You are amazing!
@matthewfelgate
@matthewfelgate 3 роки тому
Great job.
@nfkeller
@nfkeller 7 років тому
hi, i need the circuit diagram, thanks
@leno6019
@leno6019 5 років тому
can you please show, how to rgb with the brwoser methode?
@andreamitchell4758
@andreamitchell4758 7 років тому
great SFX ! nice informative vidoe but i think it is cheaper and easier to just buy a broadlink pro i just got one for $26 US too bad it is not working with my old RF sockets they may not be in the RF range , what i would like to know how to do is to control an adressable LED strip with an esp8266 , is that posible?
@rickpercy87
@rickpercy87 6 років тому
Nice idea! subscribed!
@ArielDeil
@ArielDeil 6 років тому
Nice! But there is no security over the RF signal. Anyone can mess with my outlets. Am I right?
@Jorge499
@Jorge499 7 років тому
great video!
@manokaran2036
@manokaran2036 4 роки тому
super bro
@olafnielsen7757
@olafnielsen7757 6 років тому
Excellent. Whats your profession?
@cad3175
@cad3175 7 років тому
..thanks for sharing :)
@Guyfromhe
@Guyfromhe 7 років тому
I went to see what these things go for and I found a ton of knock off Wemo's (WeWo) for $12 already wifi controllable outlets on eBay...
@orhan_erdem
@orhan_erdem 6 років тому
how about the additional power source? Can anybody give me link for this
@franciscojael
@franciscojael 6 років тому
hi, i cant compile my program, it said that rf.h does not exist, what is it? can you help me?
@SHo-84
@SHo-84 7 років тому
Hi, thanks for the great video! I've just tried it out but don't seem to get it working. The funny thing is: When I'm trying to reprogram the adapters it seems to work (the LED stops flashing as soon as i send a command) but afterward it doesn't recognize any command I'm sending. Do you have any suggestions or tips?
@SHo-84
@SHo-84 7 років тому
Nevermind, I've found the error. My Adapters are working with a very different coding of the signal.
@tomasmandorf1498
@tomasmandorf1498 7 років тому
hey, also did not get the thing to work. Mind sharing what coding you used?
@AndersJackson
@AndersJackson 7 років тому
Tomas Mandorf there are many different protocols, depending on manufacturers etc. I uses Telstick to manage that for me. They have information about controlling 443 MHz radio controlled devices on their web site. It is a USB dongel where you just tell it what command to send. Very neat, and works with OpenHAB.
@shimashoshoo7325
@shimashoshoo7325 4 роки тому
Excuse me i need your help to program ESP8266 woth IRremote send
@ioonerbe
@ioonerbe 6 років тому
The antenna length is very important :) (quarter wave length)
@bitlunislab
@bitlunislab 6 років тому
Good point!
@aquariusshazz
@aquariusshazz 4 роки тому
hello Bitluni, i want to use this project by using VirtualWire.h library ...if it is posible then how do i code? for transmit "fx001" like codes plz reply i already made project using VirtualWire.h library, regards, Saad Lala.
@bhavinrathod406
@bhavinrathod406 7 років тому
hello , I have got question but there is nothing I could find on web, if we use relay for switching home appliances ,there is a chance that some time relay get sticked and contacts are get messy due to sparking so is it wise thing to replace relay with triac ? or triac have also some demerits , I hope u know solution and give me guidance about it
@PsiQ
@PsiQ 7 років тому
Bhavin Rathod Hello there! A Relay is much safer/easier to use than triac, if you keep to the designed relays specs. switching high capacitive loads like pc-power supplies will of course burn your contacts with high inrush currents, but just use higher rated relais, and/or switch both phase and null, not only 1 phase. (i think snubber cuircuit is the term to search for). even if one contact sticks the other one still cuts off. A triac will always have a small current flowing through it, which kind of annoys me and/or leads to slight lighting or blinking of lights/leds...(charging of cap until voltage triggers start then discharged...and again). triacs also need overvoltage protection/surge + heatsinks added, so only really good if you have to dim/pwm something. easy&reliable => Thats why relays are still massively used in car applications...
@bhavinrathod406
@bhavinrathod406 7 років тому
This is the perfect answer sir , thank you so much I really admire your work😊,thanks alot
@kotraner
@kotraner 5 років тому
How i can find video of 1:50 . Cant find one
@JPDicamVlogs
@JPDicamVlogs 4 роки тому
Please make a video about an very cheap (SONOFF WIFI SWITCH) that you can buy for about 4$ to 5$.
@Hukkinen
@Hukkinen 2 роки тому
Bought a knock off and it was part of a botnet last year LOL. My ISP contacted me (automatically) and notified my IP being used for port scanning LOL. Better check your's, too! :)
@sidhudalwinder
@sidhudalwinder 7 років тому
Hai this dal your dem performance was fantastic, I wonder why you break the speaker, I would like to communicate with you regarding Arduino sound projects for fun . thanks
@pg1080
@pg1080 7 років тому
Hey, great video! Everything went well after i tried to replicate it. I took all the components you recommended but unfortunately onky the pairing seems to work. No Command is switching the device on or of. As I said, the paring seems to work LED starts blinking fast after paring. Any Suggestions? Thanks a lot =)
@janghalib2078
@janghalib2078 5 років тому
Did you end up figuring it out ?
@smartronics4284
@smartronics4284 4 роки тому
„SEEM to be certified“ 😂😂
@mudokin
@mudokin 5 років тому
Genau das wa ich gesucht habe. Jetzt braucht ich nur noch das Geld und Motivation.
@ajaybnl
@ajaybnl 5 років тому
Amazing
@juansebastiandurangomontoy3431
@juansebastiandurangomontoy3431 7 років тому
MUY BUENO COLEGA
@JMTosses
@JMTosses 7 років тому
Great video, Luni! But ... but ... but ... do you get confirmation for a received signal? In a normal flat it's probably not a big deal and you should be well covered by - as you proposed - sending the same command a few times but in a house or for outdoor use you would really want an "ACK" of sorts, right? I've been using 433 MHz radio controlled outlets for some projects but those proved to be unreliable which is why I lately started to move everything over to mySensor and/or ESP-01 controlled relays that receive MQTT commands and return MQTT states for added reliability. Anyway ... sweet video! Hope you'll be sent a proper DSO by a viewer. In case you receive too many, please consider sending one my way ;) Cheers and thanks for sharing!
@bitlunislab
@bitlunislab 7 років тому
Sorry, those outlets are only unidirectional. You can't be sure if the code arrived. That's why I send a code multiple times. If you need a status answer, you have to use a relay module. You can take my homeAutomation sketch from my other video and use the setPins function to control the relay. Using the WeMos relay shield might be easier than the modules I used before.
@JMTosses
@JMTosses 7 років тому
Thanks for the reply. Yep, that's what I thought. I run my own sketches for MQTT pubsub with ESP-01 and simple 5V mains relays. I also use mySensors sketches for the relays I use with Arduino Nanos or Pro Minis and nRF21L01 transceivers. Would be great to find something cheap and hackable that does send ACKs and already features a Schuko socket. Or even cheaper SonOffs. Well, we can always hope. Anyways - love following your channel - great stuff. Cheers and thanks!
@ylaw2092
@ylaw2092 5 років тому
How far i can do that by android?
@AlekseyGureiev
@AlekseyGureiev 6 років тому
How do you solve the problem of getting a different IP address from your local WiFi router on reconnects? I would suggest using an mDNS to assign local network names (like "lamp.local") to your Wemos-sockets. This way, you can always access them by name.
@bitlunislab
@bitlunislab 6 років тому
great idea.. but I had lot's of problems using mDNS, I really tried. But it's an option
@AlekseyGureiev
@AlekseyGureiev 6 років тому
I'm having problems only with Android devices. They don't support mDNS to my best knowledge. Mac / PC and iOS support perfectly.
@drkastenbrot
@drkastenbrot 7 років тому
ever tried blynk? man this would be insane with blynk
@golangNinja29
@golangNinja29 7 років тому
hey hi nice video man hey i am getting problem with that arduino audio sampling in bin2h converter it justs opens and close i am unable to copy the full content because it just opens and closes plz help bitluni
@bitlunislab
@bitlunislab 7 років тому
wrong video to comment on.. but understand you... try this: bitluni.net/2016/12/19/no-more-bin2h-exe/
@harounhajem7972
@harounhajem7972 7 років тому
Awsome!
@AlexTheKid85
@AlexTheKid85 7 років тому
great :) , is it also possible to dimm?
@AndersJackson
@AndersJackson 7 років тому
AlexTheKid85 yes, but they work differently, with different protocol depending on manufacturers. I uses Telstick USB device with OpenHAB.
@itmemo8617
@itmemo8617 7 років тому
Nice intro
@Havalitoswe
@Havalitoswe 6 років тому
5:28 "youporn" hahaha :D busted
@surzsanz3988
@surzsanz3988 6 років тому
Lol :D
@Jorge-ub3we
@Jorge-ub3we 6 років тому
XD
@bitlunislab
@bitlunislab 5 років тому
This was obviously an intentional hidden easter egg 😅
@egemens
@egemens 5 років тому
lonely but automated
@saeed6993
@saeed6993 3 роки тому
@@bitlunislab i am gonna check the website , you know for engineering purposes
@derjim966
@derjim966 6 років тому
Hast ein Abo
@poweredbysergey
@poweredbysergey 7 років тому
Nice
@D0ct0rDTV
@D0ct0rDTV 7 років тому
How it names the app you using for button widget?
@Mr2011Sami
@Mr2011Sami 7 років тому
I had to slow it down and got this, ukposts.info/have/v-deo/h4-Um5yhbYmatY0.html Its something simailer to this app "http request widget" play.google.com/store/apps/details?id=com.idlegandalf.httprequestwidget&hl=en
@jenshuxley
@jenshuxley 6 років тому
Ich würde mir ja eine stromsparendere variante wünschen... ich habe meine 6 Steckdosen gestern wieder zurück gegeben nachdem ich 0,7 watt pro dose gemessen habe, wollte sich mit ein Pie2 und einem Handy steuern aber so viel idle verbrauch mache ich nicht mit. die idee ist nun ein switch der strom auf einzelne kanäle verteilt und nur ab gibt was er auch verbraucht aber wie genau ich das am effektivsten hin bekomme darüber grübel ich noch.
@bitlunislab
@bitlunislab 6 років тому
a board with multiple relays would do.. but will be lots of wiring etc. plz, share it if you figure it out :)
@navrajsinghnavi
@navrajsinghnavi 5 років тому
The intro.... 😅👏👌👍👍
@pissmilker2313
@pissmilker2313 4 роки тому
The CE logo doesn't mean it's certified. It stands for China Export
Home automation that's private and local?! (Home Assistant Yellow)
19:49
Jeff Geerling
Переглядів 893 тис.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Переглядів 507 тис.
одни дома // EVA mash @TweetvilleCartoon
01:00
EVA mash
Переглядів 2,7 млн
Гражданская оборона 2024 - 16 полный выпуск
1:04:15
Телеканал ICTV
Переглядів 1,1 млн
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
Solar Weather Station [WiFi, MQTT, Smart Home, ESP8266]
11:06
bitluni
Переглядів 183 тис.
How to do Simple Home Automation with Amazon Alexa || ESP8266
8:05
GreatScott!
Переглядів 795 тис.
I made a VGA card that blew my mind
15:44
bitluni
Переглядів 414 тис.
The BEST LED Strip You've NEVER Heard Of + WLED Compatibility!?
10:51
Chris Maher
Переглядів 195 тис.
Control ANY COMPUTER with these Pi KVMs!
17:46
Jeff Geerling
Переглядів 789 тис.
Cheap Risc-V Supercluster for $2 (DIY, CH32V003)
9:02
bitluni
Переглядів 236 тис.
Опасная флешка 🤯
0:22
FATA MORGANA
Переглядів 547 тис.
СКОЛЬКО ЕЩЕ БУДЕТ АКТУАЛЕН IPHONE 13?
14:10
DimaViper Live
Переглядів 56 тис.
Лучший телефон на андроиде?
0:25
Опросный
Переглядів 116 тис.