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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 7,299
» Latest member: Elyor2010
» Forum threads: 3,226
» Forum posts: 16,944

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 7 Guest(s)
AhrefsBot, Amazonbot, AwarioBot, Bing, Crawl, Google, PetalBot, bot

Latest Threads
M30 configure yaml for ES...
Forum: KC868-M16 / M1 / MB / M30
Last Post: roflas
8 hours ago
» Replies: 78
» Views: 3,951
Failed Uploading
Forum: KC868-A16
Last Post: Rikfri
07-10-2025, 02:31 PM
» Replies: 2
» Views: 18
KC868 SHT30 Homeassistant
Forum: News
Last Post: silver_kruf
07-10-2025, 01:11 PM
» Replies: 10
» Views: 51
KinCony AG Pro Wireless A...
Forum: KC868-AG / AG Pro / AG8
Last Post: admin
07-10-2025, 11:01 AM
» Replies: 3
» Views: 37
KC868-HAv2 work with F24 ...
Forum: KC868-HA /HA v2
Last Post: admin
07-10-2025, 04:48 AM
» Replies: 1
» Views: 24
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
07-09-2025, 10:28 PM
» Replies: 77
» Views: 7,132
"KCS" v3.9.4 firmware BIN...
Forum: "KCS" v3 firmware
Last Post: admin
07-09-2025, 10:26 PM
» Replies: 8
» Views: 605
MCP23017 interrupt pin
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: admin
07-09-2025, 10:25 PM
» Replies: 1
» Views: 12
G1 fails to register inco...
Forum: G1
Last Post: admin
07-09-2025, 12:48 PM
» Replies: 15
» Views: 254
B16 ESPHome yaml for home...
Forum: B16
Last Post: ck1
07-09-2025, 12:46 PM
» Replies: 5
» Views: 319

  KC868-A8 and PCF8574 Interrupt pin
Posted by: andhol - 05-31-2022, 07:53 PM - Forum: KC868-A8 - Replies (14)

Hi!
I am planning to use all 8 digital inputs of the KC868-A8, and it would be nice to be able to use the interrupt pin of the PCF8574 to detect changes. I'm just not sure if the pin is connected or not. When looking at the schematic, it looks like it is connected to GPIO16, but there is also a red X symbol next to it that might suggest otherwise.. Any hints? 

/A

Print this item

  KC868-A8S hotel room demo configure for ESPhome
Posted by: admin - 05-31-2022, 12:45 AM - Forum: KC868-A8S - Replies (16)

esphome:
  name: a8s
  platform: ESP32
  board: esp32dev
 
 
remote_receiver:
  pin: 16
  dump:
    - rc_switch
  tolerance: 50%
  filter: 250us
  idle: 2ms
  buffer_size: 2kb



# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


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

  # Optional manual IP
  manual_ip:
    static_ip: 192.168.1.199
    gateway: 192.168.1.1
    subnet: 255.255.255.0 


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

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

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

  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "curtain1-up"
    id: relay5
    interlock: [relay6]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
     
     
  - platform: gpio
    name: "curtain1-down"
    id: relay6
    interlock: [relay5]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
     

  - platform: gpio
    name: "curtain2-up"
    id: relay7
    interlock: [relay8]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

     
  - platform: gpio
    name: "curtain2-down"
    id: relay8
    interlock: [relay7]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

     
binary_sensor:
  - platform: gpio
    name: "input1"
    on_press:
      then:
        - switch.toggle: light1
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input2"
    on_press:
      then:
        - switch.toggle: light2
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input3"
    on_press:
      then:
        - switch.toggle: light3
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input4"
    on_press:
      then:
        - switch.toggle: light4
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input5"
    on_press:
      then:
        - switch.toggle: relay5
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input6"
    on_press:
      then:
        - switch.toggle: relay6
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input7"
    on_press:
      then:
        - switch.toggle: relay7
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input8"
    on_press:
      then:
        - switch.toggle: relay8
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true

  - platform: remote_receiver
    name: "remoter1"
    rc_switch_raw:
      code: '001111010111001010111000'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light1
    filters:
      - delayed_off: 200ms

  - platform: remote_receiver
    name: "remoter2"
    rc_switch_raw:
      code: '001111010111001010111100'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light2
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter3"
    rc_switch_raw:
      code: '001111010111001010110100'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light3
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter4"
    rc_switch_raw:
      code: '001111010111001010111001'
      protocol: 1
    on_press:
      then:
        - switch.toggle: light4
    filters:
      - delayed_off: 200ms 
   
  - platform: remote_receiver
    name: "remoter5"
    rc_switch_raw:
      code: '001111010111001010110010'
      protocol: 1
    on_press:
      then:
        - switch.toggle: relay5
    filters:
      - delayed_off: 200ms

  - platform: remote_receiver
    name: "remoter6"
    rc_switch_raw:
      code: '001111010111001010110101'
      protocol: 1
    on_press:
      then:
        - switch.toggle: relay6
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter7"
    rc_switch_raw:
      code: '001111010111001010110001'
      protocol: 1
    on_press:
      then:
        - switch.toggle: relay7
    filters:
      - delayed_off: 200ms
     
  - platform: remote_receiver
    name: "remoter8"
    rc_switch_raw:
      code: '001111010111001010110011'
      protocol: 1
    on_press:
      then:
        - switch.toggle: relay8
    filters:
      - delayed_off: 200ms
     
  - platform: gpio
    name: "PIR1"
    pin: 14
    device_class: motion
    on_release:
      - script.execute: motion_timer

