Setting Fixed IP Address

I am trying to configure a LocalByes ESP8266 Plug to use a fixed IP address and not DHCP, but can’t get the IP Address section to work.

If I remove the manual_ip section it installs fine, if I include it, it fails with

INFO Successfully compiled program.
INFO Connecting to 192.168.8.3
ERROR Connecting to 192.168.8.3:8266 failed: [Errno 113] No route to host

wifi:
  fast_connect: True
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.8.3
    gateway: 192.168.8.1
    subnet: 255.255.255.0

Any know what I am doing wrong ?

Thanks

See here:

Use:

  use_address: 192.168.8.[CURRENT DHCP ADDRESS]

to flash the new code. Then once the device is up and running at .3, remove that line and reflash.

1 Like

Another option is to enable a web server in ESPHOME, and upload the compiled bin file through that.

2 Likes

That did it :smile:

Thanks

1 Like