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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,982
» Latest member: kamermcw
» Forum threads: 2,428
» Forum posts: 12,557

Full Statistics

Online Users
There are currently 52 online users.
» 0 Member(s) | 31 Guest(s)
AhrefsBot, Bing, Bytespider, Crawl, Facebook, Google, PetalBot, Twitter, Yandex, bot, facebookexternalhit, owler

Latest Threads
Help whit update Cold CPU...
Forum: KC868-HxB series Smart Controller
Last Post: itzek
3 hours ago
» Replies: 0
» Views: 2
DI8
Forum: Development
Last Post: Vaughan2024
Yesterday, 10:24 PM
» Replies: 0
» Views: 10
Clarification on CT Clamp...
Forum: KC868-M16 / M1 / MB / M30
Last Post: ironbill
Yesterday, 09:27 PM
» Replies: 0
» Views: 10
AS ESPHome yaml for home ...
Forum: KinCony AS
Last Post: admin
Yesterday, 12:29 PM
» Replies: 4
» Views: 271
KCS firmware - MQTT LWT?
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 12:02 PM
» Replies: 34
» Views: 3,308
H32W Firmware
Forum: KC868-HxB series Smart Controller
Last Post: admin
Yesterday, 10:32 AM
» Replies: 5
» Views: 1,607
"KCS" v3.0.2 firmware for...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 12:00 AM
» Replies: 0
» Views: 33
What makes the ESP32 chip...
Forum: KC868-A series and Uair Smart Controller
Last Post: alice_amira
11-08-2024, 04:38 PM
» Replies: 0
» Views: 4
Sms relays control
Forum: KC868-A8S
Last Post: Michele
11-08-2024, 11:41 AM
» Replies: 6
» Views: 25
new home automation
Forum: DIY Project
Last Post: admin
11-08-2024, 10:33 AM
» Replies: 1
» Views: 15

  [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

  Request for Free Sample
Posted by: sadranyi@gmail.com - 06-25-2023, 05:16 PM - Forum: Apply for free sample product - No Replies

Hello, my name is Samuel Adranyi, 
I am an IoT enthusiast and content creator. I have been following your products for some time and would like to request some free samples.
This is my youtube channel where I do a lot of IoT stuff and also community engagement: https://www.youtube.com/live/9bGSxDGeS5c?feature=share
I am also a Microsoft Most Valuable Professional (MVP) in the Azure and IoT Category; you can find my profile herehttps://mvp.microsoft.com/en-us/PublicProfile/5003737
I want to create content around your products and educational projects for the IoT community here in Ghana.

I want to sample the KC868-A4 Bundle E. I welcome any other device or product you want me to test or create a project.
Thank you, and awaiting your kind response.  Smile

Print this item

  Using two PCF8574s for DI and DO
Posted by: mafckz - 06-25-2023, 12:23 PM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

How to use two PCF8574s for DI and DO both?

Next program works correctly when I use only one PCF8574 (adress: 0x22; I2C pins: 4,15) that controls DI inputs on the board:
1.png
   

But it doesn't work when I uncomment code in red frames, trying to add another PCF8574 (adress: 0x24; I2C pins: 4,15) that controls DO outputs on the board.
2.png
   



Correct code for using digital input PCF8574 without errors   "1.png"

Code:
// Library: PCF8574_Library by RENZO MISCHIANTI
// https://mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/


#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574i(0x22,4,15);
// PCF8574 pcf8574(0x24,4,15);

unsigned long timelapsed;

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

    pcf8574i.pinMode(0, INPUT);
    pcf8574i.pinMode(1, INPUT);

  // pcf8574.pinMode(0, OUTPUT);
  // pcf8574.pinMode(1, OUTPUT);
  // sleep(100);
  // pcf8574.digitalWrite(0, LOW);
  // pcf8574.digitalWrite(1, LOW);

  delay(2000);
    Serial.print("Init pcf8574i...");
    if (pcf8574i.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
  // Serial.print("Init pcf8574...");
  //   if (pcf8574.begin()){
  //       Serial.println("OK");
  //   }else{
  //       Serial.println("KO");
  //   }
}

void loop()
{
    uint8_t val1 = pcf8574i.digitalRead(0);
    uint8_t val2 = pcf8574i.digitalRead(1);

    if (val1==LOW) Serial.println("KEY1 PRESSED");
    if (val2==LOW) Serial.println("KEY2 PRESSED");

  // if (val1==LOW) {
  //   Serial.println("KEY1 PRESSED");
  //   // pcf8574.digitalWrite(0, HIGH);
  // }
    // if (val2==LOW) {
  //   Serial.println("KEY2 PRESSED");
  //   // pcf8574.digitalWrite(1, HIGH);
  // }


  delay(100);
  // Serial.println("--");
}

Print this item

Sad AM2120 Temperature Sensor
Posted by: mrteaiot - 06-24-2023, 06:02 AM - Forum: KC868-A8 - Replies (3)

I bought this AM2120 Temperature and Humidity Sensor and I am not able to get it to read input sensor on my ESPHOME.  I have bought AM2301 and it works fine with the same ESPHOME code as below:

  - platform: dht
    pin: 33    
    model: AM2302   ## New Sensor AM2120  NOT WORKING - NA reading
    temperature:
      name: "S4-Temp"
      accuracy_decimals: 1
    humidity:
      name: "S4-Humidity"
      accuracy_decimals: 1
    update_interval: 30s


Do I use the wrong code for my board?   

Thanks..

Print this item

  GSM CALL RELAY
Posted by: Anthonio - 06-24-2023, 12:29 AM - Forum: KC868-A2 - Replies (9)

Hello,

I am having difficulty for coding my script, I would like to make a GSM relay which activates the GPIO 15 relay upon the module receipt a call ! but I cannot do it can you help me?

I think my problem is from the command of call detection.

Thanks


Code:
#include <SoftwareSerial.h>

// Create software serial object to communicate with A6
SoftwareSerial mySerial(13, 34); // A6 Tx & Rx is connected to Arduino #3 & #2

int relayPin = 15; // GPIO 15 connected to the relay

void setup()
{
  // Begin serial communication with Arduino and Arduino IDE (Serial Monitor)
  Serial.begin(115200);
 
  // Begin serial communication with Arduino and A6
  mySerial.begin(115200);

  Serial.println("Initializing...");

  pinMode(relayPin, OUTPUT); // Set the relay pin as an output
  digitalWrite(relayPin, LOW); // Initialize the relay as OFF
}

void loop()
{
  updateSerial();
  checkCall();
}

void updateSerial()
{
  delay(500);
  while (Serial.available())
  {
    mySerial.write(Serial.read()); // Forward what Serial received to Software Serial Port
  }
  while(mySerial.available())
  {
    Serial.write(mySerial.read()); // Forward what Software Serial received to Serial Port
  }
}

void checkCall()
{
  if (mySerial.available())
  {
    String response = mySerial.readString();
    if (response.indexOf("+CLCC: 1,1,2,4,0") != -1) // Check if "+CLCC: 1,1,2,4,0" is present in the response
    {
      activateRelay();
    }
  }
}

void activateRelay()
{
  digitalWrite(relayPin, HIGH); // Turn ON the relay
  delay(5000); // Keep the relay ON for 5 seconds
  digitalWrite(relayPin, LOW); // Turn OFF the relay
}

Print this item

  Which GND to use for sensors ?
Posted by: primeroz - 06-23-2023, 01:58 PM - Forum: KC868-A2 - Replies (1)

Hi, the only GND i see on the A2 is the one also used for POWER IN


I want to connect a PIR , i can take the `3v3` from the board but i am not sure which GND to use . Should i use the same as the `INPUT power` ?


example diagram of what i want to do



Attached Files Thumbnail(s)
   
Print this item