Тёмный

How To Install ESPHome on Tuya Beken BK7231 w/ ltchiptool 

digiblur DIY
Подписаться 53 тыс.
Просмотров 23 тыс.
50% 1

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!

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 84   
@joshuakelly2665
@joshuakelly2665 6 месяцев назад
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!
@mannbat
@mannbat 10 месяцев назад
Another fantastic guide! Thanks, and greetings from Australia!
@digiblurDIY
@digiblurDIY 10 месяцев назад
Glad you enjoyed it!
@makerlatino3811
@makerlatino3811 10 месяцев назад
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! 🤖
@ronm6585
@ronm6585 10 месяцев назад
Thanks Travis.
@Ender_Wiggin
@Ender_Wiggin 10 месяцев назад
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.
@joudatfd
@joudatfd 10 месяцев назад
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.
@danfitzpatrick4112
@danfitzpatrick4112 10 месяцев назад
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.
@marcusone1
@marcusone1 10 месяцев назад
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!
@ivlis32
@ivlis32 10 месяцев назад
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
@TradieTrev
@TradieTrev 10 месяцев назад
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.
@ljnett1
@ljnett1 10 месяцев назад
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
@heiaheiaheiahei
@heiaheiaheiahei 9 месяцев назад
Thanks!
@digiblurDIY
@digiblurDIY 9 месяцев назад
You bet!
@tin2001
@tin2001 7 месяцев назад
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
@PedroVinicius10 10 месяцев назад
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 10 месяцев назад
Como voce abriu? O mini smart switch que tenho aqui esta patcheado pro cloudcutter.
@brunocabral1578
@brunocabral1578 10 месяцев назад
Do you have any video on openning a tuya mini smart switch, @digiblurDIY ? The firnware is patched anti-cloudcutter
@PedroVinicius10
@PedroVinicius10 10 месяцев назад
@@brunocabral1578 não entendi..
@brunocabral1578
@brunocabral1578 10 месяцев назад
@@PedroVinicius10 como você abre a caixinha dele sem danificar nada? Fizeste um video abrindo a unidade?
@PedroVinicius10
@PedroVinicius10 10 месяцев назад
@@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
@gandalf1783
@gandalf1783 10 месяцев назад
Man, I would be interested in those WiFi remotes from tuya....
@Tntdruid
@Tntdruid 10 месяцев назад
One more device free from ☁️ 👍
@vinup7667
@vinup7667 10 месяцев назад
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
@mikekornikh
@mikekornikh 10 месяцев назад
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 10 месяцев назад
Is there something tied to the RX TX pins possibly?
@mikekornikh
@mikekornikh 10 месяцев назад
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
@Zain-rt1rm
@Zain-rt1rm 10 месяцев назад
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.
@lamborghinirevention
@lamborghinirevention 2 месяца назад
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 2 месяца назад
When I get that I just keep trying the reset
@lamborghinirevention
@lamborghinirevention 2 месяца назад
thank you. I eventually managed to flash openbeken. i found out that the old dupont cables were causing errors
@dutzaboss
@dutzaboss 8 месяцев назад
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
@andymok7945
@andymok7945 10 месяцев назад
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.
@BillsCountrysideAdventures
@BillsCountrysideAdventures 10 месяцев назад
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
@ckbne
@ckbne 10 месяцев назад
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.
@fabioamado6725
@fabioamado6725 4 дня назад
Can you please link to a video of how to use correctly the bdm frame? Thank you
@digiblurDIY
@digiblurDIY 4 дня назад
This is another I used the frame in. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-GTniWwSzZHE.html
@fabioamado6725
@fabioamado6725 3 дня назад
Yes thank you. I saw this video because you mention it in this video. I was asking for some bdm video for dummies, with examples of how to fix the pens etc… never used this before and i don’t know the potential problems… anything for dummies? 😅
@digiblurDIY
@digiblurDIY 3 дня назад
@fabioamado6725 sorry I don't have anything more. It is really just simply place the pins carefully
@fabioamado6725
@fabioamado6725 3 дня назад
@@digiblurDIY ok thank you very much, i will try ❤️
@kenjilin6852
@kenjilin6852 7 месяцев назад
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 6 месяцев назад
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 6 месяцев назад
If it is set to pwm, I found it wouldn't activate the LED. I changed them to binary light outputs
@alanmarcelovv
@alanmarcelovv 6 месяцев назад
That was it! I set the output to GPIO and the light to binary, and it started to work! Thanks a lot!!@@digiblurDIY
@buiangcuong0136
@buiangcuong0136 8 месяцев назад
Is there any module that can replace that?
@digiblurDIY
@digiblurDIY 8 месяцев назад
Why?
@almightytreegod
@almightytreegod 7 месяцев назад
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 7 месяцев назад
I'm using it on Windows 10. Seems to work fine, did you check the latest version?
@almightytreegod
@almightytreegod 7 месяцев назад
@@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!
@yogeshkumargobinathan4532
@yogeshkumargobinathan4532 4 месяца назад
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 4 месяца назад
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 4 месяца назад
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 4 месяца назад
@@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.
@LifeWithMatthew
@LifeWithMatthew 10 месяцев назад
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? 🤔
@mikemannox4191
@mikemannox4191 10 месяцев назад
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 :)
@bigneilh
@bigneilh 10 месяцев назад
first
@ScottWinterringer
@ScottWinterringer 8 месяцев назад
I hate esphome. Can I just flash wled...
@digiblurDIY
@digiblurDIY 8 месяцев назад
I'm not aware of wled supporting this chipset, you can try OpenBeken.
Далее
How To Bypass AT&T Fiber BGW320 w/ WAS-110 SFP+
29:29
ELA NÃO ESPERAVA POR ISSO 🥶 ATTITUDE #shorts
00:20
skibidi toilet zombie universe 37 ( New Virus)
03:02
Просмотров 1,8 млн
Наташа Кампуш. 3096 дней в плену.
00:58
The Clever Way to Count Tanks - Numberphile
16:45
Просмотров 702 тыс.
How to change firmware in Tuya CB2S/BK7231N relay
7:26
ESPHome Guide for Advanced and Intermediate Users
13:36
ELA NÃO ESPERAVA POR ISSO 🥶 ATTITUDE #shorts
00:20