UPDATED Tuya-CloudCutter with ESPHome Beken Devices | How To Guide Home Assistant

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
so we've done that video on that Libra two-ya tiny whole thing where you can put your open source firmware over the air on all of your devices that have those new Beck and chip sets that you couldn't use to your convert on because yeah taking your out of the cloud is just damn cool and you should probably do it instead of relying on someone else's internet and Cloud to control the stuff in your home that you paid for well we got to do the guide again because the cool developers just made it 10 times easier [Music] now there's going to be a lot of information it's a buckle up but hey we're gonna put all the chapter marks down below that way you can skip around to all the crap you want and because you've done this before but well what is just easier yeah skip on past the stuff with how to build the Raspberry Pi or put cloud cutter on whatever it may be to run the exploit so what is how this kind of works I know maybe it didn't touch on that much in the whole why of things imagine that you're taking your smart plug and yeah you gotta to be able to use it put it in a home assistant and everything or whatever it may be you would have to put it into the two year Cloud which is goes on to the internet on their servers so anytime you wanted to control it you would actually have to send a command out to their server and then it would come back to the plug to turn on that's just stupid you want it to stay inside your network and you want to be able to do a bunch of other cool stuff and add features to I mean you paid for this right so why not do that so that's where this Cloud cutter stuff comes into play now how does this kind of work well basically now I'm using a Raspberry Pi they are getting a little bit easier to obtain and the prices are coming down on those luckily there are other options and say like you could run laptops or VMS with certain wireless cards that can do an access point that way you don't have to go hunt down a damn Raspberry Pi so but how this works is imagine that I'm taking this smart plug instead of pairing it up with two years Cloud we make our own little fake Cloud that this Raspberry Pi puts out puts out an access point you pair this up with it and then it runs an exploit and opens this up and allows us to put our open source firmware on the plug how cool is that the cool developers have really made it really simple to go through all the scripts and it does this in an automated fashion and then I'll show you how to even put your ESP home firmware on it and pull the config from the little website or even the plug itself and that way you don't have to go figure out all the pins and everything you bring it in to home assistant and it will have ESP home and be folded right in and be open source and be yours now if you've already built your Raspberry Pi 44 to your Cloud cutter you can just update to the latest version and then you don't even really need the libertuia or Libra tiny ESP home stuff on the pi 4 anymore if you built that in the previous video I did several months ago and because now you can use the haos add-on or you can use the docker container already pre-built on your existing home assistant Docker stack haos or whatever you may be running home assistant on and if you really want to you still can you could put Docker compose on the pi 4 you can do whatever you want but the cool part is the docker container and add-ons are built already for you and we're going to get to that of course you can find that chapter down below and you can skip past building that Raspberry Pi 4. but do make sure you update to the latest to your Cloud cutter on your Raspberry Pi 4 because we'll be using some of those new features built into it so my previous guide not a whole lot is going to change for building the pie I will say I recommend because of some of the changes still download this older version of the raspbian and of course if you don't want to use a pie if you want to use a pi zero two or whatever it may be or if you want to just do a VM or with Debian or whatever on your computer make sure it does have a supported card that supports the access point mode because that's how this kind of works it makes an access point and it fools the device and it gets on that access point of course you can come over here follow all the instructions on the Toya Cloud cutter GitHub itself I'll leave all the links down below and you can jump in so we're gonna go download this and I will do the updated guide on my website again just because I did screw up on one section on the previous video and this got 10 times easier we don't do the docker stuff really anymore so I'll go ahead and put the little micro SD card in I'm using a Raspberry Pi 4. this should be fine on a three as well so we picked our 220404 and we'll go ahead and hit the little gear don't forget to do this this is enable SSH use password and you can come down here set your password this is it remembers it from the last time I did all this and we're not going to be using the WLAN stuff and go ahead and set your local settings Etc so you hit save choose storage I'm using my 32 gig card and hit right and go through and accept accept of course if you want to take a moment subscribe like shoot a comment dislike or just come jump into Discord and hang out with a bunch of cool people you can do that too you'll find the Discord link down in the video description so once it's done hit continue we're going to eject it and take it out and go put it in the Raspberry Pi 4 connect it to ethernet attach it to your network give it a few minutes let it boot up and go check for that IP address and we're going to SSH into it using putty or whatever tool you want to use so if you get the security breach just because we rewrote it and saying the device change and maybe something's trying to hack us but I know I did that I'm gonna hit accept login as the ID that you set and the password that's going to give you this message about Wi-Fi is blocked and of course we're just following along on the guide here is right here it says says if it shows blocked we need to run you can copy and paste this because I hate typing and do sudo raspb config we'll paste that localization WLAN and pick your country you can hit the U you'll hit tab tab finish hit enter would like to reboot now say yes go ahead and wait again takes a little bit to reboot the pies aren't the fastest things but hey they work great for this all right we're going to do a restart session and we got the Wi-Fi message is gone so now we can continue on with the next step so we'll go here install network manager so we'll do this whole section here paste this in hit enter again this is going to take a little bit if I ain't the fastest thing on the updates so once it's done yes so you can install the stuff and we're gonna go and add this line to this config file we'll just paste that in we'll leave that down there below and we'll go all the way down page down all the way and we are going to copy and paste that deny interfaces space w land zero control o enter and exit if you really want to check the file you could just you know open it back again and it should be there you're good to go then we'll do the same for this file and this is where I screwed up last time but apparently didn't impact it much and we need the file to look like this so main plugins if down key file and we need to add DHCP internal main plugins if up down comma key file DCP internal if up down manage equal true now we can reboot the pi with sudo reboot and let it eat it's going to kick us out again we'll wait again and we will restart the session again and now we need to install the docker service and wait again we have Docker installed go down we need to do install git all right already installed and now we need to get clone the to your Cloud cutter now the guide says this is going to change because this is where things got so much easier we're not going to deal with ESP home until after we cut our devices and put their third-party firmware on them yeah it gets stupid easy so I'm gonna go to cd2year dash Cloud cutter and we're going to paste in the to your Cloud cutter sh Dash r that is for the Raspberry Pi that Dash R may be required but go look at some of the other instructions on the to your Cloud cutter GitHub because again this is going to be for the pi 4 if you're doing something different like your own little VM deal the first time it runs it has to build this container but after that it doesn't take forever to do it's just this first time so yeah sorry you have to wait once again now this is the first time you've run this you may be wondering well what other devices can I run this on tons of them and there's even many that we haven't even tried yet it's gonna be all of your beckoned devices that have the two year back in and there has to be some of the different versions not the very new versions but we'll go over and how to find some of that stuff um if you want to look through some of the profiles you can find this on the tuya cloud cutter devices list has all the damn devices all the layouts everything you need and I'll show you even how to auto build your own ESP home Yama without having to code all that yourself which is the cool part of all this so we're going to try the power strip above my head here we're gonna see if we can do it without having to grab any profiles and whatever I want to see if that works I've done it on a light before and it is pretty cool flash third-party firmware don't do the cut thing and run to your local thing maybe you can find another YouTube channel that'll help with that but we're doing our own firmware because it's cool and stuff option two okay let's try it twice now there's two options here which can be confusing course number three it's brand new you don't have an existing profile you haven't done anything before number one is by manufacturer device name now you can click it go look through and maybe find the one that is you know say power strip a you know with ABC brand and you can try that one and see how it works and that way you don't have to pair it up and with the two-year cloud or anything like that if it's something brand new you just can't find it in the list you need to go pair that up with the to your cloud and then if you go in there and hit device update and it should show you the firmware version and you can go try the firmware version it doesn't matter what it is say your firmware version is 1.07 well go find something in there that's 1.07 there might be four or five devices try the first one if it doesn't exploit oh well pick the second one pick the third pick the four until hopefully you have one that did the exploit and then we can pull the information from it so I already know this one this is that Xenon I believe they have a profile for it already we're going to try that one out there's that Xenon insta p301 power strip we'll hit enter see this is 1.18 if I were to pull up the two-year app once I paired it with the cloud then probably the version would be 1.18 if they do change the versions it does the profile doesn't work then you'll just have to go find another device hopefully that one will work and then there's even an advanced feature but we will get that in the future video of how to actually pull the firmware so they can build a profile off of that for other users so you can help the people out now the next part this is the new feature that we're using of it which is awesome gotta put ESP home Kickstart on it now if you want to do open beckon that's a different firmware um I'm not really learning that one right now I'm just kind of sticking to the ESP home Kickstart because we're going to use it with the ESP home like all the ESP devices Etc straight with home assistant so we'll put the Kickstart on it and it's going to tell you about putting this in slow blink mode and you can see the blue light there I'm gonna hold down this button now if it's a light bulb you will need to do like that five cycle thing and it's gonna go into like Fast blink mode and you'll see what I'm saying when I see this every device is going to be a little different if you don't know look in the little manual that comes with the device but mainly if it has a button you can probably hold it down see you don't want fast blink you want to hold it down again and you'll get the slow blink give it a second it should start back up and you'll notice it picked up and said hey I found that access point it's going to run the exploit on it just be patient here that's the key and also make sure your devices are not clear across the house you do want them nearby one another now it ran the exploit and let's go ahead and power cycle it so unplug it or whatever you need to do and then I'm gonna turn it back on now it may right here fail and that's just a bug kinda really with you know using the raspberry pi don't freak out it's going to eventually find it so I actually had it all so how would it find the access point if there's no power right give it a second now it's going to tell you to put it back in slow blink modes that's what we're going to do here so we're doing the five second hold on the button and of course you've got the light bulb you're gonna be blinking it off and on like crazy maybe use a Smart Switch or something like that or smart plug that way you can turn that thing off and on real fast um it's in fast blink you don't want fast blink and hopefully you'll see and see it says a dash it's going to be different for yours but you know when it says A minus boom it's got it it ran the exploit it cut it out from the cloud and now it's gonna put just be patient it takes time and it will put the ESP home Kickstarter on it and it's going to put then we'll put our own firmware on it so then once you start to see all this stuff go by that's the really exciting part you know it's working don't touch anything because then right after it's finished you will need to pull up an access point mode basically use your phone or you can use your web browser on actually your laptop or whatever your phone's probably going to be the easiest thing and then attach that access point so what you're going to be looking for is you can see it right here in the bottom of my screen that's Kickstart bk7231 it might be a t depending on your chip type mine's an end don't worry about the change there you need to attach to that access point and the browser is going to pull up you will need to connect to your Wi-Fi now if you're really one of the advanced users and you already know you can see maybe go in the future you're doing a bunch of these if you you can build your firmware beforehand and you could push it right over right here if you wanted to that's up to you I'm going to go ahead and attach it to my Wi-Fi now while that's attaching let's go get the LT chip tool that's going to build the yaml force out of ESP home without having to do all that stuff of course I'll leave the link again for this LT chip tool go over here go to releases it's like 4.2.3 you're going to download it now if mdns and everything is working on your network you can just ping this host name that yours may be T versus n if you want to find that IP address otherwise you know use something like fing or look on your router Wi-Fi access points or whatever look for a recent device with this host name and browse over to that IP address this will be ESP home now of course nothing is really built for you this is Kickstarter now the cool part about Kickstarter if you really wanted to go through you could go through and pick every pin go pick input output you could go figure things out kind of the hard way now we downloaded that LT chip tool and it has a function that it will go grab the config on a lot of devices pulls up if you go over here go to up2k ESP home and if you say grab from ESP home Kickstart yeah you can already see where we're going with this then we'll put in the IP address of the device or you could put that hostname if you want and let's hit OK and you'll see it's already pulling all the data from there and how badass is this it found the config relay one is p8 P6 p24 P20 and those are all just the internal pins on the actual chip and that way you don't have to go figure out what all the relays are and everything and look it even found the button and the LED is there it's inverted it's false the awesome config is there it's that cool then look at all the options here you can leave all that defaulted because yeah we can just copy and paste that into ESP home but that leads us to that next part we need to go put ESP home the current build of Libra tiny does not folded into it's not merged yeah it's still not merged into ESP home itself so you do need to go run a separate add-on or a separate Docker containers but look quickly you don't have to build that yourself now depending on what system you run whether you're haos you know you do your own add-ons things in the repository kind of the point and click we're going to walk through that it's going to install as a second copy of ESP home of course because it's not merged into the main base of ESP home just yet of course since I'm doing this video now they're probably going to merge it the day after I release it and just invalidate the video now they'll make a third version for you guys but we'll always keep the guide updated on my website so just go over to digibler.com for any updates on that the other method are if you want to do Docker compose you know who you are you do your own thing no supervisor you could run the docker container yourself you can do Docker run and even the docker people over on the unraid side you want to run it there I've made it a little template for you if you just look for ESP home Libra tiny there it is this will install now do pay attention that you have the GUI set for 6053 because again we're going to have two copies going on I know they give this little error here so it it automatically fixes it back to 605.2 if you have another copy of ESP home going you will need to edit your template to say 6053 and to do that just hit install on it if you go down and see it says basic View and there should be the GUI port yeah right here if you see the web UI change that to 6053 and that's going to match up with the web UI down here that way when you click it it will pull up the GUI correctly if you want to leave everything else just hit apply and what the web UI should point to 6053 and you can see down here it says 2023 7- Dev and that's how you know you're on the right one now if you're doing your own little thing with Docker compose Docker run you can just use the docker compose stuff here off of the libertini docs you can install your deal here run your own container and do your thing there do keep in mind if you have two containers don't have this one stepping on your other one which is on 6052 just change the port now it's you can run everything in One ESP home container because if you look right here it says yeah that just extends the additional bores it does keep all the functionality of ESP home but I can understand people want to run the stable of ESP home and not want to run this Dev version basically I know that may freak some people out so I myself run two for now now until they merge that thing hopefully they'll merge it soon I mean it's been a while come on so for the add-on folks if you go over here and bear with me because I'm not very familiar I haven't done this in a while add-ons so go to the add-on store and we'll need to add our own Repository and that's going to be off of here it says to add this link here and we'll paste that and hit add we'll hit close and then you got to refresh this page and we should have the Libra tiny ESP home here and we'll hit install and there's no ports or anything to concern yourself here it handles all that for you you can hit on here show inside bar and it will put that different copy for you and this hit start and we'll say open web UI and now we're installed on whatever system you need to run this on now we can go build our yaml for this actual device that we already have built for the yaml stuff it's gonna be a lot of stuff's pre-built for you now in the previous step I did the LT chip tool built it and pulled it from Kickstarter now there's a cool little website right here and I'll leave the link down for you there in the guide as well it has all the device profiles that to your Cloud cutter has and it builds it profile All For You in ESP home yeah almost pretty badass so watch this I have that Xenon thing and go down here I say I had this power strip look it builds everything for us right here there's all the yaml right there with all the gpio pins how awesome is that you didn't have to go figure out how to tab stuffing and Dent stuff just copy and paste the damn thing change a few things like the name and that's it we'll do new device make sure you're in the Libra tiny one so it should say like that Dash Dev new device I'm gonna say continue and I'm gonna call this the and then we'll hit next and this really doesn't matter too much but we'll say Libra tiny and I think I had the t board now I had the inboard but it's going to overwrite anyway we'll hit next I'm not going to use the encryption key stuff so I'm going to say Skip and then you'll come over here and hit edit and the first thing you want to do is just I like to Nuke everything all right here because we're going to build that all from everything else now I want to keep my name that I have so I'm gonna nuke everything except for the top and then I can grab my config out of the LT chip tool or you can do it from the little upk website now this is a lot of steps if you get stuck on this you can always come find the link down to the Discord did you blur.com Discord and we can help walk you through some of this stuff it's maybe a little much for the first one but once you do your first one it's dial downhill from there so I'm gonna generate this there's my yaml I'ma copy it and I'm gonna go ahead and paste this in and I'll have the two sections here because I don't want this name I don't want to call it cb3s and I'm gonna leave everything pretty much the same I'm just taking out some of these spaces I'm not going to be using API password I don't deal with that really if you want to you're more than welcome to OTA password now one thing I do need to pop in is my little custom domain because of what I run on my system and that's just what I run because I don't run the dot local and then everything else is pretty much gonna be the same I'm Gonna Leave This all untouched and you can hit save and then we can hit install now this is the other part that makes it stupid simple we don't have to go dig out files or nothing this is all going to be the same no matter how you run ESP home The Libertine Fork now of course and once they do fold it in it's all going to be the same as well except it's going to be in your regular ESP home so hit install hit manual download and we'll just say modern and it may take a little bit depending on your system and it's going to download the beautiful uf2 file that is your firmware for that specific device so once it compiles it's automatically going to download that uf2 file but if you want to you can hit download again if it didn't download for your browser hit close if we go to the web interface back to the Kickstart and you go around to the bottom says OTA update choose file and we have our Xenon power strip we're gonna hit update and you'll see down here if you scroll down you'll see the progress is going and you're about to have your very own custom ESP home on your beckon device how cool is that now once this is all done you'll be able to update it and do all the wireless updates everything just like you know to do in ESP home no more of this stuff and everything because it has your firmware on it and it's ready to go you can see the device is actually online you can see the status LED is blinking I should automatically see it in home assistant as well now I see it's got the Kickstart bk7231 we're gonna try this and see if it pulls the correct name now so we'll hit configure and we'll hit submit and there it is Xenon power strip now if your device doesn't automatically Auto discover you can just go hit add ESP home and put that IP address in there and it will pull the same way it's just any like ESP home device it adds straight into home assistant using the API so we contribute to go over here go to Xenon power strip now if you jump into it quickly you may say well wait a minute there's no controls give it a second I find I have to refresh the page or just talk a lot on YouTube like me and then the controls populate automatically and you should be able to see we got the relays and you if you look closely you can see the red LEDs and there's one two three four and then the fifth you won't hear it click that's the USB all the USBs are together on this device now this would all be the same no matter what kind of device you do now if you wanted to do something different say some sort of button presses with the buttons and everything to control like say button one press the button once and it does this relay or whatever relays of course it's all regular kind of ESP home code and you can go configure that in there to do all the automation stuff whatever you want to do because it's just ESP home don't let it trip you up because it has a different chip so that's the gist of it now knowing to dig files out and everything and it's pretty awesome so if you want to go check out some other stuff I'll try to put some other devices that I've used the beckon stuff with but really you can just go do whatever you don't need a template website or anything it uses the profiles added to your Cloud cutter and it's all Dynamic based on what cloud cutter pulls down it's pretty cool and I'll update the guide and have all this stuff so you can just scroll through or if you don't want to go hear me talk all the time and just scroll through it's that simple so I appreciate everybody watching this guide again I'm sure it's going to change again especially whenever they do fold this into ESP home that way we won't have to have these little extra add-ons or containers or whatever but at least we don't have to build them and install them ourselves anymore now how long is this going to last and how long is it going to happen to be this exploit open well guess what we're already seeing some devices that you can't exploit them over the air and you're having to open them up and you're having to use like a jig or little boards and pins and actually you know put software on the chip itself now that can be problematic for some smart bulbs and other things so I'm not going to say this guy is falling but if you got some products out there that you probably can't really get to do you know some other products that are fully local and open source should probably go snag those while you can and that way you'll get and have get some extras as well in case something does happen you can have some backups or some spares to go with that and that's just the nature of the Beast with this stuff it's the whole whack-a-mole game they don't want us exploiting stuff they want to keep it in the cloud because they want our data and want to stay in control and they really hate it that we're buying that device and then keeping it totally local and for ourselves so yeah you'll find all the links and all the stuff down below for all the things for all the deals and yeah we do appreciate it and I do thank all the patreon members YouTube members we definitely couldn't do without you and yep I'll keep it real press on them buttons down there and y'all take care
Info
Channel: digiblur DIY
Views: 33,335
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, bk7231t, bk7231n
Id: VFsuza3UAhk
Channel Id: undefined
Length: 31min 55sec (1915 seconds)
Published: Sat Aug 19 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.