script:
  - id: motion_timer
    mode: restart
    then:
      - delay: 10s
      - switch.turn_off: light1
      - switch.turn_off: light2
      - switch.turn_off: light3
      - switch.turn_off: light4


# Enable logging
logger:

# Enable Home Assistant API
api:



Attached Files
.txt   KC868-A8S-ha-config.txt (Size: 6.11 KB / Downloads: 690)
Print this item

  KC868-A8S ESP32 I/O pin define
Posted by: admin - 05-31-2022, 12:43 AM - Forum: KC868-A8S - Replies (5)

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

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Input_IIC_address 0x22

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

RF433MHz wireless receiver: 16


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:GPIO32
TXD:GPIO33

GSM:
RXD:GPIO13
TXD:GPIO15

Buzzer:GPIO2

WS2812B RGBW LED:GPIO12

Print this item

  KC868 A4 - Help In Program
Posted by: mfjunior96 - 05-29-2022, 09:52 PM - Forum: KC868-A4 - Replies (3)

Good night sir,

I'm having a problem and I wanted some help, I have a KC868 A4, I'm using the 4 outputs and 3 digital inputs, but now I want a device (led drivers) connected to alexa to change its state, when I change the state of the digital input , I created a new device "F6" but I can't make "When F6 on > Led Driver ON" the alexa app doesn't let me put a lamp with imput, what can I do? Is there another app that I can do this interaction?


Thanks in Advance

Print this item

  COLB RS485 BAUD RATE
Posted by: Dm81 - 05-27-2022, 01:40 PM - Forum: KC868-HxB series Smart Controller - Replies (15)

Hello
please, which is the baud rate of RS485 on COLB?
Is it possible to choose it?
thank you
Diego

Print this item

  Lesson27 - Notifications for Android TV in home assistant
Posted by: admin - 05-25-2022, 09:09 AM - Forum: Home automation training courses - No Replies



1. install "Notifications for Android TV" apk in Android TV.

2. Browse to your Home Assistant instance.
    In the sidebar click on  Settings.
    From the configuration menu select: Devices & Services.
    In the bottom right, click on the  Add Integration button.
    From the list, search and select “Notifications for Android TV / Fire TV”.
    Follow the instruction on TV screen to complete the set up. Just input TV's IP address.

3. create "automation" in home assistant for "sensor" trigger "action".
more details on home assistant webpage: https://www.home-assistant.io/integrations/nfandroidtv

Print this item

  KC868-D8 Dimmer 1-10V, logarithmic
Posted by: bogdan_0 - 05-25-2022, 07:00 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hello

1. Is there any setting that I can use KC868-D8 dimmer as "1-10V"?
I have found a led driver din rail format (which would reduce the occupied space in my automation cabinet) but I need to work on 1-10V range instead of 0-10V.
example: https://www.sunricher.com/din-rail-0-1-1...ifications


2. I understand that KC868-D8 is a liniar driver; so in order to achieve a smooth logarithmic turn-on/off of light intensity I should combine it with a logarithmic led driver. please tell if I am wrong.

[Image: 1627051498-why-you-need-dimming-curves-6...q=60&w=300]
source: https://eldoled.com/insights/why-you-nee...ng-curves/

Thank you

Print this item

  Lesson26 - send email notifications by sensor in home assistant
Posted by: admin - 05-24-2022, 09:09 AM - Forum: Home automation training courses - No Replies



# Example configuration.yaml entry for Google Mail.
notify:
  - name: "NOTIFIER_NAME"
    platform: smtp
    server: "smtp.gmail.com"
    port: 587
    timeout: 15
    sender: "YOUR_USERNAME@gmail.com"
    encryption: starttls
    username: "YOUR_USERNAME@gmail.com"
    password: "YOUR_PASSWORD"
    recipient:
      - "RECIPIENT_1@example.com"
      - "RECIPIENT_N@example.com"
    sender_name: "SENDER_NAME"

Print this item

Wink Lesson25 - how to use Apple HomeKit by home assistant
Posted by: admin - 05-23-2022, 03:07 AM - Forum: Home automation training courses - No Replies


1. home assistant -- Configration -- Device & Services +ADD INTEGRATION -- HomeKit

2. find the QRcode of HomeKit "HASS Bridge" in Notifications

3. open "HOME" app by iOS device (iPhone/iPad) scan this QRcode to add devices.

Print this item

  Disappointed with this server...
Posted by: Amaral989 - 05-23-2022, 01:54 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (5)

The ESP 3.3v is 5v now. 
i can not get ADC to read voltages . This unit just doesn't work like its described.  Angry

Print this item