How To Install ESPHome on Tuya Beken BK7231 w/ ltchiptool

Need to install ESPHome on your BK7231 Beken Tuya chips via serial flash? Here's how step by step including how to read the chip. Moes 4 Button - s.click.aliexpress.com/e/_Dly... or amzn.to/3RHDVbd
⚡Parts
USB TTL adapter - amzn.to/3R5obhx or www.tindie.com/products/voltl...
Dupont jumper wires - amzn.to/45BvX7h
Optional but highly recommended USB data switch - amzn.to/44DO5vY
BDM Frame with pins amzn.to/3R2EkV6 or s.click.aliexpress.com/e/_DdA...
Extra BDM pins if necessary as some only come with 4 pins we need 5
⚡Resources
Tuya Cloudcutter - github.com/tuya-cloudcutter/t...
Libretiny Docs - docs.libretiny.eu/
LtChipTool - github.com/libretiny-eu/ltchi...
⚡Products We Use/Recommend
Amazon US - amzn.to/2YZNDeO
Amazon UK - amzn.to/2TnG2R4
Amazon CA - amzn.to/2JWsNq5
⚡Be Social!⚡
Main Website - www.digiblur.com
Discord Chat - discord.digiblur.com
Patreon - patreon.digiblur.com
Join / @digiblurdiy
Facebook - facebook.digiblur.com
Instagram - instagram.digiblur.com
Please note, the product links above could be affiliate links, using them could earn digiblurDIY a small commission of most purchases and helps with future video projects. Thank you!
00:00 Intro
01:36 The Victim Switch
04:42 Chip Types and Pinouts
07:56 ltChipTool
08:44 Flashing Process with BDM
11:19 Installing ESPHome bins
14:30 Installing your own build
18:23 Add MAC Suffix Issue
20:59 Closing
22:06 The BEST Part!

