
Today we are changing the software of the Tuya RGBCW 30W ceiling lamp in the "slim" version. The goal will be to free it from the cloud and connect it to Home Assistant. The presented ceiling lamp is characterized primarily by its compact design and additionally has a remote control, which surprised me a bit...
Purchase A228903
This model costs around PLN 100:

The description is usually praising the application and voice control, etc.:

The description includes the name: Graffiti Slim Ceiling Lamp:

Set contents:

Let`s see what we get in practice:


Packaging:


Contents, there are even screws:

Remote:

Mounting:

Instruction:





Interior A228903
Unscrew the screws and remove the cover:

The layout inside is very small. I see the WiFi CBU module there, i.e. BK7231N.

The LEDs are arranged in a ring:

And here is the module itself, along with the LED control transistors and the power supply itself:

In the power supply section, you can see BP2525 (power supply for the WiFi module) and YT5207B (LED power supply) separately:

And here we have the CBU itself:

Pinouts: https://developer.tuya.com/en/docs/iot/cbu-module-datasheet?id=Ka07pykl5dk4u
Batch change A228903
We connect the programmer as in the manual:
https://github.com/openshwprojects/BK7231GUIFlashTool
On the Elektroda channel we have video presentations of this process, in the playlist of firmware changes, search for BK7231N:
https://www.youtube.com/playlist?list=PLzbXEc2ebpH0CZDbczAXT94BuSGrd_GoM
4 cables soldered:

Whole system:

There is no problem with the template, there are PWM pins in the CBU:
8 P8 I/O Support hardware PWM (Correspond to Pin 24 of the IC)
9 P7 I/O Support hardware PWM (Correspond to Pin 23 of the IC)
10 P6 I/O Support hardware PWM (Correspond to Pin 22 of the IC)
11 P26 I/O Support hardware PWM (Correspond to Pin 15 of the IC)
12 P24 I/O Support hardware PWM (Correspond to Pin 16 of the IC)
Template:
Code: JSON
Mysterious pilot...
At first I thought it was a remote control with RF 433MHz, but there is no indication of this. There is no such receiver on the PCB with the WiFi module:

The interior of the remote control looks a bit like an RF:




But there is no antenna on the PCB of the lamp.
At this point, I suspect that it may be a situation similar to this topic:
https://www.elektroda.com/rtvforum/topic4028226.html
This remote may be Bluetooth-based in some form, but that`s just my guess. What do you think?
Summary
Quite a nice lamp, quite flat and compact. Changing the firmware was also easy.
The only problem is with this remote control - I don`t know how it works at the moment and adding its support will be at least very difficult. There is not even a starting point, you would need to check if there is any way to "intercept" their Bluetooth communication, if it is BT at all... so if we change the load, we lose the remote control for now. If anyone has an idea on how to go about it, I`m open to suggestions. I will have to try to finally get BT communication working on the BK7231. The pilot`s case is opened and will be continued...
Cool? Ranking DIY Helpful post? Buy me a coffee.