Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How expand input using I2C bus?
#1
Hello! 
I bought two kc868-a8 and configured them via esphome. 
For the moment I'm using 8 digital input + 2 analog input as binary sensor and all 8 output.
I have 2 question. 
- Does it possible toggle one or more relays of the first card when I press one button of the second card? i know that I can use Home assistant for that but I'd like to know if there is a another way to do that.
- how can I expand input ports using IIC? 
Regards
Reply
#2
1. you can download KCS firmware to board, then use by IFTTT function. when press digital input button, trigger second board's relay (send customsize command to second board to turn ON/OFF relay)
2. yes, it's ok, we are developing extend i2c 8 channel INPUT and OUTPUT board, will release soon.
Reply
#3
I will look for this firmware. Is it Home assistant compatible?
Reply
#4
here is KCS firmware download link: https://www.kincony.com/forum/showthread.php?tid=3791
here is KCS online guide: https://www.kincony.com/esp32-kcsv2-firmware.html
sure, you can enable MQTT in KCS setting, then integrate to home assistant by MQTT, we already have ymal demo file on forum.
Reply
#5
ok, I will think about.
I have some troble with analog input used as binary sensor.
This is the code I'm using
- platform: gpio
name: "p_off_camera"
pin:
number: 32
inverted: true
on_press:
- switch.turn_off: l_camera_1
- switch.turn_off: l_comodino_dx
But when I insert the connector with my push button, I have a lot of "events" linked to other button!
Reply
#6
your button not good contact. see this video will help you: https://youtu.be/uY0WT0xRy94
there is option for delay.
Reply
#7
I'm sorry but I think i dind't explain my problem in the right way.
I've 2 kc868-a8 powered from the same power supply. So the ground is a common point for both card.
I connected several push buttons to each card. and I also connected 2 push bottons to both cards. I'd like to use the same push buttons to turn off a group on output. For those input, I'm using the analogs input of both card.
I meant...the same button is connected to both card!
The firmware is ok cause I can turn on lights with the buttons connected to digital inputs and I can turn off multiple lights when I press the button linked to ti analog inputs.
BUT!!! when I plug the connectors of analog input, I receive several signals as I pressed some buttons! The push buttons work properly! I just have this problem when I plug in the analog connectors!
Reply
#8
if you want one push button control different board's relay. just connect one push button to one board's digital input port.
then make IFTTT command, control one board's relay and send customsize command to second board or third board by network. not use one button connect both board's digital input port.
Reply
#9
(02-19-2024, 01:25 PM)admin Wrote: 1. you can download KCS firmware to board, then use by IFTTT function. when press digital input button, trigger second board's relay (send customsize command to second board to turn ON/OFF relay)
2. yes, it's ok, we are developing extend i2c 8 channel INPUT and OUTPUT board, will release soon.

Hi, any idea how soon it will release the extend i2c 8 channel input?
And just to understand, it will be possible to connect 8 extra dry inputs on my already working kc868-a8 with hard wiring and not a extra main module?
Reply
#10
sure, no problem. KinCony DI8 is released: https://www.kincony.com/i2c-io-expander-...board.html
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)