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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,906
» Latest member: naasongs
» Forum threads: 3,898
» Forum posts: 19,881

Full Statistics

Online Users
There are currently 37 online users.
» 0 Member(s) | 19 Guest(s)
AhrefsBot, Amazonbot, PetalBot, Semrush, Sogou web, bot

Latest Threads
n30 not showing kwh consu...
Forum: N30
Last Post: kiloptero
2 hours ago
» Replies: 0
» Views: 2
Current and Power not add...
Forum: N60
Last Post: admin
11 hours ago
» Replies: 3
» Views: 11
"KCS" v3.24.3 firmware BI...
Forum: "KCS" v3 firmware
Last Post: admin
Today, 03:02 AM
» Replies: 0
» Views: 25
KC868-16A crashing in inf...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Today, 01:51 AM
» Replies: 1
» Views: 7
A24 configure yaml for ES...
Forum: KinCony A24
Last Post: admin
Yesterday, 12:12 AM
» Replies: 25
» Views: 7,198
KC868-A4 with Tuya app
Forum: "KCS" v2 firmware system
Last Post: admin
Yesterday, 12:04 AM
» Replies: 1
» Views: 11
N60 N30 N20 N10 ARM CPU f...
Forum: N30
Last Post: admin
Yesterday, 12:02 AM
» Replies: 10
» Views: 197
Connecting Nextion NX3224...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 12:00 AM
» Replies: 3
» Views: 82
T16M
Forum: News
Last Post: admin
04-11-2026, 11:58 PM
» Replies: 1
» Views: 11
T16M en panne
Forum: News
Last Post: lulu01
04-11-2026, 04:29 PM
» Replies: 4
» Views: 26

  KinCony controller to Mushroom farm
Posted by: intelligsystems - 02-21-2025, 11:30 PM - Forum: DIY Project - Replies (10)

Hi everyone,
I'm new to this forum and new to ESP/Home Assistant.
I have a mushroom cultivation tent where I use a humidifier, blower motors, LED lights, sensors, and an electric heater.
Currently, I control the climate using WiFi-connected sensors, but I would like to fully automate all devices and manage them using Home Assistant (I already have a server and WiFi infrastructure set up).
I'm unsure which Kincony controller would be the best choice, so I’d appreciate your advice. I've attached a diagram showing the devices I want to connect to the controller.

List of devices and required functions in Home Assistant:

  • Electric Heater (PTC 1.5 kW): Turn on/off based on the temperature sensor.
  • Humidity, Temperature, and CO2 Sensor: Read and monitor sensor data.
  • UV Lamp (in humidifier water container): Activate for short intervals (e.g., every 10 seconds).
  • Blower Motor: Adjust fan speed based on CO2 sensor readings.
  • LED Lights: Run for 12 hours daily with adjustable intensity.
  • Humidifier: Turn on/off based on the humidity sensor.

Thanks in advance for your help!
Krzysztof



Attached Files Thumbnail(s)
   
Print this item

  Free GPIO pins
Posted by: dionamket - 02-21-2025, 10:37 PM - Forum: KC868-A16 - Replies (1)

Just received the board, no problem setting up!
Is it possible to add a Neopixel light strip for a self made indicator of the input pins status? (green/red for on/off). That would require just one free GPIO. From what I understand there are no free GPIO pins on V2 of the board, just the new V3.
Are the 3 HT pin inputs only for temperature/humidity?
Thanks for your time!

Print this item

  COM problem on A32 Pro
Posted by: alamiran - 02-21-2025, 06:41 PM - Forum: KC868-A32/A32 Pro - Replies (1)

Hello everyone,

I recently installed 2 cards module A32 Pro into my electric cabinet, and they come as usual without firmware, when I turn on the card the dispay shows A32 Pro

I tried to connect via USBC-USBC cable to my laptop, but the port is not reconginzed on my windows device manager, and since the port is not physical viable, I won't be able to load the firmware app to load the software.

I turned off the card, press on the DL button, and Turn on the card and then released the DL botton in order to boot the card in bootloader mode, Yet this couldn't help in finding the COM port on my device.

My Computer is fine, and so is the Cable, i used same cable and same computer on F16 card, and i's worked smoothly without any issues.

