Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Esphome invalid config KC-868 A8
#9
I have a bug in the KC-868 A8.

Bug description:
   - The board works fine for approximately 20 minutes, then It reboots.

Running EspHome Configuration:
Code:
esphome:
  name: kc868-a8
  platform: ESP32
  board: esp32dev

logger:

api:

ota:
  - platform: esphome

ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

pcf8574:
  - id: 'out'
    address: 0x24

  - id: 'in'
    address: 0x22
   
switch:
  - platform: gpio
    name: "relay1"
    id: "relay1"
    pin:
      pcf8574: out
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay2"
    id: "relay2"
    pin:
      pcf8574: out
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay3"
    id: "relay3"
    pin:
      pcf8574: out
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay4"
    id: "relay4"
    pin:
      pcf8574: out
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay5"
    id: "relay5"
    pin:
      pcf8574: out
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay6"
    id: "relay6"
    pin:
      pcf8574: out
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay7"
    id: "relay7"
    pin:
      pcf8574: out
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "relay8"
    id: "relay8"
    pin:
      pcf8574: out
      number: 7
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: "input1"
    id: "input1"
    pin:
      pcf8574: in
      number: 0
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay1

  - platform: gpio
    name: "input2"
    id: "input2"
    pin:
      pcf8574: in
      number: 1
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay2

  - platform: gpio
    name: "input3"
    id: "input3"
    pin:
      pcf8574: in
      number: 2
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay3

  - platform: gpio
    name: "input4"
    id: "input4"
    pin:
      pcf8574: in
      number: 3
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay4

  - platform: gpio
    name: "input5"
    id: "input5"
    pin:
      pcf8574: in
      number: 4
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay5

  - platform: gpio
    name: "input6"
    id: "input6"
    pin:
      pcf8574: in
      number: 5
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay6

  - platform: gpio
    name: "input7"
    id: "input7"
    pin:
      pcf8574: in
      number: 6
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay7

  - platform: gpio
    name: "input8"
    id: "input8"
    pin:
      pcf8574: in
      number: 7
      mode: INPUT
      inverted: true
    on_click:
      min_length: 30ms
      max_length: 500ms
      then:
        - switch.toggle: relay8

  - platform: gpio
    name: "a8-v2-s3"
    pin:
      number: 32
      inverted: true

  - platform: gpio
    name: "a8-v2-s4"
    pin:
      number: 33
      inverted: true

web_server:
  version: 2
  port: 80

Outcome:
   - I have 16 lights in my apartment that are controlled with 2 KC-868 A8 boards. After approximately 20 minutes both boards reboot and all lights switch off, then I have to press the switches on again to have light.

Steps I tried:
   - Review the EspHome config file.   I don't see anything strange, Probably I am using a non recommended gpio that makes the trouble?
   - Power supply review, I changed the power supply and connected to different sources but the problem persists. Is strange that both boards reboot at the same exact moment...

I appreciate some expert advice. Thanks
Reply


Messages In This Thread
Esphome invalid config KC-868 A8 - by Lory - 12-09-2024, 06:48 PM
RE: Esphome invalid config KC-868 A8 - by admin - 12-09-2024, 10:20 PM
RE: Esphome invalid config KC-868 A8 - by Lory - 12-09-2024, 10:37 PM
RE: Esphome invalid config KC-868 A8 - by admin - 12-09-2024, 10:53 PM
RE: Esphome invalid config KC-868 A8 - by MariusM - 12-10-2024, 02:57 PM
RE: Esphome invalid config KC-868 A8 - by admin - 12-10-2024, 11:56 PM
RE: Esphome invalid config KC-868 A8 - by MariusM - 12-12-2024, 11:38 PM
RE: Esphome invalid config KC-868 A8 - by admin - 12-13-2024, 01:00 AM
RE: Esphome invalid config KC-868 A8 - by Lory - 02-16-2025, 12:50 PM
RE: Esphome invalid config KC-868 A8 - by admin - 02-17-2025, 12:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)