Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Errno 113
#1
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:08 – (ПРЕДУПРЕЖДЕНИЕ) runner.py
kc868-a16s @ 192.168.30.85: Connection error occurred: Ping response not received after 90.0 seconds
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
Reply
#2
here is config yaml for A16S: https://www.kincony.com/forum/showthread.php?tid=2789
Reply
#3
(01-06-2024, 12:16 PM)admin Wrote: here is config yaml for A16S: https://www.kincony.com/forum/showthread.php?tid=2789

didn't help, I'm using this code. how do I use mqtt

do you have such firmware for the a16s


Attached Files Image(s)
   
Reply
#4
if you want use MQTT integrate to home assistant. just download KCS firmware to A16S, enable "MQTT" protocol.
here is online guide how to use KCS firmware: https://www.kincony.com/esp32-kcsv2-firmware.html
Reply
#5
yes, this program is better, but I have three ds18b20 temperature sensors, I know that it will not be possible to connect them to one wire
Reply
#6
no, KCS firmware can't use multi sensor with one GPIO.
if you config by ESPHome, then you can use multi sensor with one GPIO, and make MQTT work for your own server.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)