Manually specify IP for OTA flash?

Is there anyway with ESPHOME to set the IP to flash to? Neither local DNS or mDNS is working for me, the devices work but show offline and I need to flash them… and so far I can’t find a solution.

Or, Ideally, is there a way to just manually set an IP in the HASSIO side of things for ESPHOME? Everything is static in the router, so not concerned with ips moving.

in the yaml file add this

wifi:
  ssid: "ssid"
  password: "your password"
  manual_ip:
    static_ip: the_ipaddress_of_this_thing
    gateway: your_router
    subnet: 255.255.255.0
# Enable logging

validate it
complie it
download bin file
plug in thing into usb
upload bin file reboot
done
and esphome will show a green dot when on line

if you are using the command line you can try

esphome file.yaml run --upload-port <ip-address>

1 Like

You can use the use_address config parameter to define which address to use to connect to the node.

wifi:
  use_address: 192.168.1.50
  ...
11 Likes