Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-A16 ESPHome led output not working
#1
Hi,

I tried turning on and off without any problem, esphome is working.
But when i check the board, the output led does not light up when i turn it on.
Below are the yaml i used, is there anything missing or wrong that causes the led not to light up when i switch it on using esphome?
Btw i have not connect or use any DC12/24v input yet.

# Example configuration entry for output input channel 1-16
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


switch:
 - platform: gpio
    name: "switch01"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "switch02"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "switch03"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "switch04"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true


binary_sensor:
  - platform: gpio
    name: "input01"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input02"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input03"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "input04"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true


Ops, connecting 12v DC Input by looping from the power, the led light up


Attached Files Image(s)
   
Reply
#2
can you take a photo how your wire your KC868-A16 board.
i think you maybe have not connect the Vin with dc12v, so that LED will not ON. in your photo, do you have seen "12v/24v DC input" terminal port? this need connect with power supply dc12v or 24v.
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)