Tuya CloudCutter & ESPHome Libretuya LibreTiny How To Guide for Beken Chips | No soldering!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so if you've been around the channel for a while well you probably remember that fun times up to your convert right get your out of the cloud [Music] if you haven't it was a cool little way where you could take a raspberry pie and you could take your ESP based to your device or whatever kind of other branded and you could do this kind of exploit where there was no soldering and it would just put tasmodo or ESP home right on your device and boom you took it out to Cloud but then tuya did that whole thing of changing over chipsets and everything well guess what it's back kinda so we're going to show you how to put ESP home calling it Libra tuya right now but I think that name's going to change potentially in the future and it will be hopefully I guess we'll get to that now if you want to do something that kind of help out things there's a current pull request and I'll leave that link down below down in the description and if this does work out for you go ahead and let the ESP home developers know like hey go ahead and merge this on over so we can get this just in straight ESP home and we could do without half of this damn video yeah it's not crazy but there's a whole lot of different Little Steps so uh buckle up it's a lot of information we got all the links down below for everything I even got a full guide we'll go through and all the chapters Jump Around do your thing you don't have to sit through this whole thing but we're going to show you everything that's a lot of information and yeah we're gonna put ESP home on this beckon chipset now some of the things you're going to need is well the easiest by far is a Raspberry Pi and I know probably many of you are going ah you've seen the price of them lately Travis yeah absolutely they're it's that's absurd but I mean everybody's not running this crap for your home assistant anymore you probably got old pies sitting around so you could probably use that if you don't know if whatever if you're still using a pints I guess it's okay um you've got a Nook somewhere some computer you got an old laptop now it just needs to have a Wi-Fi card or adapter or USB or whatever it may be on that particular computer that you can put Linux on it and you can have an access point Wi-Fi adapter there are kind of some devices are not supported and some are but there's so many different variations I'm not going to go through them that's a whole different deal if y'all want to jump into Discord and say hey this one worked for me and that one did whatever I'm just gonna stick with a Raspberry Pi you can do that probably on the pi 3 Pi four and probably even some of the other models the zero or with the Wi-Fi adapter that's kind of built into them I don't keep up with the whole models on that so then of course you're going to need a device that's on the supported list of the tuya cloud cutter and yeah I'll leave all the links down below for you can go check through some of those so pretty much the thing is going to be the same of what I'm going to show here with this particular little plug and it's just a little night light plug if I wanted to show you I'll show you right quick what's inside because that's always the fun part right this one I did pop open it's just Sonic welded and it has LEDs or that actually has five color LEDs around there and just to see I know you probably this is going to be jumping to a different video well it will show how to actually do this without to your Cloud cutter if you have access to the Chip And I know you probably recognize this little chip here and it looks almost like the esp8266 that t-y-w-3s but this is that beckon model and I'll show you we'll go through some different stuff and that's going to be when we're doing some physical flashing of that which that's going to be coming soon so do stay tuned for that so this one's all going to be you don't have to open anything up no soldering or whatnot just gonna be doing it with some little exploits and put ESP home on it so buckle up there's a lot of information and if you'd like it just a comment down below or hit the like or whatever it may be and I do appreciate it and um yeah y'all take care and have fun so of course we got to start out with the not so fun stuff yeah this warning right here keep in mind that once you start to go down this path on your devices or whatnot it's taking them out the cloud cutting them from the cloud whatever you want to call it they're not going to work with your tuya or smart home app or they're because they're going to be local so do make sure you want to do this before you kind of go down this path with your different devices and I'd like to thank all the people behind this one um I'm not going to try to pronounce maybe thousand Prime pronounce Tom's name that one's fairly easy there's a few other ones out there as well that have done things like coasted and everything you've heard him like with some of the switchbot bulbs pretty cool to see some of the same names out here doing this stuff now if you look they do have a list of supported devices they have this big list now it's not very pretty list but if you you can find your various devices in there rock and roll of course I will never get to be able to purchase all those and get them done now there are some other ways to submit some of your firmware dumps if there's not some on this list that you can go through some of the instructions on how to dump things now that does require soldering if you have a device that they've never been able to do the exploit on it doesn't work that's probably a whole different path which we're not going to cover we're going to just go and pick some of the devices that we know actually work for this now currently I am continuing to build some of the stuff some of the ones I get to do and play with and put an ESP home on them I know they do have that firmware that open beckon it's kind of like tasmoda in a way but then not really there is a little bit of Internet drama tied in with that and I probably don't want to touch that one and also it I have messed around with it but in my opinion at this time time it just felt like a learning a third firmware I kind of dabbled in tasmoda of course and then ESP home and at this time I just said hey this is already ESP home was just a different chip so then I don't have to learn anything new I don't want the whole learn a whole different third firmware but maybe in the future we'll get into the open beckon as well but not at this time in this video now right now I am doing some of the devices I'm just mixing them all in the devices on my digibler.com website I'll leave the link down there if you can't spell it but I have put we talked about doing some icons right now I'm just doing the red B it could change in the future that's going to show like that beckon chipset and it has all the setups and the ESP home Yama we will copy that straight in and of course as I do other ones will or other people add them we'll put them in here as well so kind of multiple places where you can go see what people have done things and I've always you can find that Discord link down there and go jump in and go chit chat on the digibler.com Discord server so enough of that let's go ahead and get started and I will do a complete guide on my website that way you can just follow through that instead of just watching the damn video or you can just see how I did this and totally to however you want to do it it does not matter to me now they talk about the zero two w three or four currently right now I did run into an issue and this was I was so glad they had this in the guide was this version of Bullseye so that's what we're gonna go get first is get the correct version of Bullseye 220404 raspberry iOS or razzpi I whatever dot iOS Travis Bullseye it's for the arm and it's light we're gonna grab this big one that's 297 Megs and then we'll use you will need of course the little micro SD card if you want to see that there right everybody knows that micro SD cards we're going to load this up and get it prepared for our pie if you know this part already go ahead and Skip through that and get onto the part where you're getting into the actual pie the markers are down there in the chapters now I am going to use the Raspberry Pi Imager and makes it stupid simple and we can go ahead and fire it up now we're going to say choose OS and remember we downloaded that older version of Bullseye now if they do update the guide where I had some issues then just take if you want to use the latest if they say the latest works now to the guide's updated go ahead you may be able to skip this but I'm just going to use the older version because it works so I'm gonna say use custom and I got that two let's get this out the way it's confusing me the same images so they ever got that 2022 I'm gonna choose storage that's my little SD card 32 gig one thing I do like to check because it makes me lazy you can come in here and set SSH that way you don't have to do that little work around and put the file on there this does it automatically it's pretty sweet just enable SSH I'm using password authentication you can do whatever you want it's just going to be local you're not setting this out on the internet to do your thing there I'm not configuring wireless LAN because remember we need to use that for the exploit so when you do plug in your pie it needs to be connected to ethernet so find out where you can put that and you need to be nearby your devices I'd probably say in the same room maybe up to 10 feet or so just makes it you know reliable connection because sometimes the Pod kind of sucks on the Wi-Fi so I did have my local settings keyboard layout Etc yep that's all good and I'm gonna hit right in yep I want to erase it and hurry up and wait we will jump ahead all right so now we got it's been written we'll do continue and we'll go ahead and close it and we'll eject the card and then we'll go put it in our Pie connect your pie up ethernet like I said if you want to see the screen go ahead and connect up a screen to it like you know TV or whatever it may be HDMI because sometimes they do take a little bit to boot that first time but just not really necessary and we're just going to use SSH anyway so I'm going to use Putty for SSH you're more than welcome to use whatever favorite tool you'd like to get the job done so putting the IP address go find your router whatever whatever the Raspberry Pi is and gonna go ahead and connect to it with regular SSH so I got my security breach because this is the first time I've used this IP you know it's got a different key I just I know I did it hit accept and I'm using that password that I set on the pi image writer now first thing I do like to do because yeah it's right there in your face Wi-Fi is currently blocked so I'm going to go ahead and use raspb config you do have to use sudo raspy Dash config and if you go into localization options go to WLAN country and set your country code for your Wi-Fi then it says wireless LAN set to us yep I'm a tab tab going to finish and it says yep we want to reboot now and you'll get an error message from putty saying it disconnected if you don't have a screen hooked up to it go get you something to drink come back didn't take long to reboot especially I think this is a pi 4 but maybe on the pi 3 may take a little longer so the next thing is I'm just going to leave this behind because there are a few steps that you need to do for to make this pie work correctly for using to your Cloud cutter and this is basically just going to allow us to write that firmware to that device just like the old days of to your convert and sudo we'll copy that one paste hit enter and I'll edit this out so you don't sit through all this boring crap I still need an editor one of these days so we'll hit yes it says you need to edit dhcpd configuration we're going to add this line deny interfaces WLAN so then right click paste page down all the way to the bottom we'll get this in our clipboard and we'll paste hit enter and I'll do control o to write out file name right out and then control X and that exits right back out if you did want to check to make sure you should be able to do cat d h c p c d comp and it should list your deny interfaces wlan0 so then we're gonna do sudo and they say make your file look like this so we've we'll just slide this down make it a little easier so main plugins yep that's all the same now they want a line in here that says DHCP equals internal and then we'll leave this one there and then that's it and we'll control o again and exit and if you really want to cat it you can and look at it it's up to you the next section reboot the pie using sudo reboot pretty simple so far just taking commands throwing them in and doing things now the next step we're gonna do let's see why that reboots we're going to install Docker now don't worry it's stupid simple again we're just copying and pasting stuff we're actually going to put two Docker containers we're actually going to build a Docker container and I'll get to that once we reboot because potentially you can skip this crap once they merge that so please ESP home devs merge this so we don't have to do this crap and build that second Docker container so done with my rant we will copy this command I believe Tony made this guide from what I remember seeing so definitely thanks to Tony for going through this it's just super sweet to go through and just copy and paste copy and paste this takes a little bit of time so uh let's jump to the next install get looks like mine's already installed and then we will clone the two-year Cloud cutter repo and that doesn't take too long now here's the step that we're going to divert a little bit here because then the next part says hey we're going to run to your Cloud cutter and that's going to take this plug which currently has stock firmware on it that's going to take the firmware we make for ESP home and put it on there so we can bring it straight into home assistant but because they don't have it merged yet we need to go and build our own Docker container that way we can make our GUI because there's currently only a fork of ESP home Libra tuya or whatever the name they're going to change it to but that doesn't chipset you can't take the Yama and paste it into your home assistant that you install as your add-on for home assistant just yet hopefully that'll change in the future and you can skip this whole damn section so guess I'll leave a comment or in the description or whatever if you can skip this section so all my commands I don't have it on my web page yet yeah shame on me procrastinator but I'll put all these commands to go through in the guide that way you can make your Docker container so we're going to go ahead and we're going to clone into and get Libra to your ESP home because it's going to make a dashboard on this Pi 4 to manage your device you know to write new firmware changes Etc so you can see how this would be so much easier if it was just in your regular home assistant Docker stack or add-ons or whatever eventually hopefully it will be so then we'll go change into the folder and since this is an arm build which because we're on a pi four now if you are doing this on a little Nook or something like that or a laptop that's you know AMD 64 then you'll need to change your tags for that so what this does take a little bit of time I think like five ten minutes depending on things so just let it eat while that's building we're gonna switch over and go grab the yamo for the globe motion light on digibler.com I'm just going over here to the devices section if you're going to the regular page where it has the news where I sometimes put stuff just hit devices up here and you come over here to plugs and again I talked about this is that ones with the different icon currently I'm using the red B for the beckon ones and we'll scroll down if you want to look at the layout you can if you want to look at the pictures of it whatever or if you even want to edit the page more than welcome to do that and we will have the ESP yaml right here we're going to take and just hit that good old copy and paste and we're going to paste that into the GUI that we build on our pie four to build this firmware but you can see it's normal ESP home code so the only thing it really is different is the board you know it has this libretuya stuff in here that's the only thing that's different right now and everything else if you're familiar with doing ESP home like there's the gpio for the motion sensor there's a restart button here's the stuff for doing the cold white Warm White you know RGB and puts it together so you can have one light entity so it's all normal code for ESP home you could do automations in there if you wanted to to couple you know say the motion to some of the LEDs or whatever it may be it's just ESP home nothing really new to learn which is pretty awesome everything built successfully and then we will go start the docker container to run this stuff and build our firmware so of course I'll leave the is again on my little guide so you can just copy and paste this that will be on digibler.com the link somewhere when I get to put it before the video releases and you should get this crazy code I can be the same probably but uh basically it's saying that it did start that Docker container we should be able to open a browser and go to the IP that you're using to SSH to with Port 6052 and look at that it's ESP home just like you've always known it's we just hit new device familiar with ESP home yep we're going to hit continue we're going to give it a name we're gonna do that globe motion uh the network name I'm going to give it our this is going to be your SSID that this does connect to so do put in the right network name and password we'll hit next and there's Libra to you that's pretty cool they built all this in we're going to hit labor to you it doesn't really matter at this point what board it is even though it is the 7231t you can go ahead and pick it make you feel warm and fuzzy we're gonna override all that with this yaml there from the did you burcom website hit next and we're just going to hit skip because we just want to build the firmware I do have dark reader on so it throws this off I found so yeah but then I get Blinded By the Light one thing I do in here I do have an issue with the discovery of the IPS and I guess the way mdns doesn't work or doesn't want to work so I use static IPS in mind you don't have to do it that way but I'll show you kind of when I go in the yaml and put that in so I'll hit edit and this is all you know the stuff that's just generic in here so we're gonna go back here hit the little copy thing here it should put the green check mark you know it's in your clipboard come back here I'm gonna hit Ctrl a nuke it all and then paste in what I had in here now if you don't have that same issue that I have and just what you can use your Dynamic IPS or whatever you can just leave that there and it should work just fine so we'll hit save and you can go through here and let's just hit validate green check mark good deal so I want to show you that little tip I do I put all my IP addresses and my secrets and I do outside of my DHCP scope and that way I don't have any Dynamic IPS go into these and then I just keep them all in one spot in here that way I don't have to go reference them anywhere and it keeps things pretty simple for me yeah you saw my wonderful password there so I like to put in just these so I don't have to continue to always put they're not really Secrets but whatever then I'll just continue to put down the IP addresses of all my different ESP home devices like I may say plug one and two and I just increment you know my IP addresses that way they're all in here and I can you know manage them in this one little sequence file and then all I do need to do is go back into yaml and I do have to set the static IP the Gateway subnet DNS Etc but that's all driven out of that Secrets file and I can keep everything in one spot I'll go ahead and leave in the AP mode for if it doesn't connect to the Wi-Fi it'll go through the AP motive like Globe motion and the password just ESP not home just hey it's not home it's not on the Wi-Fi right so we'll hit save and now we'll just go ahead and hit install and it's not going to put it on there just yet because we got a cloud cut it first you're going to hit manual download and we're going to hit modern this can take a little while to build the firmware depending on what you have give it time it's going to pull everything down and then it will actually have the firmware on the Raspberry Pi and we just need to go ahead and move it over there's multiple ways to do that but I'm going to show you one way that's really simple to me so it's done and it's going to download a uf2 file to your computer at this time you don't need that file you need the ug file and that does get built but we need to go get it manually um that would be kind of cool if maybe they'll have it download the ug file automatically for you you can see it um right here see it says ug bin but we're gonna go use I like to use winscp you and that's just straight win SCP you're more than welcome to use whatever other tools and if you want to browse to it manually using the command line and move it over that way you're more than welcome to do that as well so basically we can kind of cheat by if you look it says Pi environments Globe motion that's where we need to go look so if we look over I have the docker container running to opt ESP home and you should see dot ESP home I know it is kind of small I think it's build Globe motion yeah we're continuing to get deep Pi or Globe motion finally we're there and you can see there is that bk7231 otug bin right that's the one we need make sure you grab the ug I'm gonna drag it over here to my computer we do need to rename let's just go ahead and rename it globe motion ESP home but come all the way back now the cool part is once we do this in flash it using to your Cloud cutter thing one time you want to do this again you can just if you need to update something on it change it you'd do it over the air just like you would ESP home we'll go back to home did you blur or whatever your ID is you log in with for your computer or Pi look for to your Cloud cutter and then there'll be custom firmware and you need to drag your bin file over there so if you want to do that mainly using command line and copy and dig through there and copy go right ahead because you know it was kind of around the world I copied it my computer and put it back it's kind of stupid but whatever I've done Dumber things in my life so we got our firmware built got it all good to go now we need to take to you off of this damn thing right so let's go ahead and finish out the guide so we jumped off right here and it says run Cloud cutter with sudo such and such now remember always do the dash R because that's for the pi it resets that network manager so we'll go back over here to tuya Cloud cutter go ahead and run this it the first time you do run it has to build a Docker container which takes a good bit but once you do this that first time and you're the second it's not going to take that long of a second wow that's running I have my little power strip here we will plug in there let's turn my light off so y'all can see the wonderful fun of blinking is this a stock plug it's there's I've done nothing to it I didn't even put it in the stupid to you app took it out of the box well I did kind of open it so you could see inside of it but took it out the box and pretty much plugged it in that is it you can see it's in fast blinking trying to pair mode we're not going to pair it up just yet let's wait for this all right so once it's built we're gonna do We're Not Gonna detach from the cloud I don't want to do that I want to go full bore and just make it mine totally that's number two now it should show up our bin file there's our globe motion that's the one we copied over previously and built with the ESP home if you skip that part you should probably go back you need to build your firmware by manufacturer I'm gonna go ahead and pick down now if you're doing a different device you need to pick your different device I'm picking global electric and motion night light pretty cool little menus and this is going to be this the firmware version I'm just only got one to pick out of this one and it does say put it in slow blink mode so hold this button down I think it's like five or six seconds on this one and it's probably gonna reset and go to fast blink mode potentially yeah I don't want fast blink I want slow blink so now you can see it's doing the exploit it's going to connect to the access point made by that plug follow along very important part don't skip this it's going to look like it's doing it again you're going to cycle the power unplug it and plug it back in now I'm going ahead and turn on that looks like it's connecting but don't worry turning it back on now you need to put this back into slow blink mode again after you cycle the power now it looks like it is in slow blink mode already so I'm not going to touch it if it didn't we would need to do hold the button down Etc give it time it should pick up the access point it may say it failed but just be patient it's going to research for it wipe the network manager that's the whole Raspberry Pi font I think but um it should find another access point boom see the different access point it's got that a now we know that that has been exploited and it did work so it's going to connect to the access points gonna run some stuff this is the cool part so just be patient this is I'll just say it's badass okay see how long it took it does take a while but you see that's good so far it's going to send over it's sending over our globe motion trigging update firmware update and progress It's Working guys look we just saw it flicker now watch my ping session behind here if we can uh drag it over here without covering up the fun it says firmware file has been sent checked for signs of activity I just saw it cut off and we'll see if it attaches look at that boom on my network and pinging now this is I I still awesome so many times I've done this but um it's so freaking cool because if you've used ESP home you know what this is this is the freaking web page where you can do whatever and this is the web server of the actual device it's yours it's out the damn Cloud you didn't solder it it doesn't have an ESP chip but guess what you put freaking ESP home on it how badass is that now let's go bring it in a home assistant doesn't do auto Discovery or ESP home devices yours will probably just have it in there I think it's just due to my different network connections and stuff and whatnot so I'll just manually add it myself ESP home even though there's no ESP in it um I'll put the IP address in there leave it there boom we got our unnamed device hit finish have once this syncs up and I did hit F5 to refresh it and should be able look at that the light turns on and The Entity is um yeah I hate this you need to click color and but look at this there's blue there's red purple it freaking works and it's just a night light it's not stupid bright um the of course the warm whites and stuff will be brighter on it than um other things but near the warm White pretty cool that they have all the colors built into it and then you should see watch the motion it says right here it says clear it's got detected motion everything freaking works now the only thing bad I will say right now because again things aren't merged is the dashboard is over on your pie the one that you know it's just sitting on your pie so it's now it should be showing online here shortly I guess it's probably because I need to go enable the Ping that's why um because my different network config but it actually does work I should say logs and see yeah you can see it does work so it's seeing it if we did want to make any yaml changes and whatnot in here we can hit install and you can just do it wirelessly so let's go ahead I just want to give it a shot and let's just see wirelessly it should rebuild and do everything and it will send over using OTA and you can actually watch in the background if we don't cover them both up and it should you'll be at see it drop out and come back so that whole long process of doing the Cloud cutter and everything once you cut them out to Cloud they're your devices and then you can just otam look it's uploading like you normally would you don't have to do anything special and mess with the pie and all that so hopefully they will get this merged in the future and be part of the normal buildup ESP home so yeah look it dropped out off my network and it should come back here once it flashes and reconnects I see it turned on it should connect back to the Wi-Fi get an IP address boom there it is it's back it should be going in home assistant as well we'll just refresh the page there it is we have Cloud cut things put ESP home on it what else more do you want that's badass look at all the freaking devices when I was scrolling through it and everything I'm gonna go look through some of the weird really devices that I can't get in esps like I know right now of course we can get a bunch of stuff that'll come with esps and you don't have to do this some of them even come pre-flashed like the switchbot ones are well those aren't pre-flash but the switchbot bulbs those are stupid simple you don't need to do anything to upload has mode or ESP home to those uh cough Cloud free those are pre-flash Martin Jerry has all their pre-flash stuff the switches and the dimmers and so that's all gonna be easy to run ESP home and tasmoda and just that come pre-flash for you but they're really weird stuff yeah we don't really have a fan controller that has a dimmer and fan speed anymore without having to swap the Chip And I know not everybody wants to do that so there's some other weird stuff I want to go through myself and see what I can go do and potentially I'll add them and if you do some stuff let me know come join Discord post pics and everything and what stuff you converted and um yeah take your out of the cloud let's get it done appreciate you watching this long ass video a ton of info hopefully you'll get enough out of it and I do appreciate all the support all the patreon members and YouTube members who definitely couldn't do it without you and y'all press all the buttons down there and y'all take care
Info
Channel: digiblurDIY
Views: 34,620
Rating: undefined out of 5
Keywords: digiblur, digiblurDIY, home automation, hass.io, hassos, tasmota, esp32, esp8266, arduino, esphome, diy, smart home, electronics, cameras, zigbee, wifi, tasmota w3bs, tuya w3bs, tuya beken, WB3S, libretuya, libretiny
Id: i9HokGpj-kE
Channel Id: undefined
Length: 35min 53sec (2153 seconds)
Published: Mon Apr 10 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.