Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,534
» Latest member: uy88eventts
» Forum threads: 4,183
» Forum posts: 20,789

Full Statistics

Online Users
There are currently 29 online users.
» 0 Member(s) | 16 Guest(s)
Amazonbot, Applebot, Baidu, Google, PetalBot, Sogou web, bot

Latest Threads
CAN-BUS Transceiver
Forum: T16M
Last Post: jc10000rpm
1 hour ago
» Replies: 0
» Views: 1
cannot see KC868-A6 in ro...
Forum: "KCS" v2 firmware system
Last Post: Armsp0
3 hours ago
» Replies: 6
» Views: 219
How to get started
Forum: KC868-A16
Last Post: Lomagno
6 hours ago
» Replies: 38
» Views: 9,523
N60 configure yaml for ES...
Forum: N60
Last Post: chuyskywalker
Yesterday, 07:18 AM
» Replies: 5
» Views: 1,767
KC868-A16
Forum: "KCS" v2 firmware system
Last Post: 5310h
08-05-2026, 09:40 PM
» Replies: 9
» Views: 3,009
KC868-A16 UART pins
Forum: KC868-A series and Uair Smart Controller
Last Post: meowdokugame
08-04-2026, 07:40 AM
» Replies: 2
» Views: 584
KC868-A32 Malfunction Aft...
Forum: KC868-A32/A32 Pro
Last Post: admin
08-04-2026, 06:19 AM
» Replies: 3
» Views: 83
KinCony F8 + ESPHome: Una...
Forum: F8
Last Post: admin
08-02-2026, 11:00 PM
» Replies: 2
» Views: 42
F8 ESPHome yaml for home ...
Forum: F8
Last Post: admin
08-02-2026, 11:00 PM
» Replies: 0
» Views: 22
Schema A16V3 for Research...
Forum: KC868-A16v3
Last Post: hamzachaouri
08-02-2026, 10:34 PM
» Replies: 2
» Views: 75

  KC868-A8-E
Posted by: avihay - 07-09-2023, 07:39 AM - Forum: "KCS" v2 firmware system - Replies (11)

Our company purchased a KC868-A8-E board for the project. We received a file that can be used in RF. The file is locked. It is not possible to add an INA266 card in order to finish the automation. Please ESP file or open file of KCS_KC868_A8_V2.0.2

Print this item

  KC868-A8 with Motion Sensor HC-SR501
Posted by: vijjav - 07-06-2023, 03:03 PM - Forum: KC868-A8 - Replies (7)

I need help connecting pir motion sensor with A8 board. Should i connect with DI 1-8 or s2, s3 terminals? 

Here is the code part I am currently using. 

Code:
switch:
  - platform: gpio
    name: "Study Room PIR"
    id: a8_study_room_pir
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: false

binary_sensor:
  - platform: gpio
    name: "a8_study_room_pir"
    device_class: motion
#    on_press:
#      then:
#        - switch.toggle: a8_study_room_pir
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: false

Print this item

  how instal firmware.
Posted by: befree8 - 07-06-2023, 09:24 AM - Forum: KC868-A16S - Replies (13)

