Restart ESPHome after battery recharge

I am creating a water meter based on esp8266 and ESPHome.
The device must be battery powered (18650) and I use a small solar panel to recharge the battery.
Sometimes it can happen that the battery runs out at night, in these cases in the morning the solar panel is able to recharge the battery and bring the battery voltage back to high values.
In these cases I would expect that when the battery is recharged ESPHome will start and reconnect to the mains.
But this is not the case, although the voltage value is good the esp8266 does not work properly again unless I press the reset button. If I press the reset button it works again without problems.

Any ideas?

I know this doesn’t answer your specific question (which I’m not aware of a solution for), but have you considered options for:

  • increasing battery capacity (you can get up to 3600mah for a 18650)
  • reducing energy usage (perhaps it can deep sleep over graveyard hours, or reduce update intervals etc),
  • or perhaps turn off peripheral power when not in use if possible/relevant
  • or deep sleep until 8AM if battery falls below value)

What might be your answer is a power path. Check out this video https://www.youtube.com/watch?v=37kGva3NW8w.

I’m currently working on it at https://community.home-assistant.io/t/how-do-i-use-one-esp-device-to-reset-restart-another-esp-after-a-crash/481650/5
You don’t mention if you are using deep sleep , which can really save on battery.

What about over paneling. Double the size of the solar panel.

1 Like