Please advice I need help.

Thank you,
Rani

Print this item

  Operation log
Posted by: Yosemite - 02-21-2025, 09:17 AM - Forum: "KCS" v2 firmware system - Replies (4)

Hi,

For the next revision of KCS firmware V2, would Kincony consider adding an operation log of input and output states? This would be very helpful for troubleshooting.

Print this item

  Alarm system wiring
Posted by: rubenroucourt - 02-21-2025, 07:35 AM - Forum: KC868-A series and Uair Smart Controller - Replies (6)

Can I use the Bosch isc-bpr2-wp12 motion sensor with a NC contact with the KC868-A16 board? 


I guess I need to give it the 12V input on +/- and wire the NC contact to GND and a dry contact input?



Attached Files Thumbnail(s)
   
Print this item

  access control panel input number control OUTPUT by wiegand yaml for ESPhome
Posted by: admin - 02-21-2025, 05:47 AM - Forum: KC868-AIO - No Replies

here is demo config file for access control panel. control OUTPUT1 or OUTPUT3 by INPUT NUMBER "101#" and "102#" by touch panel.
   
   
   

Code:
esphome:
  name: aio

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:


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

i2c:
   - id: bus_a
     sda: 4
     scl: 16
     scan: true

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_out_2'  # for output channel 17-32
    i2c_id: bus_a
    address: 0x25
    pcf8575: true

  - id: 'pcf8574_hub_out_in_3'  # for output channel 33-38  + (input 49-58)
    i2c_id: bus_a
    address: 0x26
    pcf8575: true


  - id: 'pcf8574_hub_in_1'  # for input channel 1-16
    i2c_id: bus_a
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_in_2'  # for input channel 17-32
    i2c_id: bus_a
    address: 0x22
    pcf8575: true

  - id: 'pcf8574_hub_in_3'  # for input channel 33-48
    i2c_id: bus_a
    address: 0x23
    pcf8575: true



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

  - platform: gpio
    name: "aio--light2"
    id: aio_light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "aio--light9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light13"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light14"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light15"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light16"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: true
     
     
  - platform: gpio
    name: "aio--light17"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light18"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light19"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light20"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light21"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light22"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light23"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light24"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light25"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light26"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light27"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light28"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 11
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "aio--light29"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 12
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light30"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 13
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light31"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 14
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--light32"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 15
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "aio--led-D7"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 12
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "aio--led-D8"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 13
      mode: OUTPUT
      inverted: true


cd74hc4067:
  - id: cd74hc4067_1
    pin_s0:
      pcf8574: pcf8574_hub_out_in_3
      number: 8
      mode: OUTPUT
      inverted: true
    pin_s1:
      pcf8574: pcf8574_hub_out_in_3
      number: 9
      mode: OUTPUT
      inverted: true
    pin_s2:
      pcf8574: pcf8574_hub_out_in_3
      number: 10
      mode: OUTPUT
      inverted: true
    pin_s3:
      pcf8574: pcf8574_hub_out_in_3
      number: 11
      mode: OUTPUT
      inverted: true




# Example configuration entry
sensor:

  - platform: adc
    pin: 36
    id: adc36
    update_interval: never
    attenuation: 11db

  - platform: adc
    name: "aio--AI-17"
    pin: 39
    id: adc39
    update_interval: 50s
    attenuation: 11db

  - platform: adc
    pin: 34
    name: "aio--AI-18"
    id: adc34
    update_interval: 50s
    attenuation: 11db

  - platform: adc
    pin: 35
    name: "aio--AI-19"
    id: adc35
    update_interval: 50s
    attenuation: 11db

  - platform: cd74hc4067
    name: "aio--AI-16"
    id: ai1
    number: 0
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-15"
    id: ai2
    number: 1
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-14"
    id: ai3
    number: 2
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-13"
    id: ai4
    number: 3
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-12"
    id: ai5
    number: 4
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-11"
    id: ai6
    number: 5
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-10"
    id: ai7
    number: 6
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-9"
    id: ai8
    number: 7
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-8"
    id: ai9
    number: 8
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-7"
    id: ai10
    number: 9
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-6"
    id: ai11
    number: 10
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-5"
    id: ai12
    number: 11
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-4"
    id: ai13
    number: 12
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-3"
    id: ai14
    number: 13
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-2"
    id: ai15
    number: 14
    sensor: adc36
    update_interval: 50s

  - platform: cd74hc4067
    name: "aio--AI-1"
    id: ai16
    number: 15
    sensor: adc36
    update_interval: 50s



