I have setup multiple lamps and sensors in my Home Assistant configuration and everything works fine. However, I want to know how to best handle the following scenario.
Suppose there is a problem with my router or a power cut happens, and my router is rebooted. In this case there is a possibility that the multiple IoT devices connected to my network get new IP address assigned to them. If these new IP addresses are different from ones I used in the configuration.yaml setup, I will have to update the file to handle this.
I was wondering if there an automatic/graceful way of handling this, rather than having to manually update all the addresses? Any help will be appreciated.
I looked at a few of the example configuration.yaml files under the Examples section. I see most of them have hardcoded IP addresses for sensors, lights etc. How do they ensure these are not changed to new addresses if/when the router reboots?