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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,406
» Latest member: harleybryan
» Forum threads: 2,586
» Forum posts: 13,432

Full Statistics

Online Users
There are currently 53 online users.
» 1 Member(s) | 36 Guest(s)
Amazonbot, Applebot, Bytespider, Crawl, Google, PetalBot, Python-urllib, Yandex, bot, harleybryan

Latest Threads
AS ESPHome yaml for home ...
Forum: KinCony AS
Last Post: eyevisions
17 minutes ago
» Replies: 17
» Views: 937
How to control RGBW 5pin ...
Forum: KC868-A16
Last Post: MariusM
3 hours ago
» Replies: 14
» Views: 328
error on compling - ethen...
Forum: KC868-A2
Last Post: tugra
7 hours ago
» Replies: 2
» Views: 107
Удлинение провода датчика...
Forum: DIY Project
Last Post: admin
7 hours ago
» Replies: 5
» Views: 20
How to use D1 and D2 dry ...
Forum: KC868-A2
Last Post: admin
8 hours ago
» Replies: 5
» Views: 1,909
change wake up name
Forum: KinCony AS
Last Post: admin
10 hours ago
» Replies: 27
» Views: 229
Using a different pull-up...
Forum: KC868-A16
Last Post: admin
Today, 07:24 AM
» Replies: 5
» Views: 32
K868-A16 433 RF MHz recei...
Forum: KC868-A16
Last Post: admin
Today, 07:23 AM
» Replies: 51
» Views: 49,838
How to Use Single Click, ...
Forum: KC868-E16S/E16P
Last Post: engrezk
Today, 06:28 AM
» Replies: 0
» Views: 9
Manual Control Switches N...
Forum: KC868-E16S/E16P
Last Post: admin
Yesterday, 11:48 PM
» Replies: 3
» Views: 11

  Sample code for SIM800L and schematics
Posted by: ebelingtec - 05-10-2023, 04:00 PM - Forum: KC868-A2 - Replies (10)

Hello everyone!

I would like to kinldy ask for some help with the KC868-A2. I am unable to communicate with the SIM800L module. I have tried to use the example code for KC868-A8S sms-relay and adapt it but it didn't work.

I have changed the Serial2 pins in "HardwareSerial.cpp" to RX2 34 and TX2 13.

Could you provide me with an Arduino source code for the KC868-A2 with the SIM800L module?

Thank you Blush

Print this item

  K868-A4 Code help
Posted by: Rory - 05-09-2023, 03:01 PM - Forum: KC868-A4 - Replies (1)

Hi im very new to this and have been trying to find sample code to amend to do the following

Digital input 1 pulse count
 
Digital input 2 pulse count
 
Digital input 3 Reset Button 
 
If input 1 = input 2 + 100 pulses

Then switch com1 status to nc1

Print this item

  KC868-A6 click modes
Posted by: alexlans - 05-09-2023, 02:43 PM - Forum: "KCS" firmware system - Replies (13)

Hello.
I have already add my KC868-A6 by MQTT as binary sensors.

binary_sensor:

- name: 'a6-kcs-input-1'
  unique_id: a6-kcs-input-1
  state_topic: 'KC868_A6/B8D61A5C5304/STATE'
  value_template: '{{ value_json.input1.value }}'
  payload_on: true
  payload_off: false

How i can make work in modes "single click", "double click", "hold on"?

Print this item

  A4S water level sensor to Esphome
Posted by: mvtech2430 - 05-09-2023, 12:04 PM - Forum: KC868-A4 - Replies (1)

Hello need help,

I have this 2 sensor water level and pressure sensor but i dont know how to program it to ESPHome i cant see any code using this sensor in the internet hopefully anyone here can or know how to write the code. please see attached picture for reference.

I want to measure the level on how many percent of the tank like 100% is full and 50% half etc.

And the pressure of the water pipe like if 30psi to 70psi something like that.

Both output are 0-5V
My water tank is 3M height 

Thanks in advance



Attached Files Thumbnail(s)
       
Print this item

  KC868 A4 Relay not working
Posted by: Markii - 05-09-2023, 07:18 AM - Forum: KC868-A4 - Replies (1)

I recently buy this product may 28 2023,
Now i install esphome to home assistant, HA is installed to my windows pc using vmware. After i install this are the pictures and videos.


Please help



Attached Files Thumbnail(s)
       
Print this item

  code not working
Posted by: soccer - 05-08-2023, 08:53 PM - Forum: KC868-A16 - Replies (3)

Could someone tell what is wrong in the code? it's not working with a hmi delta dop-107EV, I don't know what could be an error in the code.


#include <WiFi.h>
#include <ETH.h>
#include <ModbusIP_ESP8266.h>
#include <SPI.h>
#include <Ethernet.h>
#include <PCF8574.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
const int port = 502;
////////////////////////////////////////////////////////////////////
TwoWire I2Cone = TwoWire(0);
//TwoWire I2Ctwo = TwoWire(1);

// Set i2c address
PCF8574 pcf8574_I1(&I2Cone, 0x21, 4, 5);
PCF8574 pcf8574_I2(&I2Cone, 0x22, 4, 5);

