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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,375
» Latest member: tziku
» Forum threads: 2,575
» Forum posts: 13,319

Full Statistics

Online Users
There are currently 56 online users.
» 0 Member(s) | 37 Guest(s)
Bing, Bytespider, Crawl, Go-http-client, Google, PetalBot, Semrush, Yandex, bot

Latest Threads
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: Poczwara13
1 hour ago
» Replies: 7
» Views: 64
change wake up name
Forum: KinCony AS
Last Post: gal
1 hour ago
» Replies: 14
» Views: 109
H32L - home assistant
Forum: KC868-HxB series Smart Controller
Last Post: athxp
1 hour ago
» Replies: 0
» Views: 2
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
2 hours ago
» Replies: 14
» Views: 473
KC868-A2 configure yaml f...
Forum: KC868-A2
Last Post: elemarek
Today, 10:12 AM
» Replies: 15
» Views: 7,687
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Today, 09:03 AM
» Replies: 12
» Views: 137
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: admin
Yesterday, 11:15 PM
» Replies: 18
» Views: 191
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: admin
Yesterday, 11:12 PM
» Replies: 8
» Views: 2,273
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 04:32 AM
» Replies: 32
» Views: 400
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
12-17-2024, 11:43 PM
» Replies: 10
» Views: 73

  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: 178)
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

  KC868-A32 24VDC input voltage acceptable to Optocopplers?
Posted by: warlord666 - 06-28-2023, 07:38 PM - Forum: KC868-A32/A32 Pro - Replies (7)

Hi,
im currently building a house with automation. While searching I stumbled upen your system wich I really do appreciate cause it looks like exactly what I was looking for. I wanted to start with the A32 for first tests. Question is: in germany we're used to use 24VDC for automation. For the outputs it's not a problem as i will use own couple relais.
Question is:
Are the inputs tolerant to 24VDC? Or can they be if I use additional resistors? Datasheet of the EL357 says 80V is fine but I'm not sure if it is FET inputs and want to be sure before ordering.
Thank you and keep on your good work! Really like!

Print this item

  kc868-a6 Bluetooth issue
Posted by: AndyW - 06-28-2023, 03:39 PM - Forum: KC868-A6 - Replies (5)

I have a usecase for the kc868-a6 that requires the bluetooth to work with esphome. As soon as I enable anything bluetooth related I get fatal errors and the wifi never connects to the network.
This is the code I am trying to use that appears to corrupts the esp32.

substitutions:
name: test
mac_address: C8:47:8C:E1:E2:E2

esp32_ble_tracker:

ble_client:
- mac_address: ${mac_address}
id: client0

switch:
- platform: ble_client
ble_client_id: client0
name: "enable bluetooth connection"

Any thoughts on why the esp32  does not like the bluetooth settings? After removing the bluetooth settings and reflashing I am able to connect to the controller again.
Thanks in advance.
Andy

Print this item

  K868-E16S use digital input and I2C in the same time
Posted by: Jtefan - 06-28-2023, 01:59 PM - Forum: KC868-E16S/E16P - Replies (8)

I've defined the digital inputs and switches as in the example and also added a DS18B20 temp sensor to the I2C. But as soon as I add in yaml the Dallas configuration, the update_interval toggles the switches on and off at the interval set in the update_interval.
I saw that the I2C port is the same as the Dallas sensor but I don't know how I can connect them in a different way.

esphome:
  name: kincony-kc868-e16s
  friendly_name: Kincony KC868-E16S
  platform: ESP32
  board: esp32dev

logger:

captive_portal:

i2c:
  sda: 16
  scl: 15
  scan: true
  id: bus_a

pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x21

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

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

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x24

switch:
  - platform: gpio
    name: "e16s-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
    id: output14

  - platform: gpio
    name: "e16s-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
    id: output15

  - platform: gpio
    name: "e16s-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
    id: output16

binary_sensor:
  - platform: gpio
    name: "DI1 - Entrance Left B1"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
    internal: true
    on_press:
      then:
      - switch.toggle: output14

dallas:
  - pin: 16
    update_interval: 30s

sensor:
  - platform: dallas
    address: 0x453c430457d4c928
    name: "Livingroom Temperature"
    id: livingroom_temperature
  - platform: dallas
    address: 0x9d3c450457bfc728
    name: "Bedroom Temperature"
    id: bedroom_temperature

Print this item

  KC868 4A control water from phone
Posted by: Aleksis - 06-26-2023, 07:50 PM - Forum: KC868-A4 - Replies (7)

Good afternoon.
In my project, a water level sensor and a temperature sensor are connected to the KC868 A4 controller.
Please tell me which program is better to monitor the readings from the sensor. I tried to connect to Homekit, there were no problems with the temperature sensor, but I didn’t understand how to make the status bar for filling the tank with water.

Maybe tell me how best to implement control from the phone for these sensors through the 4
A4 controller?

Link to liquid level sensor:
https://sl.aliexpress.ru/p?key=bfXBZR9

And DS18B20

Print this item