Пікірлер: 79

  • @mannbat
    @mannbat10 ай бұрын

    Another fantastic guide! Thanks, and greetings from Australia!

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Glad you enjoyed it!

  • @joshuakelly2665
    @joshuakelly26656 ай бұрын

    Dude, your tutorials are pretty good. Lot's of good info without being too slow or wordy The links to your references are also very good. Keep it up.

  • @digiblurDIY

    @digiblurDIY

    6 ай бұрын

    I appreciate that!

  • @joudatfd
    @joudatfd10 ай бұрын

    Great video again. I didn't know it's possible to disassemble pin configuration from original firmware, that's what I was missing all the time

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    That part is down right amaze balls. Mind is still blown here that you can do that.

  • @makerlatino3811
    @makerlatino381110 ай бұрын

    Excellent information!, I have 3 switches where the power source isn't working, but I'm trying to repurpose them by replacing the power source. The chip and relays are in perfect condition; the chip is the PSF-B04. I hope to start my channel by repurposing several switches damaged by the power source and modifying the firmware of the ESP chips. Thanks for the video! 🤖

  • @Ender_Wiggin
    @Ender_Wiggin10 ай бұрын

    I keep putting this on my todo list and the process keeps changing. Lol Keep up the good work. Also I am unsure how i have never heard of a BDM Frame. That looks great!

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I'm not sure it will get much easier after this... maybe just after the 2023.9 ESPHome release is a good time to start.

  • @marcusone1
    @marcusone110 ай бұрын

    Great video as always. Suggestion: Remind people that the USB Power Switch, many do not have Data Line passthrough. so careful which one you purchase or double check when you get it and send back if data lines are not passed through.

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Good point!

  • @ronm6585
    @ronm658510 ай бұрын

    Thanks Travis.

  • @ivlis32
    @ivlis3210 ай бұрын

    Great video, I will grab this 4 button for sure! I wish esphome supported Tasmota device groups or a similar feature.

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Ask and you shall receive. github.com/Cossid/TasmotaDeviceGroupsForESPHome

  • @danfitzpatrick4112
    @danfitzpatrick411210 ай бұрын

    Thanks for the info Trav. I gotta say that I am Zigbee hooked here (Probably 50 devices or so). Private,, Solid, reliable, and never an issue so far. but love the ESP stuff 2...

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Zigbee is cool for sure especially for the taking out the box and roll but for things like this 4 button switch, I do prefer the WiFi open source there so you can do whatever you want in the firmware. Rocking about 40-50 zigbee devices myself though.

  • @ljnett1
    @ljnett110 ай бұрын

    Thank you for this video as this opens so many possibilities. Perhaps consider if you would handle your garage opener differently now.

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I'm still using my regular ESP32 dual relay setup with the remote in the garage in a box. Working well. This one - digiblur.com/wiki/ha/esphome-garage-opener

  • @TradieTrev
    @TradieTrev10 ай бұрын

    Neat little setup! I always screw up flashing lol 😂 😂

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    If definitely makes it easy to snag a switch in a pinch without soldering.

  • @heiaheiaheiahei
    @heiaheiaheiahei9 ай бұрын

    Thanks!

  • @digiblurDIY

    @digiblurDIY

    9 ай бұрын

    You bet!

  • @tin2001
    @tin20017 ай бұрын

    Clicked the video to find out what the pins probing the board were... Staying for the whole video for the algorithm now that I know what I need to search eBay for (I'm in Australia, so Amazon is kinda useless here).

  • @digiblurDIY

    @digiblurDIY

    7 ай бұрын

    Thanks!

  • @PedroVinicius10
    @PedroVinicius1010 ай бұрын

    saudações do Brasil.. Obrigado pelo video, não sabia que esses chips haviam alternativas alem da Openbeken.. Ja subi um flash em um switch mini de 1 canal perfeitamente.. Obrigado!

  • @brunocabral1578

    @brunocabral1578

    9 ай бұрын

    Como voce abriu? O mini smart switch que tenho aqui esta patcheado pro cloudcutter.

  • @brunocabral1578

    @brunocabral1578

    9 ай бұрын

    Do you have any video on openning a tuya mini smart switch, @digiblurDIY ? The firnware is patched anti-cloudcutter

  • @PedroVinicius10

    @PedroVinicius10

    9 ай бұрын

    @@brunocabral1578 não entendi..

  • @brunocabral1578

    @brunocabral1578

    9 ай бұрын

    @@PedroVinicius10 como você abre a caixinha dele sem danificar nada? Fizeste um video abrindo a unidade?

  • @PedroVinicius10

    @PedroVinicius10

    9 ай бұрын

    @@brunocabral1578 posso tentar fazer um vídeo.. mas é simples abrir, pega uma espátula de plástico. se n tiver pode ser chave de fenda, vire a caixinha de forma que fique com a capa menor para cima, enfie a chave acima dos bornes de conexão, cerca de 1cm, entre o Borne e a capa menor, e dê uma leve levantada em forma de alavanca.. ai vai destravar a capa

  • @vinup7667
    @vinup766710 ай бұрын

    great video, informative. I have wb3s based fan switch with tuyamcu. not able to get esphome to communicate with tuyamcu. Any thoughts of making openbeken and tuyamcu with esphome video?

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I haven't touched openbeken in a while as I decided to go esphome on Beken stuff for now as it also allowed me touch up on my ESP based projects too. I have done the fan controllers with Esphome on Beken devices and it works fine. See here digiblur.com/wiki/devices/other/treatlife_esmlfe_fan_ds03_beken

  • @gandalf1783
    @gandalf178310 ай бұрын

    Man, I would be interested in those WiFi remotes from tuya....

  • @Tntdruid
    @Tntdruid10 ай бұрын

    One more device free from ☁️ 👍

  • @mikekornikh
    @mikekornikh9 ай бұрын

    Hey Digi! Big fan of your videos and work. I cloudcuttered (Cloudcut?) 2 energy monitoring plugs already thanks to you. I'm having an issue with a device. It's a Moes IR/RF wifi receiver/transmitter, similar to the UFO one, but thumb drive form factor. It has a WB3S chip. Cloudcutter couldn't exploit it wirelessly so I opened it up. I soldered all the pins, connected the ame serial to usb you have and when doing the firmware dump, with a few ground to cen touches, ltchiptool begins reading the firmware but then fails after about 2%. Any advice? Thanks so much and looking forward to more vids :)

  • @digiblurDIY

    @digiblurDIY

    9 ай бұрын

    Is there something tied to the RX TX pins possibly?

  • @mikekornikh

    @mikekornikh

    9 ай бұрын

    Not sure if this is what you mean, but I tried checking continuity with a multimeter from the rx/tx to other components and it beeps on a few legs of a nearby chip, also on a bunch of capacitors and even on the data pins of the usb port it uses for power. Do you think I need to de-solder anything?@@digiblurDIY

  • @lamborghinirevention
    @lamborghinirevention2 ай бұрын

    thank you for your great video i managed to flashed openbeken for 1-gang variant but no luck with 4-gang variant. i used bk7231 gui flash tool and it stucked at getting bus. Do you happen to know what might cause this error ? thank you

  • @digiblurDIY

    @digiblurDIY

    Ай бұрын

    When I get that I just keep trying the reset

  • @lamborghinirevention

    @lamborghinirevention

    Ай бұрын

    thank you. I eventually managed to flash openbeken. i found out that the old dupont cables were causing errors

  • @Zain-rt1rm
    @Zain-rt1rm10 ай бұрын

    Are you using the regular Esphome addon ? Or LibreTiny ESPHome ?

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I am using the beta container. The stable release of Esphome with it is coming soon.

  • @dutzaboss
    @dutzaboss7 ай бұрын

    hello, i try a lot of time with a ZMAI 90 and can't put in reset mode, if you can i will buy 1 for you to try but try from Linux from Windows and nothing, this ZMAI is a problematic switch with monitoring

  • @BillsCountrysideAdventures
    @BillsCountrysideAdventures10 ай бұрын

    Your shaved head man looks so much better 👍

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Thanks.. I did it on a live stream and let the kid do it, then his mom did his hair. I was shocked he did it!

  • @BillsCountrysideAdventures

    @BillsCountrysideAdventures

    10 ай бұрын

    @@digiblurDIY Makes you look younger mate

  • @andymok7945
    @andymok794510 ай бұрын

    Friends don't let friends use cloud based smart home devices. So many devices are no longer hackable, which sucks.I still remember using a D1 mini way back in the day to do man in the middle firmware hack. Those were the days.

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I think that is still kind of a thing with the Lightleak android app for Tuya hacks.

  • @ckbne
    @ckbne10 ай бұрын

    This does not often work. Vendors are now burning programming fuses in the MCU so they are read only and cannot be reprogrammed via the serial interface.

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I haven't run into this yet.

  • @kenjilin6852
    @kenjilin68527 ай бұрын

    Hi,I bought the same switch as you and finished it according to the video, but the LED won't light up when I press the button. Did I do something wrong?

  • @digiblurDIY

    @digiblurDIY

    7 ай бұрын

    Is the led set to pwm or regular output?

  • @kenjilin6852

    @kenjilin6852

    7 ай бұрын

    I didn't change anything, after flashed (bk7231n.uf2) I creat a esphome device and paste yaml(copy form the LTchip tool) on it that's all.@@digiblurDIY

  • @alanmarcelovv

    @alanmarcelovv

    5 ай бұрын

    I have the same problem! Same switch. I analyzed the fw dump and copied the code to ESPHome. My configuration is exactly the same as yours. Any idea what it could be?

  • @digiblurDIY

    @digiblurDIY

    5 ай бұрын

    If it is set to pwm, I found it wouldn't activate the LED. I changed them to binary light outputs

  • @alanmarcelovv

    @alanmarcelovv

    5 ай бұрын

    That was it! I set the output to GPIO and the light to binary, and it started to work! Thanks a lot!!@@digiblurDIY

  • @buiangcuong0136
    @buiangcuong01367 ай бұрын

    Is there any module that can replace that?

  • @digiblurDIY

    @digiblurDIY

    7 ай бұрын

    Why?

  • @yogeshkumargobinathan4532
    @yogeshkumargobinathan45324 ай бұрын

    Hii sir i want to install esp home in tuya cb2s.... I follow you instructions as per you video... But did done....i got error message in ltchiptool.... What will i do, I need your support.

  • @digiblurDIY

    @digiblurDIY

    4 ай бұрын

    What's the error?

  • @yogeshkumargobinathan4532

    @yogeshkumargobinathan4532

    3 ай бұрын

    serialException: could not open port 'COM12':OSError(22, 'A device which does not exist was specified. 'None, 433)...this error message I got sir.

  • @yogeshkumargobinathan4532

    @yogeshkumargobinathan4532

    3 ай бұрын

    E: An error has occurred E: SerialException: could not open port 'COM12': OSError(22, 'A device which does not exist was specified.', None, 433) E: |-- File "ltchiptool\gui\work\base.py", line 24, in run E: |-- File "ltchiptool\gui\work\flash.py", line 69, in run_impl E: |-- File "ltchiptool\gui\work\flash.py", line 87, in _link E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 86, in flash_change_timeout E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 72, in flash_build_protocol E: |-- File "bk7231tools\serial\main.py", line 30, in __init__ E: |-- File "serial\serialwin32.py", line 33, in __init__ E: |-- File "serial\serialutil.py", line 244, in __init__ E: |-- File "ltctplugin\terminal\gui.py", line 149, in E: |-- File "ltctplugin\terminal\gui.py", line 187, in OnSerialOpen E: |-- File "serial\serialwin32.py", line 64, in open E: Couldn't open None E: SerialException: could not open port 'COM12': OSError(22, 'A device which does not exist was specified.', None, 433) E: |-- File "ltctplugin\terminal\gui.py", line 234, in PortOpen E: |-- File "serial\serialwin32.py", line 64, in open E: An error has occurred E: SerialException: could not open port 'COM12': OSError(22, 'A device which does not exist was specified.', None, 433) E: |-- File "ltchiptool\gui\work\base.py", line 24, in run E: |-- File "ltchiptool\gui\work\flash.py", line 69, in run_impl E: |-- File "ltchiptool\gui\work\flash.py", line 87, in _link E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 86, in flash_change_timeout E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 72, in flash_build_protocol E: |-- File "bk7231tools\serial\main.py", line 30, in __init__ E: |-- File "serial\serialwin32.py", line 33, in __init__ E: |-- File "serial\serialutil.py", line 244, in __init__ E: |-- File "ltctplugin\terminal\gui.py", line 149, in E: |-- File "ltctplugin\terminal\gui.py", line 187, in OnSerialOpen E: |-- File "serial\serialwin32.py", line 64, in open E: Couldn't open None E: SerialException: could not open port 'COM12': OSError(22, 'A device which does not exist was specified.', None, 433) E: |-- File "ltctplugin\terminal\gui.py", line 234, in PortOpen E: |-- File "serial\serialwin32.py", line 64, in open..... This error I got while read flash.

  • @YogeshkumarGobinathan

    @YogeshkumarGobinathan

    3 ай бұрын

    @@digiblurDIY Hello sir, i want to install esp home in tuya cb2s. today I bought New USB to TTl adaptor (D-SUN brand) and start to read flase ,i got error messeges like this E: An error has occurred E: SerialTimeoutException: Write timeout E: |-- File "ltchiptool\gui\work\base.py", line 24, in run E: |-- File "ltchiptool\gui\work\flash.py", line 69, in run_impl E: |-- File "ltchiptool\gui\work\flash.py", line 109, in _link E: |-- File "ltchiptool\soc\bk72xx\flash.py", line 102, in flash_connect E: |-- File "bk7231tools\serial\linking.py", line 22, in connect E: |-- File "bk7231tools\serial\linking.py", line 56, in wait_for_link E: |-- File "bk7231tools\serial\protocol.py", line 128, in command E: |-- File "bk7231tools\serial\protocol.py", line 87, in write E: |-- File "serial\serialwin32.py", line 325, in write E: AttributeError: 'NoneType' object has no attribute 'lower' E: |-- File "ltchiptool\gui\base\window.py", line 52, in _handle_thread_stop E: |-- File "ltctplugin\terminal\gui.py", line 205, in OnWorkStopped E: |-- File "ltctplugin\terminal\gui.py", line 224, in PortOpen please tell what is the solution for this error sir and also tell where is tha ESP ymal file you take.

  • @almightytreegod
    @almightytreegod6 ай бұрын

    Windows 10 REALLY doesn’t like ltchiptool… by the way, does anyone know of any videos of installing it (and prereqs) for ubuntu 20.04? Trying to build a flashing machine out of a pi but I’m new to this.

  • @digiblurDIY

    @digiblurDIY

    6 ай бұрын

    I'm using it on Windows 10. Seems to work fine, did you check the latest version?

  • @almightytreegod

    @almightytreegod

    6 ай бұрын

    @@digiblurDIY i was actually able to get the previous version working (even tho i still cant seem to flash the CB3S)... windows defender doesn't let me launch the latest version. the issue is mentioned on the github page. thanks for the reply tho!

  • @LifeWithMatthew
    @LifeWithMatthew10 ай бұрын

    Tuya cloud cutter worked well for most my stuff, but I had a random Lightbulb that after booting into kickstarter and applying the ESPhome yaml file auto generated it just died hard. No more IP address requests, no light, completely dead. 🤷‍♂

  • @thebatu89

    @thebatu89

    10 ай бұрын

    Not even serial flash brings it back online?

  • @LifeWithMatthew

    @LifeWithMatthew

    10 ай бұрын

    @@thebatu89 I haven't tried that as I'd have to be a fair bit destructive to get to it with the light bulb

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    I had a weird one once where kickstarter wouldn't boot. It was bootlooping and finally after enough resets it popped into AP mode.

  • @LifeWithMatthew

    @LifeWithMatthew

    10 ай бұрын

    @@digiblurDIY Interesting, yeah mine just did that. Its AP name is the device name I gave it, but I can't connect to a web interface after joining it's network. Any suggestions? 🤔

  • @bigneilh
    @bigneilh10 ай бұрын

    first

  • @mikemannox4191
    @mikemannox419110 ай бұрын

    Wow, the hairline! The buzz-cut is so-so much better! Why didn't you do it earlier?

  • @digiblurDIY

    @digiblurDIY

    10 ай бұрын

    Thanks.. I did it on a live stream and let the kid do it, then his mom did his hair. I was shocked he did it! Procrastination is a bad thing I have :)

  • @ScottWinterringer
    @ScottWinterringer8 ай бұрын

    I hate esphome. Can I just flash wled...

  • @digiblurDIY

    @digiblurDIY

    8 ай бұрын

    I'm not aware of wled supporting this chipset, you can try OpenBeken.