Configuring Loop On Unity sensor - Cant Add Integration

Hi all

I am a programmer but new to HA and yaml and could use some help, i have managed to upload a modified yaml to my unity sensor and it seems to be working but when i try to add a new integration with the correct IP of the device on wifi im getting an error. using default port as well.

This is my yaml for wifi and api stuff which is modified from the suppliers default

# Enable Home Assistant API
api:
  encryption:
    key: removed for security
ota:
  - platform: esphome
    password: removed for security
wifi:
  enable_on_boot: true
  ssid: !secret wifi_ssid
  password: !secret wifi_password


   #Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Hallwaysensor Fallback Hotspot"
    password: removed for security
  on_connect:
     - delay: 5s # Gives time for improv results to be transmitted
     - ble.disable:
  on_disconnect:
     - ble.enable:

i have foudn the solution it was a wifi connection problem simply added the output line

wifi:
  enable_on_boot: true
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  output_power: 8.5dB