libretiny icon indicating copy to clipboard operation
libretiny copied to clipboard

High power consumption on BK7231- power_save_mode in wifi component not working

Open rbonat opened this issue 2 years ago • 3 comments

First of all, I'm really impressed of this unexpected and awesome new feature of esphome thanks to libretiny! I've uploaded (via UART) my first yaml configuration into single channel relay on CB2S, and it is working from the first try, reliable and stable. But I've noticed the relay is getting warm idle, so I've measured power consumption. In my case it goes to 1.2 - 1.3 W idle, while same relay witch original tuya-soft consumes 0.5 - 0,6 W. Apart of unnecessary power consumption (which can be an issue when you count your devices in dozens), the real problem can be the heat. Imagine device closed in wall-socket, without any air flow, dispersing 1.3W of energy in heat 24h/7d - it might lead to serious overheating issues. I've tried different power_save_mode values of wifi component, usually working good witch esp chips, but witch no effect. Looks like power_save_mode is not implemented for BK7231 - is it planned to be implemented in future releases?

rbonat avatar Oct 03 '23 10:10 rbonat

Hi, did you solve this problem?

skowron0 avatar Jul 05 '24 07:07 skowron0

Nop, I've just switched back to esp modules. Maybe new releases fixed this, but I've not checked it.

rbonat avatar Jul 05 '24 09:07 rbonat

looks like it is implemented by now pull#111

I've tested it with LibreTiny v1.7.0 LSPA9 / BK7231N (CB2S) hlw8012 (BL0937) enabled Connected with HA

With power_save_mode HIGH / LOW it consumes 77mA with it disabled, it draws around 80~81mA

However, In OpenBeken it consumes around 25mA with it enabled, and 80~81mA on disabled

It is working, but taking way much power than it should be

SuperThicc avatar Sep 15 '24 01:09 SuperThicc