ESP8266 Relay (active low): how to prevent triggering on boot or reset (SOLVED)

Hi everyone.
I’ve tried almost everything, and the only thing that has worked for me is declaring the board in this way:

esp8266:

  • board: d1_mini
    early_pin_init: false

It’s the only way I’ve found to avoid the “blinking” during boot-ups.
Even with capacitors, it still happened.
I’ve tried on both old and new D1 Mini boards (Chinese clones), and it has worked in both cases.