Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with Yaml demo file
#1
I am trying to install the A16 rev 1.6 for ESP Home Assistant.
The A16 connects and is recognized
When I try to load the sample YAML file I get an error message
What should I change so that it works properly and I can see all the characteristics of the card and I can program it directly from the software

esphome:
name: kc868-a16
platform: ESP32
board: esp32dev
# 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: 192.168.100.200
gateway: 192.168.100.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: 0x21
– id: ‘pcf8574_hub_in_2’ # for input channel 9-16
address: 0x22
# Individual outputs
switch:
– platform: gpio
name: “light1”
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true
– platform: gpio
name: “light2”
pin:
pcf8574: pcf8574_hub_out_1
number: 1
mode: OUTPUT
inverted: true
Reply
#2
if you want download firmware for A16 board. Do you have remove the RF433M receiver module? it MUST removed from PCB socket.
Reply
#3
(07-18-2024, 11:59 AM)admin Wrote: if you want download firmware for A16 board.  Do you have remove the RF433M receiver module? it MUST removed from PCB socket.

i removed the rf device.
still getting this message from the esp home assist:  INFO ESPHome 2024.7.0
INFO Reading configuration /config/esphome/esphome-web-fe42e8.yaml...
ERROR Error while reading config: Invalid YAML syntax:
INFO ESPHome 2024.7.0
INFO Reading configuration /config/esphome/esphome-web-fe42e8.yaml...
ERROR Error while reading config: Invalid YAML syntax:

Duplicate key "– id"
  in "/config/esphome/esphome-web-fe42e8.yaml", line 32, column 1
NOTE: Previous declaration here:
  in "/config/esphome/esphome-web-fe42e8.yaml", line 29, column 1

the code is good until here:

# Example configuration entry
pcf8574:
– id: ‘pcf8574_hub_out_1’ # for output channel 1-8              this is line 29
address: 0x24
– id: ‘pcf8574_hub_out_2’ # for output channel 9-16
address: 0x25
– id: ‘pcf8574_hub_in_1’ # for input channel 1-8                this is line 32
address: 0x21
– id: ‘pcf8574_hub_in_2’ # for input channel 9-16
address: 0x22
# Individual outputs
switch:
– platform: gpio
name: “light1”
pin:
pcf8574: pcf8574_hub_out_1
number: 0
mode: OUTPUT
inverted: true


   

Duplicate key "– id"
  in "/config/esphome/esphome-web-fe42e8.yaml", line 32, column 1
NOTE: Previous declaration here:
  in "/config/esphome/esphome-web-fe42e8.yaml", line 29, column 1


INFO ESPHome 2024.7.0 INFO ESPHome 2024.7.0
INFO Reading configuration /config/esphome/esphome-web-fe42e8.yaml...
ERROR Error while reading config: Invalid YAML syntax:

Duplicate key "– id"
  in "/config/esphome/esphome-web-fe42e8.yaml", line 32, column 1
NOTE: Previous declaration here:
  in "/config/esphome/esphome-web-fe42e8.yaml", line 29, column 1
INFO Reading configuration /config/esphome/esphome-web-fe42e8.yaml...
ERROR Error while reading config: Invalid YAML syntax:

Duplicate key "– id"
  in "/config/esphome/esphome-web-fe42e8.yaml", line 32, column 1
NOTE: Previous declaration here:
  in "/config/esphome/esphome-web-fe42e8.yaml", line 29, column 1
Reply
#4
you can download this file to use:
.txt   ESPHome_A16.txt (Size: 1.67 KB / Downloads: 102)

because if you copy and paste from webpage directly, there will have problem.
Reply
#5
(07-18-2024, 08:55 PM)admin Wrote: you can download this file to use:

because if you copy and paste from webpage directly, there will have problem.

now i am getting a new error:

Compiling .pioenvs/relay1/FrameworkArduino/esp32-hal-uart.c.o
Compiling .pioenvs/relay1/FrameworkArduino/firmware_msc_fat.c.o
Compiling .pioenvs/relay1/FrameworkArduino/libb64/cdecode.c.o
Compiling .pioenvs/relay1/FrameworkArduino/libb64/cencode.c.o
Compiling .pioenvs/relay1/FrameworkArduino/main.cpp.o
Compiling .pioenvs/relay1/FrameworkArduino/stdlib_noniso.c.o
Compiling .pioenvs/relay1/FrameworkArduino/wiring_pulse.c.o
Compiling .pioenvs/relay1/FrameworkArduino/wiring_shift.c.o
Archiving .pioenvs/relay1/libFrameworkArduino.a
Linking .pioenvs/relay1/firmware.elf
RAM:  [=        ]  10.6% (used 34704 bytes from 327680 bytes)
Flash: [===      ]  31.9% (used 586257 bytes from 1835008 bytes)
Building .pioenvs/relay1/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin([".pioenvs/relay1/firmware.bin"], [".pioenvs/relay1/firmware.elf"])
Wrote 0x9f740 bytes to file /data/build/relay1/.pioenvs/relay1/firmware.factory.bin, ready to flash to offset 0x0
esp32_copy_ota_bin([".pioenvs/relay1/firmware.bin"], [".pioenvs/relay1/firmware.elf"])
========================= [SUCCESS] Took 26.60 seconds =========================
INFO Successfully compiled program.
ERROR Cannot upload Over the Air as the ota configuration is not present or does not include platform: esphome
please advise with this issue.
Reply
#6
1. where your home assistant installed? raspberry pi?
2. during download firmware, do you have removed RF433M receiver module from KC868-A16 PCB?
Reply
#7
(07-19-2024, 12:57 PM)admin Wrote: 1. where your home assistant installed? raspberry pi?
2. during download firmware, do you have removed RF433M receiver module from KC868-A16 PI 
i think i solved the problem.
it works only with "over the air" with OTA description in the .yaml

question: 

1. is there any option to work with ethernet insted of wifi? when i try it said only wifi so i had to remove the configuration.
2. please send me the code for enabling the RF at esp home
Reply
#8
1. our config yaml just use ethernet as default. use by LAN8720 ethernet chip.
2. you need to define what you wanted function. you can see this yaml sample, it config for KC868-A8S use for RF remote demo code, if you want use for KC868-A16, just replace RF 433M receiver's GPIO pin define. https://www.kincony.com/forum/showthread.php?tid=1946
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)