So, no probs setting up my 50+ smart home devices, but they all obtain IP address though DHCP.
When leases are renewed, the IP changes, then HA “loses” the device. Then ain have to reconfigure.
Yes I could go though all my devices and assign static IPs but that shouldn’t be necessary. Can HA not use MAC addresses rather than IP, or both (user option) or in some way acquire the MAC after the initial connection via IP has succeeded? Seems an obvious approach but it’s not how HA works, or is it?
How this all works is integrating specific. In general you’ll need a static IP address or a host name (and ability for your routers to provide DNS to resolve it.).
I tried to use the hostname assigned in the router. I can ping hostnames from a terminal, but HA running in docker can never"see" any hostname i enter into any integration. This coukd be the answer if it worked
Some routers also provide DHCP reserved addresses. The first connection with a device it gets a address assigned and you can pin that address to the device.
That’s, what I use on my FritzBox router.
So my devices never change IP even when using DHCP
Can I just check, ask a basic qstn,…
When I reserve address in my router DHCP page and allocate a name to that device in the page, is that name the hostnane that i can use in other devices and apps , to reference that IP?