Please help, I installed tasmota and wants to return for esphome, how to return to the original software because now by home assistant can not add the device.  ( info with home assistans: "Unable to connect to the ESP. Make sure your YAML file contains the 'api:' line.)

Print this item

  MQTT SET syntax
Posted by: philippe - 07-05-2023, 04:13 PM - Forum: "KCS" v2 firmware system - Replies (3)

Hello,
What is the exact syntax to send Relay1 ON with MQTT. I am reading the document , I have my module sending State data, but cant find the right syntax to end  orders.
Thanks

Print this item

  kc868-a6 use 2 sensor inputs for analog input
Posted by: Siebje - 07-05-2023, 03:57 PM - Forum: KC868-A6 - Replies (1)

Hi, 
Is there any way to use the two sensor inputs:
[Image: a6-connections.jpg]
I mean the two IO1 and IO2 pins.

is there any way I can read/connect a 0-10 volt sensor to and read out the voltage/analogvalue?

thanks for any help in advance!

Print this item

  DAC1/2
Posted by: gilad - 07-05-2023, 08:56 AM - Forum: KC868-A6 - Replies (3)

trying to use DAC1/2 by following simple code:
can't see any changes on output nor on esp32(25/26)
dac_output_enable(DAC_CHANNEL_1);
dac_output_enable(DAC_CHANNEL_2);
dac_output_voltage(DAC_CHANNEL_1,0);
dac_output_voltage(DAC_CHANNEL_2,0);

i see no changes no matter the values, how come ?

what is the meaning for Strapping is it needed any human interact to activate it?



Attached Files Thumbnail(s)
   
Print this item

  [KC868-A16] Problem with PCF8574 I/O
Posted by: alessiovietri - 07-04-2023, 12:59 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Hello, i'm tryng to read inputs from the PCF8574 channels. This is my code:

Code:
//Apple Homekit for KC868-E16S/KC868-E16T
//first time to use: use serial port send "W" to config wifi ssid and password
//if you want to eraser all data, re-config, use serial port send "E"
//default qrcode is 46637726

#include "HomeSpan.h"
#include "PCF8574.h"

PCF8574 pcfInLeft(0x22);

void pcfInit(){
 
  pcfInLeft.pinMode(P0, INPUT);
  pcfInLeft.pinMode(P1, INPUT);
  pcfInLeft.pinMode(P2, INPUT);
  pcfInLeft.pinMode(P3, INPUT);
  pcfInLeft.pinMode(P4, INPUT);
  pcfInLeft.pinMode(P5, INPUT);
  pcfInLeft.pinMode(P6, INPUT);
  pcfInLeft.pinMode(P7, INPUT);
 
  if (pcfInLeft.begin()) {
    Serial.println("pcf OK");
  }
  else{
    Serial.println("pcf ERROR");
  }

}

void setup() {
 
  Serial.begin(115200);

  delay(1000);

  pcfInit();     

} // end of setup()

//////////////////////////////////////

void loop(){

  uint8_t in0 = pcfInLeft.digitalRead(P0);
  Serial.println("in0");
  Serial.println(in0);
  uint8_t in1 = pcfInLeft.digitalRead(P1);
  Serial.println("in1");
  Serial.println(in1);
  uint8_t in2 = pcfInLeft.digitalRead(P2);
  Serial.println("in2");
  Serial.println(in2);
  uint8_t in3 = pcfInLeft.digitalRead(P3);
  Serial.println("in3");
  Serial.println(in3);
  uint8_t in4 = pcfInLeft.digitalRead(P4);
  Serial.println("in4");
  Serial.println(in4);
  uint8_t in5 = pcfInLeft.digitalRead(P5);
  Serial.println("in5");
  Serial.println(in5);
  uint8_t in6 = pcfInLeft.digitalRead(P6);
  Serial.println("in6");
  Serial.println(in6);
  uint8_t in7 = pcfInLeft.digitalRead(P7);
  Serial.println("in7");
  Serial.println(in7);

  delay(1000);
 
} // end of loop()

But the method  pcfInLeft.begin() always returns false and the inputs are always read as off. What's wrong?

Thanks in advance

I forgot to mention that the KCS software knows when the inputs go on, so it's not a wiring-related problem

Print this item

  KC868-A8 Touch wall panel indication working reverse and temperature sensor
Posted by: vijjav - 07-03-2023, 02:51 PM - Forum: KC868-A8 - Replies (11)

Hi Xu Wei,

Good day, I need assitance for two things.

1. My DHT sensor not reading temperature and the ESPHome log messages output below. 

Code:
[20:03:03][C][dallas.sensor:075]: DallasComponent:
[20:03:03][C][dallas.sensor:076]:   Pin: GPIO14
[20:03:03][C][dallas.sensor:077]:   Update Interval: 60.0s
[20:03:03][W][dallas.sensor:080]:   Found no sensors!
[20:03:03][C][dallas.sensor:089]:   Device 'study_room_temperature_sensor'
[20:03:03][C][dallas.sensor:089]:     Device Class: 'temperature'
[20:03:03][C][dallas.sensor:089]:     State Class: 'measurement'
[20:03:03][C][dallas.sensor:089]:     Unit of Measurement: '°C'
[20:03:03][C][dallas.sensor:089]:     Accuracy Decimals: 1
[20:03:03][C][dallas.sensor:097]:     Address: 0x1c0000031edd2a28
[20:03:03][C][dallas.sensor:098]:     Resolution: 12

[20:03:55][E][dallas.sensor:112]: Requesting conversion failed
[20:03:55][D][sensor:094]: 'study_room_temperature_sensor': Sending state nan °C with 1 decimals of accuracy

I have tried connecting my DHT11 sensor to both S1 & S2 input terminals and getting the same error for reading the temperature.

2. I am trying to make the Touch Wall Panel Switch glow when turning on inputs, I know KC868-A8 not having a digital input, but i made a small adjustment and patched a wire from relay 1 GND output terminal in the PCB and connected to Switch D1. K1 is connected to input.

All looks good, but the LED is turning ON when the switch 1 is turned off and LED is Off when switch 1 is turned ON.

Connection Details:

A8 Board Input 1 --> Wall Switch K1
A8 Board Relay 1 Digital Input GND soldered from PCB --> Wall Switch D1
A8 Board S1 --> DTH11 Data terminal , VCC and Ground connected in the S1-S4 terminal block VCC & GND.

My ESPHome code block is a below, I tried several 'Inverted : true" at switch component and binalry_sensor component in yaml file, but I am missing some basic part.

Need your help to overcome my Two issues.

Code:
#
esphome:
  name: a8-study-room
  platform: ESP32
  board: esp32dev


# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "********************************************"

ota:
  password: "0fb1fa5d2db965e28cfb201d5afaf06c"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Kc868-A8 Fallback Hotspot"
    password: "************"

captive_portal:

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

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

# Individual outputs
switch:
  - platform: gpio
    name: "Study Room Fan"
    id: a8_study_room_fan
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: false

     
binary_sensor:
  - platform: gpio
    name: "a8_study_room_fan"
    on_press:
      then:
        - switch.toggle: a8_study_room_fan
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode:
        input: true

dallas:
  - pin: 14

sensor:
  - platform: dallas
    address: 0x1c0000031edd2a28
    name: "study_room_temperature_sensor"



Attached Files
.txt   KC868-A8-Touch_Wall_Switch.txt (Size: 1.36 KB / Downloads: 555)
Print this item

  KC868-1U connect with extend relay diagram
Posted by: admin - 06-30-2023, 12:54 AM - Forum: KC868-1U - No Replies

   

Print this item

  [KC868-A16] Can't turn status leds on through HomeKit
Posted by: alessiovietri - 06-29-2023, 04:12 PM - Forum: KC868-A series and Uair Smart Controller - Replies (6)

Hello everyone, we're trying to use a custom arduino script (with homespan) to control the board with apple homekit.
We managed to connect the board and homekit setting fake lightbulbs properly, but the problem is that the status leds of the outputs don't turn on.
We want to control every output (and related status leds) with homekit.
We've already checked the kc868-a16 schematic, but it doesnt' explain what pins to connect for the outputs
(we already tried pins 2 and 15, as your video for the A4 showed, and pins 1, 2, 3, 4, 5, but without results).
As your video explained (this video: https://www.youtube.com/watch?v=CkCJESr2n-U) we've uploaded the arduino script with homespan installed,
the connection works, but the pins don't correspond (for the kc868-a16)

Print this item