# Individual inputs 
binary_sensor:
  - platform: gpio
    name: "aio--input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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


  - platform: gpio
    name: "aio--input9"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
     
     
  - platform: gpio
    name: "aio--input17"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input18"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input19"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input20"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input21"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input22"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input23"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input24"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input25"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input26"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input27"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input28"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input29"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input30"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input31"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input32"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "aio--input33"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input34"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input35"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input36"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input37"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input38"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input39"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input40"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input41"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input42"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input43"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input44"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input45"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input46"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input47"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input48"
    pin:
      pcf8574: pcf8574_hub_in_3
      number: 15
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "aio--input49"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input50"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input51"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input52"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input53"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input54"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input55"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input56"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 7
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "aio--input57-s3"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "aio--input58-s4"
    pin:
      pcf8574: pcf8574_hub_out_in_3
      number: 15
      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: "aio-Color-LED-1"
    output: PWM0
  - platform: monochromatic
    name: "aio-Color-LED-2"
    output: PWM1
  - platform: monochromatic
    name: "aio-Color-LED-3"
    output: PWM2
  - platform: monochromatic
    name: "aio-Color-LED-4"
    output: PWM3
  - platform: monochromatic
    name: "aio-Color-LED-5"
    output: PWM4
  - platform: monochromatic
    name: "aio-Color-LED-6"
    output: PWM5
  - platform: monochromatic
    name: "aio-Color-LED-7"
    output: PWM6
  - platform: monochromatic
    name: "aio-Color-LED-8"
    output: PWM7
  - platform: monochromatic
    name: "aio-Color-LED-9"
    output: PWM8
  - platform: monochromatic
    name: "aio-Color-LED-10"
    output: PWM9
  - platform: monochromatic
    name: "aio-Color-LED-11"
    output: PWM10
  - platform: monochromatic
    name: "aio-Color-LED-12"
    output: PWM11
  - platform: monochromatic
    name: "aio-Color-LED-13"
    output: PWM12
  - platform: monochromatic
    name: "aio-Color-LED-14"
    output: PWM13
  - platform: monochromatic
    name: "aio-Color-LED-15"
    output: PWM14
  - platform: monochromatic
    name: "aio-Color-LED-16"
    output: PWM15

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

# Example configuration entry
wiegand:
  - id: mykeypad
    d0: GPIO14
    d1: GPIO5
    on_key:
      - lambda: ESP_LOGI("KEY", "received key %d", x);
    on_tag:
      - lambda: ESP_LOGI("TAG", "received tag %s", x.c_str());
    on_raw:
      - lambda: ESP_LOGI("RAW", "received raw %d bits, value %llx", bits, value);

# Example configuration entry
key_collector:
  - id: pincode_reader
    source_id: mykeypad
    min_length: 3
    max_length: 3
    end_keys: "#"
    end_key_required: true
    back_keys: "*"
    clear_keys: "C"
#    allowed_keys: "0123456789"
    timeout: 5s
    on_progress:
      - logger.log:
          format: "input progress: '%s', started by '%c'"
          args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]
    on_result:
      - logger.log:
          format: "input result: '%s', started by '%c', ended by '%c'"
          args: [ 'x.c_str()', "(start == 0 ? '~' : start)", "(end == 0 ? '~' : end)" ]

      - if:
          condition:
            lambda: |-
              return x=="101";
          then:
            switch.toggle: aio_light1

      - if:
          condition:
            lambda: |-
              return x=="102";
          then:
            switch.toggle: aio_light2

    on_timeout:
      - logger.log:
          format: "input timeout: '%s', started by '%c'"
          args: [ 'x.c_str()', "(start == 0 ? '~' : start)" ]


ESPHome yaml file download:

.txt   KC868-AIO-ESPHome-wiegand.txt (Size: 21.93 KB / Downloads: 298)

Print this item

  Newbie question
