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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,047
» Latest member: fun79comsse
» Forum threads: 4,252
» Forum posts: 21,057

Full Statistics

Online Users
There are currently 660 online users.
» 0 Member(s) | 644 Guest(s)
Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, bot

Latest Threads
getting the A8A inputs to...
Forum: Development
Last Post: admin
11 hours ago
» Replies: 3
» Views: 89
extend KC868-A16v3
Forum: KC868-A series and Uair Smart Controller
Last Post: bitet96717
Yesterday, 06:41 AM
» Replies: 2
» Views: 170
Las Firmware ?
Forum: KC868-A16
Last Post: admin
09-22-2026, 11:15 PM
» Replies: 8
» Views: 875
kc868-a6 analog input
Forum: KC868-A6
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 47
A32 pro tuya
Forum: "KCS" v3 firmware
Last Post: admin
09-21-2026, 11:38 PM
» Replies: 1
» Views: 32
Disconnect loop with Home...
Forum: F16
Last Post: admin
09-21-2026, 01:16 AM
» Replies: 3
» Views: 54
KC-868-A1 linked Home Ass...
Forum: News
Last Post: admin
09-21-2026, 01:16 AM
» Replies: 5
» Views: 1,391
config modbus sensor in K...
Forum: "KCS" v3 firmware
Last Post: admin
09-19-2026, 11:52 AM
» Replies: 0
» Views: 64
remember relay state
Forum: KC868-E16T
Last Post: admin
09-19-2026, 01:42 AM
» Replies: 3
» Views: 134
Ceiling fan control not w...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
09-18-2026, 07:15 AM
» Replies: 11
» Views: 443

  KC868-A4S ESPHome demo config for home assistant
Posted by: admin - 03-01-2023, 04:54 AM - Forum: KC868-A4S - No Replies

   

esphome:
  name: a4s
  platform: ESP32
  board: esp32dev
 
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 16
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0



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

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

# Individual outputs
switch:
  - platform: gpio
    name: "a4s-light1"
    id: light1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a4s-light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a4s-light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a4s-light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true

     
binary_sensor:
  - platform: gpio
    name: "a4s-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a4s-input10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: INPUT
      inverted: true     

  - platform: gpio
    name: "a4s-input11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: INPUT
      inverted: true   

  - platform: gpio
    name: "a4s-input12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: INPUT
      inverted: true   

pca9685:
    id: 'pca9685_hub'
    frequency: 500

output:
  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM0"
    channel: 0

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM1"
    channel: 1

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM2"
    channel: 2

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM3"
    channel: 3

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM4"
    channel: 4

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM5"
    channel: 5

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM6"
    channel: 6

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM7"
    channel: 7

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM8"
    channel: 8

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM9"
    channel: 9

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM10"
    channel: 10

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM11"
    channel: 11

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM12"
    channel: 12

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM13"
    channel: 13

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM14"
    channel: 14

  - platform: pca9685
    pca9685_id: 'pca9685_hub'
    id: "PWM15"
    channel: 15


light:
  - platform: monochromatic
    name: "a4s-Color-LED-1"
    output: PWM0
  - platform: monochromatic
    name: "a4s-Color-LED-2"
    output: PWM1
  - platform: monochromatic
    name: "a4s-Color-LED-3"
    output: PWM2
  - platform: monochromatic
    name: "a4s-Color-LED-4"
    output: PWM3
  - platform: monochromatic
    name: "a4s-Color-LED-5"
    output: PWM4
  - platform: monochromatic
    name: "a4s-Color-LED-6"
    output: PWM5
  - platform: monochromatic
    name: "a4s-Color-LED-7"
    output: PWM6
  - platform: monochromatic
    name: "a4s-Color-LED-8"
    output: PWM7
  - platform: monochromatic
    name: "a4s-Color-LED-9"
    output: PWM8
  - platform: monochromatic
    name: "a4s-Color-LED-10"
    output: PWM9
  - platform: monochromatic
    name: "a4s-Color-LED-11"
    output: PWM10
  - platform: monochromatic
    name: "a4s-Color-LED-12"
    output: PWM11
  - platform: monochromatic
    name: "a4s-Color-LED-13"
    output: PWM12
  - platform: monochromatic
    name: "a4s-Color-LED-14"
    output: PWM13
  - platform: monochromatic
    name: "a4s-Color-LED-15"
    output: PWM14
  - platform: monochromatic
    name: "a4s-Color-LED-16"
    output: PWM15

  - platform: rgbw
    name: "a4s-rgbw"
    red: PWM1
    green: PWM2
    blue: PWM3
    white: PWM4



# Enable logging
logger:

# Enable Home Assistant API
api:


.txt   KC868-A4S-HA-config.txt (Size: 5.8 KB / Downloads: 874)

