-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing .local in domain name for Athom devices #111
Comments
@rmaeder It should be working fine with nothing in that substitution field, as it defaults to .local that way. If you unit isn't working then for YOUR devices, in each individual devices configuration file in ESPHome interface, you should add this:
For example your config for each device should look like:
(ignore the remote_package section, that points to my personal version for these plugs... yours should point to the https://github.com/athom-tech/athom-configs/blob/main/athom-without-relay-plug.yaml instead). |
I faced the same problem as @rmaeder. In my case, I use a domain suffix at home (e.g. |
@Bert-R assume your using .home.my.domain (needs the . at the start). Scratching my head as this setting is used in (essentially) every Athom products yaml configuration, yet this is the first issue raised saying it isn't defaulting to using .local ? From https://esphome.io/components/wifi.html it says:
with substitutions dns_domain: "" being blank/empty it should be default to .local |
Yes, it is configured as:
The issue is that I need to do that for the Athom plugs only. For my other ESP Home devices I do not have to specify the domain suffix defined. The issue came up after an update of ESP Home. At that time, I reported it here: esphome/issues#5827 (comment) |
I've always had this issue (missing domain .local) ever since I adopted two of these plugs into ESPHome about two months ago. Currently I am on ESPHome 2024.11.2 I notice that in the device source, at line 14, https://github.com/athom-tech/athom-configs/blob/main/athom-smart-plug-v2.yaml#L14 I changed my original workaround to your suggestion,
and it does work. |
@rmaeder If this was confirmed as solving the issue, was there a PR raised to update all the products template yamls? Edit: Don't worry I will do for ESP8286 and ESP32 repos. |
When I adopt an Athom Smart Plug V2 in ESPHome,
The link under the "VISIT" button uses the domain name athom-smart-plug-v2-ecXXX without .local appended; this does not work. Other devices, such as an Apollo Multisensor Mk1 use a domain name of apollo-msr-1-XXXX.local, which usually works.
When trying to update it, there is this error after the compilation, when it wants to upload the new configuration:
INFO resolving IP address of athom-smart-plug-v2-ecXXX
which fails for the same reason: the .local suffix is missing.
workaround: in the esphome config file for the device, add
domain: ".local"
:this should probably happen here: https://github.com/athom-tech/athom-configs/blob/main/athom-smart-plug-v2.yaml#L14
The text was updated successfully, but these errors were encountered: