Successfully using ESPHome on beken chips.
Using ESPHome I was able to get my cb2s chip working in HomeAssistant. Most of the “smart devices” sold at the local hardware store are now using beken chips as their MCU. Flashing can be done via serial (involves opening up the case) or if you are lucky enough, cloudcutter.
Here is some example code for ESPHome:
bk72xx:
board: cb2s
framework:
version: dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: <api key>
ota:
password: <ota pass>
wifi:
ssid: iot_ssid
password: <iot password>
# Enable fallback hotspot in case wifi connection fails
ap:
ssid: "${friendly_name} Fallback Hotspot"
password: <fallback pwd>
web_server:
text_sensor:
- platform: template
name: Plug1 Uptime Human Readable
id: uptime_human
icon: mdi:clock-start
- platform: wifi_info
ip_address:
name: Plug1 IP Address
entity_category: diagnostic