HA not reconnecting to ESPhome node

I am having an issue which I think is HA rather than ESPhome, but I am not sure.

I have a ESPhome node running on a NodeMCU 8266 module, this is connected to relays to control my CH system. It all works fine, and other than some occasional WiFi disconnects is stable.

Using the ESPhome integration in HA (not the newer ESPhome add-on), there are 5 ESPhome nodes in total.

My issue is that if this CH node loses wifi or reboots, HA does not reconnect with it until the server is restarted, meaning that we lose control until we take manual action. This is happening severals times per day.
While I can address the occasional loss of WiFi, I still expect HA to reconnect if it loses the connection without having to restart. Is there some setting I am missing somewhere?

Really very hard to know without any kind of configuration examples or logs.

Are you able to provide at least the YAML for your ESPHome device?

1 Like

Thanks, I am a noob with HA, I can see a general system log, but nothing for the ESPhome integration?

I will post the ESPHome YAML for the device.

Here is the YAML file for ESPhome for that device

esphome:
  name: boiler
  platform: ESP8266
  board: nodemcuv2

wifi:
  ssid: '******'
  password: '***'
  fast_connect: true
  manual_ip:
    static_ip: 192.168.0.17
    gateway: 192.168.0.1
    subnet: 255.255.255.0
    dns1: 192.168.0.254
    dns2: 8.8.8.8
  power_save_mode: none

switch:
  - platform: gpio
    pin: 
      number: D0
      inverted: true
    id: ledA
    name: "Boiler LED"
  - platform: gpio
    pin: 
      number: D1
      inverted: true
    id: relayA
    name: Burner
    restore_mode: RESTORE_DEFAULT_OFF
  - platform: gpio
    pin:
      number: D2
      inverted: true
    id: relayB
    name: Pump
    restore_mode: RESTORE_DEFAULT_OFF
  - platform: gpio
    pin: D5
    id: ledB
    name: "Burner LED"
  - platform: gpio
    pin: D6 
    id: leCd
    name: "Pump LED"

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: '***'

ota:
  password: '***'

dallas:
  - pin: D4

# Individual sensors
sensor:
  - platform: dallas
    index: 0
    name: "Boiler In"
  - platform: dallas
    index: 1
    name: "Boiler Out"