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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,575
» Latest member: e.montolivo@gmail.com
» Forum threads: 2,918
» Forum posts: 15,487

Full Statistics

Online Users
There are currently 21 online users.
» 0 Member(s) | 9 Guest(s)
Amazonbot, Bing, Crawl, Google, PetalBot, WordPress/, bot, owler

Latest Threads
M30 negative power
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
2 hours ago
» Replies: 44
» Views: 5,310
Simulating RF Remote Butt...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 1
» Views: 2
Fatal error while uploadi...
Forum: KC868-A16
Last Post: admin
2 hours ago
» Replies: 6
» Views: 4,912
ESP32S3 Chip efuse check ...
Forum: "KCS" v3 firmware
Last Post: admin
2 hours ago
» Replies: 3
» Views: 9
KC868-A16 analog input
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
2 hours ago
» Replies: 1
» Views: 40
A32pro RGB led strip
Forum: DIY Project
Last Post: admin
2 hours ago
» Replies: 1
» Views: 7
KC868-A16 rev. 1.6 firmwa...
Forum: "KCS" v2 firmware system
Last Post: jollyroger
8 hours ago
» Replies: 2
» Views: 20
M30 negative power
Forum: KC868-M16 / M1 / MB / M30
Last Post: Linus68
Yesterday, 11:35 AM
» Replies: 0
» Views: 1
BM16 Problems
Forum: B16M
Last Post: admin
Yesterday, 08:25 AM
» Replies: 1
» Views: 7

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

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

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

  Water supply automation
Posted by: korvin - 02-18-2025, 06:23 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (1)

Do you have or can suggest any devices for water supply automation with Home Assistant support?

I wonder if these can work
https://vi.aliexpress.com/item/1005005837609233.html
https://vi.aliexpress.com/item/1005008250776238.html

But if you have something or maybe your partners have, I'd like to buy

Print this item

  Kc868-a32 spi
Posted by: wchpikus - 02-17-2025, 11:11 PM - Forum: KC868-A32/A32 Pro - Replies (1)

Hello
Is it possible to use spi interface (for display or other) i see i2c, but for most large oled interface are spi.

Print this item

  KinCony KC868-A6v3 ESP32-S3 LoRa Relay Module released
Posted by: admin - 02-17-2025, 11:02 PM - Forum: News - No Replies

KinCony KC868-A6v3 ESP32 smart controller based on ESP32-S3-WROOM-1 (N16R8) wifi chip. Support 6 channel relay output, 2 channel 1-wire GPIOs, 16 channel free gpio on PCB. A6v3 include DS3231 high precision RTC clock chip. A6v3 support SX1278 LoRa or nRF24L01 wireless module. LCD display will show wifi and ethernet IP address. A6v3 have I2C bus extender and RS485 port. You can write any code by Arduino IDE / Micro Python / ESP-IDF development tool to ESP32 module. We will supply Arduino / ESP-IDF demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware for smart home automation DIY. A6v3 use KCS v3 firmware, it support home assistant auto discovery function by MQTT, so without write any config code (zero code) for home assistant. KCS v3 support KinCony cloud service (official shop customer free 2 years), remote monitor and control device by webpage in anywhere. KCS v3 support KinCony board integrate to Loxone Miniserver. Support Apple HomeKit for Siri.
[Image: KC868-A6v3-1.jpg]
Model No. KinCony A6v3
Description: KinCony 6 Channel ESP32-S3 Smart Relay Controller – A6v3
Power supply: 12V DC
Processor: ESP32-S3-WROOM-1 (N16R8)
Size: 148mm*106mm
interfaces: WiFi,RS485,Bluetooth,USB-C,LCD,I2C
RTC: DS3231 high precision chip (battery socket on PCB)
Installation method: DIN RAIL (need plastic shell)
LCD: SSD1306 I2C display
wireless module socket: SX1278 LoRa / nRF24L01
[Image: KC868-A6v3-2.jpg]

Print this item

Question KC868, is there some API available for KCS V2 apps on these board
Posted by: magsys - 02-17-2025, 05:42 PM - Forum: "KCS" v2 firmware system - Replies (1)

Dear all
I am on the way to make alive a small watermill in a little town in the East of France.
To do so I plan to use products like Kincony Kc868 Axx series board plus TUYA automation.

At the moment its begin to work using one KC868-A16 and one KC868-A6 both using Tuya scene cloud programmation 
 
However i would like to improve the genuine software capabilities (ie: TUYA capabilities over WIFI) and add some DIY functions using Modbus registers reading and Zigbee sensor reading at the same time plus some control and commands routines of my own done using ie: Arduino ide.
 
My question is How to link your KCS V2 binary with my own routines?
 
Is there some ways to do so on the same board/software?
Is there some specific documented API that should allow that?
What will be the more convenient way to go further and achieve my goals.
 
Some advice would be much appreciated.
I thank you in advance
 
Yours faithfully
Laurent COLIN

Print this item