Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi there.
I am not able to communicate to the standard device_name.local logic in my setup, I have to give esphome the IP address that the device actually has. That is what the parameter use_address is for ( https://esphome.io/components/wifi.html#configuration-variables )
I have added that parameter and a default to your solution.
I have added a default to avoid warnings during compilation if none is defined. -> but I am unsure if that is the correct default. I tried nothing ( "" ), I tried "auto".. all those a problematic, so I think this device_name.local works.
Eventually, now it is possible to use this parameter like this in the yaml:
greetings,
PhiL