Print this item

  KC868-A4S ESP32 I/O pin define
Posted by: admin - 03-01-2023, 04:52 AM - Forum: KC868-A4S - Replies (12)

#define ANALOG_A1  36
#define ANALOG_A2  39
#define ANALOG_A3  34
#define ANALOG_A4  35

IIC SDA:4
IIC SCL:16

Relay_IIC_address 0x24
P0--P3: for relay1-relay4
P4--P7: for DI9--DI12

Input_IIC_address 0x22  for DI1-DI8

PCA9685 IIC address: 0x00

DS18B20/DHT11/DHT21/LED strip -1: 5
DS18B20/DHT11/DHT21/LED strip -2: 14


Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT


RS485:
RXD:GPIO33
TXD:GPIO32

GSM:
RXD:GPIO13
TXD:GPIO15

Print this item

  8 channel bypass switch board - KC868-S8
Posted by: admin - 03-01-2023, 03:56 AM - Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file - No Replies

here is diagram:

.pdf   Automation Bypass_S8.pdf (Size: 17.6 MB / Downloads: 1292)

Print this item

  KC868 A8 - Help In Program
Posted by: mfjunior96 - 02-28-2023, 01:24 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Goodnight,

I'm having trouble using the codes to use the PCF8574 of the KC868 A8, using the same code for input and output, I noticed that it already comes with the standard Digital Input 1 > Turn on > Digital Output 1, does anyone have this code so I can work above him?

Thank you very much in advance

Print this item

  lease help me choose the materials required for the building
Posted by: engmohades - 02-27-2023, 08:09 PM - Forum: DIY Project - Replies (3)

Please help me choose the materials required for the building consisting of two floors


first floor
1- Lighting circuits 51
2- ventilation circuits 4
3- Air conditioner circuit 10
4- The number of motion sensors is 10

second floor
1- Lighting circuits 54
2- The number of curtains is 14 with 28 circles
3 - ventilation circuits 3
4 - Air conditioner circuit 10
5- Heater circuits 3
6- The number of motion sensors is 10

I will use HOMEASSISTANT and want use Switch contains a feedback lamp

Print this item

  Amazon
Posted by: Philadam - 02-26-2023, 06:34 AM - Forum: Suggestions and feedback on KinCony's products - Replies (4)

What happened to the Amazon online store? Everything says unavailable.

Print this item

  Full automation of boiler room - what component to use
Posted by: mmetal - 02-25-2023, 10:22 PM - Forum: DIY Project - Replies (1)

Hello, this year i was finished installation of my new boiler room with 3 boilers, 16 pumps, 16 electric valves, one pellet burner... Now i need to make automation of all components. I was test some process with sonoff TH16 and 4CH pro devices and home assistant, only to see what exactly need and can to controll, and the main problem is that i need a lot of temperature sensors, pressure sensors, ultrasonic sensors, relays, contactors etc.

The best solution is to use home assistant, but if you have some suggestions, i am open

In text bellow i will try to explain what i plan to do, and it would be great that you suggest me components for my automation

  1. Measure temperature from -25 to 100 C on 42 places, and to have a possibility to controll devices (relays) by that temperature
  2. Measure water pressure in whole heating system on 10-12 places, and to controll electric valves for water and air accordingly measured pressure
  3. Measure water level in vertical expansion tank of 1200 lit, and controll electric valves for water.
  4. Measure level of pellet in pellet tank of 1800 kg (2000 mm height)
  5. Connect one smoke and fire sensor to controll fan in case of smoke
  6. Relay output on/off or no/nc for control pumps, burner, electric actuators, lights. Relay for pumps, burner, electric actuators will be controled by measured temperature. All relay outputs will controll electric contactor with 24vac coils.

I hope that you will understand what i need.

Please suggest me what componnent i should use.

If you need additional information, please contact me

Thanks in advance

Print this item

  How can I add ZigBee gateway to the homeassant ?
Posted by: engmohades - 02-25-2023, 12:54 PM - Forum: Home automation training courses - Replies (3)

How can I add ZigBee gateway to the homeassant ? please



Attached Files Thumbnail(s)
   
Print this item

  how learn KC868-AG ir remote for air conditioners of an unknown brand
Posted by: engmohades - 02-25-2023, 12:47 PM - Forum: KC868-AG / AG Pro / AG8 / Z1 - Replies (8)

How can I learn the IR remote for air conditioners of an unknown brand to use the Homassetant
Can you make a video tutorial ? please



Attached Files Thumbnail(s)
   
Print this item

  kc868-h32bs
Posted by: Philadam - 02-25-2023, 05:54 AM - Forum: KC868-HxB series Smart Controller - Replies (7)

I think I might have already asked this, but will the H32BS OR the kc868-server work with KC868-A16?

Print this item