Posted by: DK5EW - 02-20-2025, 03:05 PM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

Hi all,
first I`m not a programmer or software guy I just want to use my KinCony A16S 16 Channel ESP32 for switching the relay outputs.

First problem is how do I connect the board with LAN ? I connected it to PC and I see a ethernet but I can`t get access to the IP 192.168.1.200
Second I want to use Tuya I leard that I have put in the purchased code but first I have to connect but this failed.

So any help hwo to connect to the board with PC over LAN are very welcome. I searched for document or video but did not find anything.

regards 

Print this item

  Auxiliary memory in IFTTT
Posted by: Yosemite - 02-20-2025, 10:19 AM - Forum: "KCS" v2 firmware system - Replies (11)

It would be very useful if you could add more feature like auxiliary memory (internal registers), or similar functionality, to IFTTT's inputs and outputs this will be significantly enhanced its capabilities. Just as auxiliary memory is crucial in PLCs for temporarily storing data and managing conditional logic during program execution, it could bring similar benefits to IFTTT. This would allow for more complex and nuanced automations based on stored states and data.

By the way, from my understanding the IFTTT function you have provided can work without internet connection, right?

Print this item

  KC868_A8M HTTP Get requests example
Posted by: MWDH - 02-20-2025, 09:11 AM - Forum: KC868-A8M - Replies (2)

Hello Forum colleagues,

I am trying to set the KC868_A8M up, so it performs HTTP Get requests from an API server.
I want to do it via Ethernet (Not Wifi) in a local server.
According to the LAN example code I can get the ETehrnet connection to work, I am also able to ping the device and get a response.

I am struggling with the HTTP GEt requests though:
HTTP Error code: -1

Is there an example code doing the same thing? Or are there any hints on what I am doing wrong?

Code:
#include <ETH.h>
#include <HTTPClient.h>

#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

IPAddress local_ip(192, 168, 49, 98); // Set static IP address for ESP32
IPAddress gateway(192, 168, 49, 1);  // Gateway IP
IPAddress subnet(255, 255, 255, 0);  // Subnet mask
IPAddress dns(192, 168, 1, 1);      // DNS server IP

void setup() {
  Serial.begin(115200);
  Serial.println();
   
  // Initialize Ethernet interface
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //start with ETH
 
  if (ETH.config(local_ip, gateway, subnet, dns, dns) == false) {
    Serial.println("LAN8720 Configuration failed.");
  } else {
    Serial.println("LAN8720 Configuration success.");
  }

  Serial.println("Ethernet Connected");
  Serial.print("IP Address: ");
  Serial.println(ETH.localIP());  // Print ESP32 IP
}

void loop() {
  // Create an HTTPClient object
  HTTPClient http;
 
  // Specify the request URL
  http.begin("http://192.168.99.3:8481/test"); // Replace with your URL
 
  // Make the GET request
  int httpCode = http.GET();
 
  if (httpCode > 0) {  // Check if the request was successful
    String payload = http.getString();  // Get the response payload
    Serial.println("HTTP GET request successful!");
    Serial.println(payload);            // Print the payload
  } else {
    Serial.println("HTTP GET failed!");
    Serial.printf("Error code: %d\n", httpCode);
  }

  http.end();  // Close the connection
 
  delay(5000);  // Wait before making another request
}

Print this item

  ESPhome builder 2025.2
Posted by: eyevisions - 02-19-2025, 02:09 PM - Forum: KinCony AS - Replies (13)

After updating ESPhome builder in HA.  The device can no longer be updated. Something goes wrong with LED.

INFO ESPHome 2025.2.0
INFO Reading configuration /config/esphome/as.yaml...
INFO Updating https://github.com/esphome/esphome.git@pull/7672/head
Failed config

light.esp32_rmt_led_strip: [source /config/esphome/as.yaml:133]
platform: esp32_rmt_led_strip
id: led_ww
rgb_order: GRB
pin: GPIO15
num_leds: 3

This feature is not available for the IDF framework version 5.
rmt_channel: 0
chipset: ws2812
name: On Board Light 1
effects:
- addressable_color_wipe:
name: Startup Pulse
colors:
 
The device is working only new device can not be intergradet in HA

Print this item