Flashing Tuya Ceiling light

Hello I have two ceiling lights (220V, 48W, dimmable CWW) but they are over Tuya so not reliable amongst other things and I was wondering if it would be possible to flash it and connect it to ESPHome, I took ot apart and found the wireless chip it has this information written on it

Model: CBU
P/N: PC9.01.0264
S/N: 13302112288aae|z

That whole wireless daughter board had code TCBU1-ZR

That’s all the info I found that I thought could be useful, if you need more info I’ll get that info asap


1 Like

Looks like CBU is BK7231N.

Which appears to be supported.

  • BK72xx: BK7231T, BK7231N

Next I would be looking into whether cloudcutter is an option and what configs for the device or similar ones are around.

Thank you for the answer, this seems like something out of my league, do you know if there is something I could replace the whole controll board with? I was looking on Aliexpress but I found LED controllers with zigbee only for 12-24V

I don’t know I’m afraid.

Did you ever Tuya-convert something before? It’s similar.
It may seem a bit daunting but if you have the time and patience it’s probably not a bad learning type project.

Mostly it’s a matter of finding the right how to’s.

It’s also worth asking these Q’s in the ESPHome Discord and seeing what some of the advanced users over there reckon.

Unfortunately I have never flashed anything tuya before and I am not sure how to check if its correct chip and correct code and I am little bit worried, I was hoping that the chip would be some commonly used one so it would be easier to find tutorial for the same chip

Check the tuya firmware version, if it’s not under patched list you can flash esphome with cloudcutter by resetting it twice

Otherwise, just flash it using serial method.

This is probably “Tuya Generic Light” or “devices with TuyaMCU” right? So it should be possible to flash using cloudcutter

I think you’re in the clear, 1.3.2 is not in the patched list so you can just pick any profile from that version

Cool, I have two questions, I am obviously new to this first of all, is cloudcutter safe to use? Is the risk of bricking the board hight? I read on their git that its experimental. and second, how do I choose the right firmware so I dont brick it myself?

Also I just checked that my smart plugs are also not on the patched list so I can try it first on those, those are easily replacable

You’ll only brick the device if you flash the wrong firmware type (for example bk7321n firmware on bk7231t device). But it’s still fixable with serial method

The safe way to flash the right firmware without teardown is pick cloudcut option only. If you pick T profile and cloudcut’s successful (you’ll get A-xxx access point) then it’s definitely T firmware.

Could you elaborate what does that mean? I am sorry to ask basic questions but I have never done anything even similar to this but in case of the lights teardown is not a problem, one of them is on the pictures I already posted and I first want to finish the first before I open the second

That would be the first option when you run the tool

ok ok, I just started watching video from this guy too, https://youtu.be/VFsuza3UAhk?si=FpuPbScLavCBBtdZ will this be enough for me to do it or do you have some other recommendation of what I should watch to understand it so I can do it?

Do you have recommendation on what device should I use to run coudcutter? I can buy raspberry pi 5 or I have few old laptops lying around and I also have Orange pi 5

Orange Pi 5 is good enough

It’s worth taking the time to learn how to do this kind of thing. It opens up some cool options.

You just have to follow the right guides, freak out when something doesn’t quite go to plan, and then realise it’s probably because you didn’t follow the instructions.

A good learning project.

1 Like

In the video the guy says it needs to be able to create access point but orange pi 5 doesn’t have wifi, so that won’t work right? So I am just probably going to just buy raspberry pi 5 to have something to run linux on for these projects or maybe I could run VM on my laptop?

Really? They don’t include wifi like rpi?
Then just add usb wifi adaptor to it

Sounds like you can just use a spare laptop? Dunno about the VM side of things.

Or perhaps you could buy a pi zero w.

Ok so I bought wifi dongle (TP-Link TL-WN823N) that ahould be able to create hotspot but it doesn’t work so I probably need to install drivers first amd TP-Link has manual for Ubuntu, pi3, Mint 18.03 and Kali 2018.1 so what OS should I install? I tried using Debian and using the guide for Kali but it did not work Iz failed on headers although orange pi has official installers for that

Try with armbian
Anyway if you’re still having problem getting the driver to work. Just install debian on the old laptop, connect LAN cable and cloudcutter should just the built in wifi for hotspot