Different YAML's for the same device

What do you do with YAML versions when you are testing different sensors etc on a esp32 board?

For example I am testing a custom sensor but have to comment out a conflicting sensor code set up in order to test it.

Can you have more than one YAML (ie version 1/2 etc) within epshome for the same device, so that I can test different set ups without having to comment out lines each time?

Apologies if this demonstrates a basic misunderstanding - thought I’d better ask though before I try it.

If I corectly understood Your question - answer is Yes.

I have more than one YAML files with same device name inside. No problem.

1 Like

Of course. I have inverter, inverter-backup, inverter-old, inverter-test1…

1 Like

To avoid confusion I set up new “dummy” devices in ESPHome dashboard and call them Dummy1 and Dummy2. I copy YAML back and forth in one go. I delete the dummy device them all when I have finished fiddling. I also use Notepad to back up all my YAML.

1 Like

Thank you all. I only just noticed the “skip this step” in the installation options of ESPHome where you don’t have to have a device available and so can set up a dummy YAML, as you all describe.