Open jamespreedy opened 2 months ago
Hey there @ottowinter, @jesserockz, @kbx81, @bdraco, mind taking a look at this issue as it has been labeled with an integration (esphome
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
esphome documentation esphome source (message by IssueLinks)
Same problem.
If I change the device's IP in the Esphome code, when the device is updated it works correctly, but if you restart home assistant, it loses the connection with the device, having to update all the devices whose IP was changed every time you restart home assistant so that it recognizes them again.
Until they fix it I have gone back to the old IPs
The problem
IP address changes incorrectly for ESPHome devices, causing entities to appear unavailable in HASS.
What version of Home Assistant Core has the issue?
core-2024.5.5
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
ESPHome
Link to integration documentation on our website
https://www.home-assistant.io/integrations/esphome/
Diagnostics information
Relevant config from devices in ESPHome.
If I delete devices from Home Assistant, they reappear with zeroconf and ask to be added. When I add them, they are added to .storage/core.config_entries with correct IP addresses.
However, when HASS is rebooted, .storage/core.config_entries is updated, and incorrect IPs replace correct IPs.
Example YAML snippet
No response
Anything in the logs that might be useful for us?
$ dns-sd -q esp-kitchen-atom.local DATE: ---Mon 27 May 2024--- 12:07:29.965 ...STARTING... Timestamp A/R Flags IF Name Type Class Rdata 12:07:29.966 Add 2 0 esp-kitchen-atom.local. Addr IN 192.168.1.113 12:07:30.211 Add 2 14 esp-kitchen-atom.local. Addr IN 192.168.1.113 12:07:30.545 Add 2 12 esp-kitchen-atom.local. Addr IN 192.168.1.113 12:07:45.969 Rmv 0 0 esp-kitchen-atom.local. Addr IN 192.168.1.113 12:07:48.642 Add 2 0 esp-kitchen-atom.local. Addr IN 192.168.1.113
$ dns-sd -q esp-bedroom-3-atom.local DATE: ---Mon 27 May 2024--- 12:08:34.482 ...STARTING... Timestamp A/R Flags IF Name Type Class Rdata 12:08:34.484 Add 2 0 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:08:34.843 Add 2 14 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:08:35.279 Add 2 12 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:11:09.666 Rmv 0 0 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:11:11.002 Add 2 0 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:12:16.110 Rmv 0 0 esp-bedroom-3-atom.local. Addr IN 192.168.1.118 12:12:17.668 Add 2 0 esp-bedroom-3-atom.local. Addr IN 192.168.1.118
$ dig esp-bedroom-3-atom.local
; <<>> DiG 9.10.6 <<>> esp-bedroom-3-atom.local ;; global options: +cmd ;; Got answer: ;; WARNING: .local is reserved for Multicast DNS ;; You are currently testing what happens when an mDNS query is leaked to DNS ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 40042 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;esp-bedroom-3-atom.local. IN A
;; ANSWER SECTION: esp-bedroom-3-atom.local. 0 IN A 192.168.1.118
;; Query time: 1 msec ;; SERVER: 192.168.1.2#53(192.168.1.2) ;; WHEN: Mon May 27 12:12:35 BST 2024 ;; MSG SIZE rcvd: 69
$ dig esp-kitchen-atom.local
; <<>> DiG 9.10.6 <<>> esp-kitchen-atom.local ;; global options: +cmd ;; Got answer: ;; WARNING: .local is reserved for Multicast DNS ;; You are currently testing what happens when an mDNS query is leaked to DNS ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51218 ;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
;; OPT PSEUDOSECTION: ; EDNS: version: 0, flags:; udp: 1232 ;; QUESTION SECTION: ;esp-kitchen-atom.local. IN A
;; ANSWER SECTION: esp-kitchen-atom.local. 0 IN A 192.168.1.113
;; Query time: 0 msec ;; SERVER: 192.168.1.2#53(192.168.1.2) ;; WHEN: Mon May 27 12:12:54 BST 2024 ;; MSG SIZE rcvd: 67