Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with A16 inputs 9-16
#1
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...
Reply
#2
because you have not add the code:
inverted: true
Reply
#3
(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.
Reply
#4
when digital input =0v or short with GND then DI=ON
when digital input =12/24v then DI=OFF
Reply
#5
(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.
Reply
#6
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.
Reply
#7
(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.
Reply
#8
just good luckSmile
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)