Not sure how to fix this, the IPs changed on my system so the device is no longer 192.168.10.113. The API call is however still trying to call the old IP.
Can’t connect to ESPHome API for smartplug-rumpus @ 192.168.10.113: Error connecting to (‘192.168.10.113’, 6053): [Errno 113] Connect call failed (‘192.168.10.113’, 6053)
What is strange is I change my whole IP range but only one or two devices have been affected like this.
I have tried rebooting the system and reuploading the code but nothing seems to help. How do I fix this?
I have commented out code in all of mine for when the IP is changed for whatever reason. It’s not setting a manual IP, but forcing it to use a specific IP when uploading. Once uploaded it will use either the DHCP assigned IP or the manual IP if you’ve set one. Just uncomment that one line, upload and then you can comment it out after.
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# Temp upload address when changing IP - Remove after upload
# use_address: 192.168.20.118
Alas this did not work. It always get the right IP, its just something seems caches in ESPHome
But then when I click on the button, I get the following in the logs
Can’t connect to ESPHome API for smartplug-rumpus @ 192.168.10.113: Error connecting to (‘192.168.10.113’, 6053): [Errno 113] Connect call failed (‘192.168.10.113’, 6053)
I had the same issue, but instead of deleting it I had the line:
domain: “.lan” added to the config, for some reason with this still in the config the IP wouldn’t change, as soon as I removed it and saved the IP updated without an issue.