PCF8574 pcf8574_R1(&I2Cone, 0x24, 4, 5);
PCF8574 pcf8574_R2(&I2Cone, 0x25, 4, 5);
////////////////////////////////////////////////////////////////////
const int LED_COIL = 100;
const int ledPin = pcf8574_R1.pinMode (P1); //GPIO0
const int TEST_HREG = 100;
////////////////////////////////////////////////////////////////////
IPAddress staticIP(192, 168, 0, 40);
IPAddress gateway(192, 168, 0, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(192, 168, 0, 1);
////////////////////////////////////////////////////////////////////
ModbusIP mb;
ETH mb;
void setup() {
  Serial.begin(115200);
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE);
  Serial.begin(115200);
  if (WiFi.config(staticIP, gateway, subnet, dns, dns) == false) {
    Serial.println("Configuration failed.");
  }
////////////////////////////////////////////////////////////////////
  // put your setup code here, to run once:
pcf8574_R1.pinMode(P0, OUTPUT);
pcf8574_R1.pinMode(P1, OUTPUT);
pcf8574_R1.pinMode(P2, OUTPUT);

pcf8574_I1.pinMode(P0, INPUT);
pcf8574_I1.pinMode(P1, INPUT);
pcf8574_I1.pinMode(P2, INPUT);
////////////////////////////////////////////////////////////////////
modbus.server(port);

  mb.addCoil(LED_COIL);
}

void loop() {
  // put your main code here, to run repeatedly:

      mb.task();

  //Attach ledPin to LED_COIL register
  digitalWrite(ledPin, mb.Coil(LED_COIL));
  delay(10);
}

Print this item

  access control panel by wiegand protocol configure yaml for ESPhome
Posted by: admin - 05-08-2023, 03:31 AM - Forum: KC868-A32/A32 Pro - Replies (9)

here is demo config file for access control panel. control relay2 or relay3 by different finger or IC card or INPUT NUMBER by touch panel.
   
   

.txt   HA_A32_finger_wiegand26_tag.txt (Size: 12.93 KB / Downloads: 934)

Print this item

  KC868-AP ESPHome demo config switch panel control LED for home assistant by ethernet
Posted by: admin - 05-08-2023, 01:19 AM - Forum: KC868-AP / ADR - Replies (4)

this is config file for digital input1 with button control KC868-AP output1:
1: click button for ON/OFF LED, 
2: hold on button for change led brightness.
[Image: attachment.php?aid=2392]   
[Image: attachment.php?aid=2393] esphome:
  name: ap

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "hx8eSqbwjWs9/2bK0qK55QfTIOpI4gCfzLOeaOXZMaU="

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

 

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

pcf8574:
  - id: 'pcf8574_hub_in_1'  # for input channel 1-8    maybe 0x22  /  0x3A
    address: 0x22

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x21

binary_sensor:
  - platform: gpio
    name: "ap-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
    id: light_1_touch
    on_click:
      then:
        - if:
            condition:
              light.is_off: light_1
            then:
              light.turn_on:
                id: light_1
                brightness: 1.0
            else:
              light.turn_off: light_1
    on_press:
      then:
      - if:
          condition:
            light.is_off: light_1
          then:
          - delay: 0.5s
          - while:
              condition:
                binary_sensor.is_on: light_1_touch
              then:
                - light.dim_relative:
                    id: light_1
                    relative_brightness: 5%
                    transition_length: 0.1s
                - delay: 0.1s
          else:
          - delay: 0.5s
          - while:
              condition:
                and:
                  - binary_sensor.is_on: light_1_touch
                  - light.is_on: light_1
              then:
                - light.dim_relative:
                    id: light_1
                    relative_brightness: -5%
                    transition_length: 0.1s
                - delay: 0.1s



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

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

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

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

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

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

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

  - platform: gpio
    name: "ap-input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "ap-input17"
    pin:
      number: 34
      inverted: true

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

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


switch:
  - platform: gpio
    name: "ap-light1"
    pin: 13
    inverted: false

  - platform: gpio
    name: "ap-light2"
    pin: 2
    inverted: false

Print this item

  Momentry Switches A4S
Posted by: mark2023 - 05-07-2023, 07:47 PM - Forum: DIY Project - Replies (5)

Hello,

I have a A4S Controller and a 2 button glass momentry switch and a 6 button momentry switch. Can someone share a wiring diagram for both these switches onto the A4S. 

I connected the glass switch but the input was permantly on in HA and pessing the switch made no difference. If i could have a wiring digram for all terminals on the switches as a example that would be great.

Print this item

  Free sample request
Posted by: skajer - 05-07-2023, 12:44 PM - Forum: Apply for free sample product - No Replies

Hello,

I am interested in learning about KinCony's products and would like to apply for a free sample. As someone who is passionate about technology, I believe that KinCony's products have the potential to enhance my understanding of smart control systems and related fields.

I would like to apply under condition A, as I plan to use the KC868-A4 or KC101 kit for my personal learning and development. I am excited to explore the capabilities of these products and to gain hands-on experience with them.

Best regards,
skajer

Print this item