Problem with Yaml demo file - Printable Version +- Smart Home Automation Forum (https://www.kincony.com/forum) +-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20) +--- Forum: KC868-A16 (https://www.kincony.com/forum/forumdisplay.php?fid=25) +--- Thread: Problem with Yaml demo file (/showthread.php?tid=6135) |
Problem with Yaml demo file - Bigh - 07-18-2024 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 RE: Problem with Yaml demo file - admin - 07-18-2024 if you want download firmware for A16 board. Do you have remove the RF433M receiver module? it MUST removed from PCB socket. RE: Problem with Yaml demo file - Bigh - 07-18-2024 (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 RE: Problem with Yaml demo file - admin - 07-18-2024 you can download this file to use: ESPHome_A16.txt (Size: 1.67 KB / Downloads: 101) because if you copy and paste from webpage directly, there will have problem. RE: Problem with Yaml demo file - Bigh - 07-19-2024 (07-18-2024, 08:55 PM)admin Wrote: you can download this file to use: 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. RE: Problem with Yaml demo file - admin - 07-19-2024 1. where your home assistant installed? raspberry pi? 2. during download firmware, do you have removed RF433M receiver module from KC868-A16 PCB? RE: Problem with Yaml demo file - Bigh - 07-19-2024 (07-19-2024, 12:57 PM)admin Wrote: 1. where your home assistant installed? raspberry 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 RE: Problem with Yaml demo file - admin - 07-19-2024 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 |