@AAllport
No Worries, Happy to help. I have been working on my own rewrite so makes sense to contribute some of the fixes and improvements where it makes sense.
AAllport I’ve taken a quick look at those PR’s and the only immediate hesitation is IPv6, given that the previous issue was caused.
I do not believe this is an issue any longer due to the massive optimizations in ESPHome since the original issue.
Using your notes to compare to from here: https://forum.mylocalbytes.com/d/186-reset-esp-smartplug/13
When the problem first occurred the the totals of .bin + bin.gz were:
without: 968340
with: 1025584
I have run a test build on ESPHome 2026.4.1 with all 6 of the current PR’s included. and compared without and without ipv6 and see totals of:
without: 698850
with: 755511
With the limit being 1023984
Even with some variation from version sizes and compression ratios you can see that we are very much comfortably within the size limit now.
Whilst this includes the extra optimizations in pr #18, It Is pretty amazing how much optimization has come from ESPHome. The team over there is pretty magic.
Hopefully can get these merged soon. 🙂