Connecting to Multiple Networks + secrets.yaml

Hi,
I have two SSIDs on the same network with HA and I’d like to have my device be able to connect to either of two.
In here (WiFi Component - ESPHome - Smart Home Made Simple) I see configuration with ssid : passwords in the device’s yaml.
But how keep these credential in !secrets.yaml?
And keep static IP for either connection.
thank you

Did you do a forum and internet search for your questions?
I think they are FAQs.

@Mahko_Mahko, Yes. there are few I did see, but looks to me they are not applicable or I dont understand how to use. Can provide an example. May missed correct answers. Thanks you.

There’s also this:

https://esphome.io/guides/yaml/#secrets-and-the-secretsyaml-file

And this

yes, this is good. Thank you.

1 Like