Smart Home Automation Forum
KC868-A128 configure for ESPhome - 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-A128 (https://www.kincony.com/forum/forumdisplay.php?fid=34)
+--- Thread: KC868-A128 configure for ESPhome (/showthread.php?tid=2114)

Pages: 1 2


RE: KC868-A128 configure for ESPhome - admin - 02-12-2023

thanks for your help.


RE: KC868-A128 configure for ESPhome - soethu - 12-03-2023

I tried to update esp home server but I can't upload yaml file. I don't know why. ESP sever showing offline. I used 3 network cables. 2 are on KC868 server and 1 is connecting on A128.
Please give me some advice.

Thank you!

Updating /config/esphome/kc868-server.yaml
------------------------------------------------------------

INFO ESPHome 2023.11.6
INFO Reading configuration /config/esphome/kc868-server.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
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
WARNING GPIO15 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
WARNING GPIO15 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 Generating C++ source...
INFO Compiling app...
Processing a128 (board: esp32dev; framework: arduino; platform: platformio/espressif32@5.4.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
- toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- WiFi @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- Wire @ 2.0.0
RAM:  [=        ]  11.2% (used 36744 bytes from 327680 bytes)
Flash: [===      ]  33.9% (used 622121 bytes from 1835008 bytes)
========================= [SUCCESS] Took 11.32 seconds =========================
INFO Successfully compiled program.
ERROR Cannot upload Over the Air as the config does not include the ota: component
======== [ERROR] /config/esphome/kc868-server.yaml ========



======================== [SUMMARY] ========================
  - /config/esphome/kc868-server.yaml: FAILED


RE: KC868-A128 configure for ESPhome - admin - 12-04-2023

can you take a video send to whatsapp number: +86-15381188302


RE: KC868-A128 configure for ESPhome - soethu - 12-04-2023

(12-04-2023, 02:25 AM)admin Wrote: can you take a video send to whatsapp number: +86-15381188302

I just sent the video via WhatsApp. Please kindly check it out and let me know asap.

Thank you so much!
Soe


RE: KC868-A128 configure for ESPhome - admin - 12-04-2023

post your "kc868-server.yaml" file at here.


RE: KC868-A128 configure for ESPhome - gabi_jackass@yahoo.com - 05-27-2025

Hello. I love the way it works with EspHome, but I don't see a configuration section for the analog inputs, RS485 and serial. Can you please help me with this ?


RE: KC868-A128 configure for ESPhome - admin - 05-27-2025

this is analog input code for ESPHome:
Code:
sensor:
  - platform: adc
    pin: 39
    name: "A128 A1 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 34
    name: "A128 A2 Voltage"
    update_interval: 5s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 36
    name: "A128 A3 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 35
    name: "A128 A4 Current"
    update_interval: 5s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666