BK7231 smart plug: compare an OpenBeken local-control route
Give selected non-ESP cloud-dependent smart devices local MQTT and similar control.
OpenBeken, ESPHome, and Tasmota all require an exact hardware match. A product name may hide a changed chip, and mains devices need safe isolation and a recovery route.
Give selected non-ESP cloud-dependent smart devices local MQTT and similar control.

Reconfigure programmable old sensors, plugs and DIY boards for local uses.

Replace firmware on selected smart plugs, lights and sensors to regain local control.
The goal is clear: use an ESPHome configuration for Sonoff S31, reduce dependence on the vendor cloud and connect it to a local system such as Home Assistant.
The goal is clear: use an ESPHome configuration for Shelly Plug S, reduce dependence on the vendor cloud and connect it to a local system such as Home Assistant.

The goal is clear: use an ESPHome configuration for Athom Smart Plug PG04V3 UK16A, reduce dependence on the vendor cloud and connect it to a local system such as Home Assistant.
The goal is clear: use an ESPHome configuration for Kogan Smarterhome Smart Plug With Energy Meter, reduce dependence on the vendor cloud and connect it to a local system such as Home Assistant.