Skip to content

device IP: static lease for good practice? #1534

Answered by make-all
alexeiw123 asked this question in Q&A
Discussion options

You must be logged in to vote

It is better to set up a static IP (DHCP reservation) for your devices so they do not move around.

You can use domain names in the address field, but there are some limitations with the way HA does DNS lookups and DNS cache timeouts etc that will make that less reliable than static IPs.

There is also an option to use Auto discovery by leaving the IP address blank, but this violates HA design guidelines by sleeping on the event thread, and also will not work if localtuya is also installed, as it requires access to several broadcast listening ports that can only be opened by one integration. Even when the Auto setting does work, it makes connection take much longer, which also affects recon…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by alexeiw123
Comment options

You must be logged in to vote
2 replies
@make-all
Comment options

@alexeiw123
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants