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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,062
» Latest member: markpaul9020
» Forum threads: 4,253
» Forum posts: 21,069

Full Statistics

Online Users
There are currently 140 online users.
» 0 Member(s) | 125 Guest(s)
Amazonbot, Baidu, Bytespider, Crawl, Google, PetalBot, Yandex, bot

Latest Threads
N60/N30/N20/N10 PC softwa...
Forum: N10
Last Post: admin
7 hours ago
» Replies: 11
» Views: 1,571
Best way to read from N30
Forum: N30
Last Post: admin
Today, 12:20 AM
» Replies: 3
» Views: 25
getting the A8A inputs to...
Forum: Development
Last Post: admin
09-24-2026, 11:07 PM
» Replies: 3
» Views: 120
extend KC868-A16v3
Forum: KC868-A series and Uair Smart Controller
Last Post: bitet96717
09-24-2026, 06:41 AM
» Replies: 2
» Views: 189
Las Firmware ?
Forum: KC868-A16
Last Post: admin
09-22-2026, 11:15 PM
» Replies: 8
» Views: 904
kc868-a6 analog input
Forum: KC868-A6
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 95
A32 pro tuya
Forum: "KCS" v3 firmware
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 45
Disconnect loop with Home...
Forum: F16
Last Post: admin
09-21-2026, 01:16 AM
» Replies: 3
» Views: 86
KC-868-A1 linked Home Ass...
Forum: News
Last Post: admin
09-21-2026, 01:16 AM
» Replies: 5
» Views: 1,415
config modbus sensor in K...
Forum: "KCS" v3 firmware
Last Post: admin
09-19-2026, 11:52 AM
» Replies: 0
» Views: 76

  how to enable the USB ports on Raspberry Pi CM4
Posted by: admin - 06-13-2022, 06:39 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (22)

To enable the USB 2.0 ports on the Compute Module 4, you need to edit the boot config file (/boot/config.txt) and add:

dtoverlay=dwc2,dr_mode=host
Then reboot the Pi. Now you should be able to use the built-in USB 2.0 ports!

Print this item

  Lesson31 - control modbus relay by Node-Red
Posted by: admin - 06-10-2022, 05:12 AM - Forum: Home automation training courses - Replies (2)

Print this item

  Read Serial (RS485) Data
Posted by: v1rtus - 06-09-2022, 09:40 PM - Forum: KC868-Server Raspberry Pi4 local server - Replies (26)

Hello,

I have no success to read data from RS485 port (orange one). I use NODE-RED for building flows.

To make sure that it is not issue in any configuration I used USB->RS485 adapter and I had success to read data.

There are two serial available when execute

Code:
dmesg | grep tty

  1. /dev/ttyS0
  2. /dev/ttyAMA0

I assume that /dev/ttyAMA0 is the right one to use but when I try to read data the response is "Modbus Failure On State sending Get More About It By Logging"

Could someone help me with that? I can read data if I use USB->RS485 adapter but not trought the built-in RS-485 port (orange one).

Print this item

  Lesson30 - how to install Node-Red on home assistant
Posted by: admin - 06-09-2022, 04:42 AM - Forum: Home automation training courses - No Replies

Print this item

  Lesson29 - how to config manual push button for switches and LED strip
Posted by: admin - 06-08-2022, 10:10 AM - Forum: Home automation training courses - No Replies

1. get the MQTT feedback message from every puch button.

2. create "automation" for buttons in home assistant.

Print this item

  KC-868-AG ESP32 IR/RF
Posted by: ahmedk4444@yahoo.com - 06-07-2022, 07:02 PM - Forum: DIY Project - Replies (3)

Dear kincony Custmer support,
I bought 4 pieces of this module to connect them to varies function
1. External for learn the remote control of garage gate motor to open close by mobile app the same application for all.
2. Another to control reception 3 Air conditions remote control + home appliances of living room:-
DVD
VIDEO
OUTDOOR AMPLIFIER
PROJECTOR
HOME THEATER
SATELLITE RECIEVER
BLURAY
SMART TV
APPLE TV 

All in the same room and all work with remote control
Bearing in mind the 3 AC split AC are the same remote and code for all 3 unit and i need to control each separate from mobile app.
3. Master bedroom AC, TV, Satelite reciever, shutter motor using Wifi SONOFF
4. Multi purpose room Bluray 4 K, smart TV, XBox, home theater reciever.
Please send me clear procedures and you tube videos for installation and vsries programing related toeach function above..
Thanks in advance
Ahmed

Print this item

  Enable serial port on Raspberry Pi CM4
Posted by: admin - 06-07-2022, 06:58 AM - Forum: KC868-Server Raspberry Pi4 local server - No Replies

I also noticed sometimes UART is disabled in kernel. The enable it you need to check in /boot/config.txt the line enable_uart

If it's set to 0 like follow

enable_uart=0
You need to change to 1 as follow

enable_uart=1
And reboot of course!

sudo raspi-config
   
make sure disable Linux UART console

Print this item

  KC868-Server 16 channel digital input use for push button - home asssitant configurat
