OpenBK7231T_App icon indicating copy to clipboard operation
OpenBK7231T_App copied to clipboard

LED control via BT TV remote blaster

Open C0rn3j opened this issue 6 months ago • 2 comments
trafficstars

AliExpress listing

I bought a bluetooth (?) remote and some E14 LN882 Tuya bulbs.

The remote can bind up to 4 bulbs, by long-pressing the A/B/C/D buttons after turning off/on the bulb.

"4. If you want to cancel the connection, long press the power button and brightness- button at the same time for several seconds, until there is a flashing light, then the remote can not control the lamp."

This works great with Tuya, but I cannot seem to set up a Tuya-flashed-Openbeken LN882 device this way with another E27 Tuya LN882 bulb (can't test the E14 one, as I broke the one I was trying to flash).

I seem to be unable to find any references to this anywhere - what am I missing/how to set this up so the remote works for Openbeken, if that is even possible?

Remote in question, in case the listing is down:

Image

EDIT: So that remote is actually connected to Tuya, shows up in HA:

  "data": {
    "endpoint": "https://apigw.tuyaeu.com",
    "terminal_id": "1748<censored>",
    "mqtt_connected": true,
    "disabled_by": null,
    "disabled_polling": false,
    "id": "bf62325<censored>",
    "name": "Remote",
    "category": "ykq",
    "product_id": "ujlfwmmj",
    "product_name": "Remote",
    "online": true,
    "sub": false,
    "time_zone": "+02:00",
    "active_time": "2025-05-19T19:48:21+00:00",
    "create_time": "2025-05-19T19:48:21+00:00",
    "update_time": "2025-05-19T19:48:21+00:00",
    "function": {},
    "status_range": {},
    "status": {},
    "home_assistant": {
      "name": "Remote",
      "name_by_user": null,
      "disabled": false,
      "disabled_by": null,
      "entities": []
    },
    "set_up": false,
    "support_local": true
  }

I've bought a spare for disassembly.

C0rn3j avatar May 25 '25 19:05 C0rn3j

I suspect that remote is not IR based, maybe BT? If so then you are not going to achieve intended as OBK has not been delving into BT stack development at all (to my knowledge at least).

DeDaMrAzR avatar May 26 '25 11:05 DeDaMrAzR

I suspect that remote is not IR based, maybe BT?

Hmm I do not see any LED physically, nothing lights up on camera and covering the remote with my body makes it still work... so I suspect it is BT indeed.

If so then you are not going to achieve intended as OBK has not been delving into BT stack development at all (to my knowledge at least).

That's unfortunate if so.

If someone picks it up, I am down to provide captures from the remote, if needed.

C0rn3j avatar May 26 '25 11:05 C0rn3j

My spare has arrived - it's a 5.4 BLE remote.

To get into it, I pushed and pried with a shim on the bottom of the remote with minimal damage, there are two snap spots on the sides on the bottom of the remote, rest can be snapped by hand:

Markings identify the board/device as "tuya-remote-beacon-E-B1SD V1 xiaoma-office 2024/1/27".

There is a very clear and accessible UART port available.

The only chip of interest reads B1SD WE2I 2349ENF068 (initially misread it as WE21), this corresponds to B1SD-WE2I (PHY6230) in this Tuya doc (in Chinese only) with some extra docs available here + docs mirror.

At the time of writing, the docs contain SocKit_V3.0.3.exe with this config.ini:

[General]
start_flash_addr=9000
base_run_addr=1FFF4000
spif_rate=DLL48M_div4
sfmod=sfmod 2 2
ap_state=0
boot_loader=0
fct_mode=0
spif_sfmod=0
log_auto_save=0

[Timeout]
6202=4000
6212=4000
6220=4000
6222=4000
6200=4000
6230=4000

[UartrunSplit]
6202=
6212=
6220=
6222=
6200=
6230=

[HexwriteSplit]
6202=
6212=
6220=
6222=
6200=
6230=

It seems to look like I am ultra out of luck on having anything open running on this, there seems to be zero support I can find in the english-speaking internet sphere.

PHY6230 itself seems to have a one-time-programmable 16KB flash memory too.

The only other mention of this outside of docs I can find is this thread about lights using the same chip.

C0rn3j avatar Jul 04 '25 11:07 C0rn3j