Best process for replacing ESP32 components in ESPHome?

Hi, there!

I have an ESP32 which I will replace with a new one.
The reason is that it controls one power relay today, and I need to extend it to control two relays.
For testing purposes I was thinking replacing the existing components with an entire new set of components, including the new 2x relay.

How would you suggest I go about this?
I will obviously copy the yaml over, but will I need to delete the existing ESPHome entry, or can I just add a new switch (to control the second relay) to the existing yaml and then flash a new ESP32 with the new binary?

Any tips for what GPIO is the best to use to control the relays?

For GPIOs https://randomnerdtutorials.com/esp32-pinout-reference-gpios/

1 Like

I’ve had best results totally removing the affected device from the ha integrations screen and then re adding it.

2 Likes