Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A8 Error connecting to [AddrInfo(family=<AddressFamily.AF
#1
Salam Dears 

I have this problem with  some boards in my project 
I have  5 devices A8  each  device is connected to a switch server that connects us with the home assistant virtual machine using esphome 
 if you have any solution  or  in code or my network  
if you need  any information ask me 
error code  

Code:
INFO ESPHome 2025.3.0
INFO Reading configuration /config/esphome/hq3floor-a8-channel.yaml...
WARNING GPIO5 is a strapping PIN and should only be used for I/O with care.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Starting log output from 10.200.224.209 using esphome API
WARNING Can't connect to ESPHome API for hq3floor-a8-channel @ 10.200.224.209: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='10.200.224.209', port=6053))]: [Errno 113] Connect call failed ('10.200.224.209', 6053) (SocketAPIError)
INFO Trying to connect to hq3floor-a8-channel @ 10.200.224.209 in the background

this yaml  code
Code:
esphome:
  name: hq3floor-a8-channel
  friendly_name: HQ3Floor A8 Channel

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "**********************"

ota:
  - platform: esphome
    password: "************"
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Optional manual IP
  manual_ip:
    static_ip: 10.200.224.209
    gateway: 10.200.224.4
    subnet: 255.255.255.0
    dns1: 8.8.8.8
    dns2: 8.8.4.4
Reply
#2
if you have many KC868-A8 board, i suggest you remove the static ip config code, just use by DHCP.
remove these code, connect to your router, DHCP by router is better.
manual_ip:
static_ip: 10.200.224.209
gateway: 10.200.224.4
subnet: 255.255.255.0
dns1: 8.8.8.8
dns2: 8.8.4.4
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)