Can't connect to ESPHome API for kc868-a16s @ 192.168.30.85: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.30.85', port=6053))]: [Errno 113] Connect call failed ('192.168.30.85', 6053) (SocketAPIError)
12:04:07 – (ПРЕДУПРЕЖДЕНИЕ) runner.py
Almost every day I get this error. After it the device stops responding and I reboot it and then everything works
esphome:
name: kc868-a16s
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "iJcfgpwJwZg9ObKzoD9XIa1KAQx8yAy7BZwuo3ye5cg="
ota:
password: "f705fcd4ef788f830ac190213002873b"
# 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
use_address: 192.168.30.85
# Optional manual IP
manual_ip:
static_ip: 192.168.30.85
gateway: 192.168.30.1
subnet: 255.255.255.0
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24
- id: 'pcf8574_hub_out_2' # for output channel 9-16
address: 0x25
- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x22
- id: 'pcf8574_hub_in_2' # for input channel 9-16
address: 0x23
# Individual outputs
switch:
- platform: gpio
name: "a16s-output1"
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a16s-output2"
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a16s-output3"
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true
12:04:08 – (ПРЕДУПРЕЖДЕНИЕ) runner.py
kc868-a16s @ 192.168.30.85: Connection error occurred: Ping response not received after 90.0 seconds12:04:07 – (ПРЕДУПРЕЖДЕНИЕ) runner.py
Almost every day I get this error. After it the device stops responding and I reboot it and then everything works
esphome:
name: kc868-a16s
platform: ESP32
board: esp32dev
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "iJcfgpwJwZg9ObKzoD9XIa1KAQx8yAy7BZwuo3ye5cg="
ota:
password: "f705fcd4ef788f830ac190213002873b"
# 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
use_address: 192.168.30.85
# Optional manual IP
manual_ip:
static_ip: 192.168.30.85
gateway: 192.168.30.1
subnet: 255.255.255.0
# Example configuration entry
pcf8574:
- id: 'pcf8574_hub_out_1' # for output channel 1-8
address: 0x24
- id: 'pcf8574_hub_out_2' # for output channel 9-16
address: 0x25
- id: 'pcf8574_hub_in_1' # for input channel 1-8
address: 0x22
- id: 'pcf8574_hub_in_2' # for input channel 9-16
address: 0x23
# Individual outputs
switch:
- platform: gpio
name: "a16s-output1"
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
- platform: gpio
name: "a16s-output2"
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
- platform: gpio
name: "a16s-output3"
pin:
pcf8574: pcf8574_hub_out_1
number: 2
mode: OUTPUT
inverted: true