Smart Home Automation Forum
Problem with A16 inputs 9-16 - 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 A16 inputs 9-16 (/showthread.php?tid=8763)



Problem with A16 inputs 9-16 - jarekD - 11-23-2025

On my A16, inputs 9-16 show all on, while nothing is physically connected.
I tested with a multimeter and there is +12V between GND and any input pin. It's the same on Inputs 1-8 btw, but they work just fine.

My device is connected to Home Assistant as ESPHome, below is the programmed YAML's relevant parts. I compared this with the recommended settings and it looks pretty much the same. Any clue what is wrong, or am I missing something in the config?

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

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24
    pcf8575: false

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25
    pcf8575: false

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22
    pcf8575: false

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x21
    pcf8575: false
Code:
binary_sensor:
#skipped inputs 1-8, they work fine
  - platform: gpio
    name: ${input9_name}
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: ${input10_name}
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true
# and so on for 11-16...



RE: Problem with A16 inputs 9-16 - admin - 11-23-2025

because you have not add the code:
inverted: true


RE: Problem with A16 inputs 9-16 - jarekD - 11-24-2025

(11-23-2025, 10:54 PM)admin Wrote: because you have not add the code:
inverted: true

Please review the configuration snippet I've included. I added the inverted parameter. It is there.


RE: Problem with A16 inputs 9-16 - admin - 11-24-2025

when digital input =0v or short with GND then DI=ON
when digital input =12/24v then DI=OFF


RE: Problem with A16 inputs 9-16 - jarekD - 11-25-2025

(11-24-2025, 11:17 PM)admin Wrote: when digital input =0v or short with GND then DI=ON
when digital input =12/24v then DI=OFF

Okay, I might not have been clear regarding 12V in my first post.
I tested this with nothing connected to see if inputs 1-8 and 9-16 behave the same when nothing is connected to either of them. They do, the multimeter shows +12V from GND to any input when nothing else is connected.
But with my A16, inputs 9-16 show as ON all the time, with nothing connected, and with the inverted: true flag set in the config.


RE: Problem with A16 inputs 9-16 - admin - 11-25-2025

can you download KCS v2 firmware to test whether hardware is well. if KCS v2 also have issue, maybe it's hardware issue. if KCS v2 work well, so check esphome config file.


RE: Problem with A16 inputs 9-16 - jarekD - 11-25-2025

(11-25-2025, 01:30 AM)admin Wrote: can you download KCS v2 firmware to test whether hardware is well. if KCS v2 also have issue, maybe it's hardware issue. if KCS v2 work well, so check esphome config file.

Hi,
This is a bit weird...
I installed the KCS firmware, and Inputs 9-16 worked fine as expected.
Then I reinstalled the ESPHome firmware, the same as the previous one, with no changes in settings, and now it works too.
Good that problem is solved, but I don't understand what has happened.


RE: Problem with A16 inputs 9-16 - admin - 11-25-2025

just good luckSmile