Posted by: admin - 06-07-2022, 02:00 AM - Forum: KC868-Server Raspberry Pi4 local server - No Replies

- platform: mqtt
    name: 'sw1'
    unique_id: sw-1
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW1.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw2'
    unique_id: sw-2
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW2.on }}'
    payload_on: 1
    payload_off: 0
   
  - platform: mqtt
    name: 'sw3'
    unique_id: sw-3
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW3.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw4'
    unique_id: sw-4
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW4.on }}'
    payload_on: 1
    payload_off: 0   
   
  - platform: mqtt
    name: 'sw5'
    unique_id: sw-5
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW5.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw6'
    unique_id: sw-6
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW6.on }}'
    payload_on: 1
    payload_off: 0
   
  - platform: mqtt
    name: 'sw7'
    unique_id: sw-7
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW7.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw8'
    unique_id: sw-8
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW8.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw9'
    unique_id: sw-9
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW9.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw10'
    unique_id: sw-10
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW10.on }}'
    payload_on: 1
    payload_off: 0
   
  - platform: mqtt
    name: 'sw11'
    unique_id: sw-11
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW11.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw12'
    unique_id: sw-12
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW12.on }}'
    payload_on: 1
    payload_off: 0   
   
  - platform: mqtt
    name: 'sw13'
    unique_id: sw-13
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW13.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw14'
    unique_id: sw-14
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW14.on }}'
    payload_on: 1
    payload_off: 0
   
  - platform: mqtt
    name: 'sw15'
    unique_id: sw-15
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW15.on }}'
    payload_on: 1
    payload_off: 0   

  - platform: mqtt
    name: 'sw16'
    unique_id: sw-16
    state_topic: 'server/8ae082ec66f37db231cf2b8f/state'
    value_template: '{{ value_json.SW16.on }}'
    payload_on: 1
    payload_off: 0


.txt   KC868-Server-home-assistant-config-16-channel-DI-mqtt.txt (Size: 3.28 KB / Downloads: 706)

Print this item

  PCF8574 - begin() throws error
Posted by: staehla - 06-06-2022, 08:33 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Hi all,

i am pretty new to ESP32 and programming with Arduion IDE. I have purchased a KC868-A8-V1.4 board and now i wanted to do the Realy programming according to the instruction from your site KC868-A8 programming
Correct type of board is selected NodeMCU-32S and the pins in pins_arduino.h are changed to 4 + 5, PCF8574 library V2.3.1 from Renzo Mischianti is installed.
The problem i am facing is that the PCF8574 throws all the time "error" instead of "OK" and therefore the relays are not working.

In order to test whether the board has a hardware problem, I have also tried once the TASMATO accoring to the video Tasmato KC868-A8, this has worked without any problems. So the hardware is ok.

Do you know what i am doing wrong that the PCF8574 throws the error?

Any help would be appreaciated

Used code:

PHP Code:
/*
Kincony KC868-A8
Relays example
*/
 
#include "Arduino.h"
#include "PCF8574.h"
 
#define I2C_RELAYS_ADR 0x24
PCF8574 pcf(I2C_RELAYS_ADR);

void setup() {
  Serial.begin(115200);
  Serial.println(F("Start Kincony KC868-A8 Relays example…"));
  pcf.pinMode(P0, OUTPUT);
  pcf.pinMode(P1, OUTPUT);
  pcf.pinMode(P2, OUTPUT);
  pcf.pinMode(P3, OUTPUT);
  pcf.pinMode(P4, OUTPUT);
  pcf.pinMode(P5, OUTPUT);
  pcf.pinMode(P6, OUTPUT);
  pcf.pinMode(P7, OUTPUT);
  Serial.print("Init PCF8574… ");
  if (pcf.begin()){
    Serial.println(F("Ok"));
  }else {
    Serial.println(F("Error"));}
}

void loop() {
  pcf.digitalWrite(P0, HIGH);
  Serial.print(F("Relay #")); Serial.print(P0); Serial.println(F(" ON"));
  delay(10000);
  pcf.digitalWrite(P0, LOW);
  Serial.print(F("Relay #")); Serial.print(P0); Serial.println(F(" OFF"));
  delay(10000);
} 



Attached Files Thumbnail(s)
   
Print this item

  MANAGE HEX STRING COLB
Posted by: Dm81 - 06-04-2022, 01:10 PM - Forum: KC868-HxB series Smart Controller - Replies (4)

Hello
I have also some problem to receive complete string (I'm ususing ararat synapse library in lazarus)
In your debug software works all ok and I check also with other program and all works correctly, I would know if the received string could contain some special Char because if I send this string   "5E0123C001000000000000000000000000000000000000000000000000000000000000000000000000000000FF" (to read digital input for example) I receiv only this
string   "5E0123C011000000000000000000000000000000000000000000000000000000000000000000000000000000FF"
while the correct (and complete) string should be this "5E0123C011000000000000000000000000000000000000000000000000000000000000000000000000000000FF00000000000000000101010001010101
I don't understand why I don't receive the last part of string (00000000000000000101010001010101)

thank you in advance

Print this item