Conversation
|
BK7238 should already be supported in this PR. To use in ESPHome, put this in your YAML: bk72xx:
board: generic-bk7238-tuya # use this if you have a Tuya device, remove "-tuya" suffix if you don't (unlikely)
family: BK7231N # workaround for ESPHome not knowing what a BK7238 is, doesn't cause any problems
framework:
version: 0.0.0
source: https://github.com/libretiny-eu/libretiny#feature/bk7238
esphome:
platformio_options:
custom_versions.beken-bdk: 3.0.78Note that there are some problems in ESPHome 2026.3.x which make it harder to compile with BDK 3.0.78 (required for BK7238). If having issues, try ESPHome 2026.2.x instead. The most important difference between BK7231 and BK7238 (on Tuya devices) is the OTA protocol - it has been implemented, but everyone is welcome to test and report if it works correctly. |
|
Thanks!! It needed ESPhome 2026.2.0, and i needed to flash with BK7231EasyUARTFlasher (using esphome with run command couldnt find the device in bootloader mode). Through lots of trial and error the .rbl file worked when custom flashed with an offset of 0x11000 Now the raw device turns up in HA! |
|
Thanks for all your hard work! I tried my best to get through the compiler. Used bare config as mentioned above. And tried esphome versions 2026.2.4 and 2026.2.0 as mentioned by drwormy. Logfile of freertos related error is attached as I wasn't able to post it in decent formatted code block. |
|
Not sure what that's about... however, try clearing PlatformIO cache ( |
|
I was careful to also use an older version of Python - 3.12.10. And work in a venv |
|
Flashed some Tuya relay on T1-2S-NL with no problem (simple python 3.13.5, esphome 2026.2.4 |
As of your recommendations I did both, but most likely deleting all LibreTiny versions did the trick. |
This PR adds support for BK7238. It requires BDK 3.0.78 to function.