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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,971
» Latest member: itzgreenpoiis0
» Forum threads: 2,423
» Forum posts: 12,543

Full Statistics

Online Users
There are currently 39 online users.
» 2 Member(s) | 24 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot, aponin, mrwolfj

Latest Threads
Sms relays control
Forum: KC868-A8S
Last Post: Michele
8 hours ago
» Replies: 6
» Views: 21
new home automation
Forum: DIY Project
Last Post: admin
9 hours ago
» Replies: 1
» Views: 7
Energy consumption not me...
Forum: KC868-M16 / M1 / MB / M30
Last Post: sebastianfs
Today, 05:26 AM
» Replies: 2
» Views: 30
M30 energy consumption no...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
Yesterday, 11:51 PM
» Replies: 1
» Views: 8
[Arduino IDE demo source ...
Forum: KC868-A16
Last Post: admin
Yesterday, 11:49 PM
» Replies: 10
» Views: 2,944
KC868-A8 board esphome + ...
Forum: KC868-A8
Last Post: admin
Yesterday, 11:47 PM
» Replies: 9
» Views: 50
Nextion display work with...
Forum: KC868-A4
Last Post: admin
Yesterday, 11:47 AM
» Replies: 5
» Views: 1,924
New KC868-A32 Arduino ESP...
Forum: Suggestions and feedback on KinCony's products
Last Post: admin
Yesterday, 11:45 AM
» Replies: 3
» Views: 16
A16 and HC-SR04
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:44 AM
» Replies: 1
» Views: 27
KC868-A4 with Nextion 5 i...
Forum: KC868-A4
Last Post: YOO SEOK
Yesterday, 01:54 AM
» Replies: 2
» Views: 2,822

  KC868-H32BS V1.41 new firmware update
Posted by: admin - 11-04-2021, 01:13 AM - Forum: News - No Replies

improvement:

support set domain for your own server. old version only set server IP address by number. This verison can set by a server domain name for TCP and MQTT server, added DNS function.

download the ZIP file , unzip update the bin file for KC868-H32BS relay controller by USB-RS232 cable.

.zip   H32BS_V141_211101.zip (Size: 52.11 KB / Downloads: 286)

Print this item

  i need help how to use tcp feedback node to update relay state
Posted by: itzek - 11-02-2021, 07:38 PM - Forum: Development - Replies (5)

Hi
I have H32L I connect it to home assistant : https://www.kincony.com/how-to-create-sw...stant.html
When I power on or off channel from switch terminal board  or wall push bottom it power on but the real status not update on home assistant  app is not changing the status in home assistant to on or off
i work whit node-red ,          , need help whit this

Print this item

  Lesson27- KC868-A8 integrate home assistant by ESPHome demo and http command
Posted by: admin - 11-02-2021, 12:38 AM - Forum: KC868-A series and Uair Smart Controller - Replies (2)



ESPHome configure for KC868-A8:

function list:
1. 8 relay output
2. 8 switch input trigger relay output by on_press action
3. monitor 2 channel analog input for DC
4. TEMP-1 port: 2 channel DS18B20 temperature sensor use by 1 ports, actually, you can connect multi DS18B20 by one wire.
5. TEMP-4 port: WS2812B LED strip for 1 meter (30 LEDs)
6. network by Ethernet cable

   
-----------------------------------------------------------------------------------------------------

esphome:
  name: kc868-a8
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "bfb55afbf347b27a4bda0a1d36ee994f"

web_server:
  port: 80


# 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_output'
    address: 0x24
   
  - id: 'pcf8574_hub_input'
    address: 0x22


# Individual outputs
switch:
  - platform: gpio
    name: "switch1"
    id: switch1
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
 
  - platform: gpio
    name: "switch2"
    id: switch2
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 1
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch3"
    id: switch3
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 2
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch4"
    id: switch4
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 3
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch5"
    id: switch5
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 4
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch6"
    id: switch6
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 5
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch7"
    id: switch7
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 6
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "switch8"
    id: switch8
    pin:
      pcf8574: pcf8574_hub_output
      # Use pin number 0
      number: 7
      # One of INPUT or OUTPUT
      mode: OUTPUT
      inverted: true
     
binary_sensor:     
  - platform: gpio
    name: "input1"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 0
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch1
       
  - platform: gpio
    name: "input2"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 1
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch2
       
  - platform: gpio
    name: "input3"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 2
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch3
       
  - platform: gpio
    name: "input4"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 3
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch4
       
  - platform: gpio
    name: "input5"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 4
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch5
       
  - platform: gpio
    name: "input6"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 5
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch6
       
  - platform: gpio
    name: "input7"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 6
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch7
       
  - platform: gpio
    name: "input8"
    pin:
      pcf8574: pcf8574_hub_input
      # Use pin number 0
      number: 7
      # One of INPUT or OUTPUT
      mode: INPUT
      inverted: false
    on_press:
      then:
        - switch.toggle: switch8
       
       
# Example configuration entry
dallas:
  - pin: GPIO14
    update_interval: 5s
sensor:
  - platform: dallas
    address: 0xE701202C5ADED628
    name: "Temperature_1"
    id: Temperature_1
   
  - platform: dallas
    address: 0xBE012115DCBEBC28
    name: "Temperature_2"
    id: Temperature_2
   
  - platform: adc
    pin: GPIO34
    name: "Analog-IN1"
    update_interval: 5s
    attenuation: 11db

  - platform: adc
    pin: GPIO35
    name: "Analog-IN2"
    update_interval: 5s
    attenuation: 11db
   

light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO33    # Pin Define connected with LED strip
    num_leds: 150  #LEDs number
    rgb_order: GRB
    name: "light_strip"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:

-------------------------------------------------------------------------------
KC868-A8/A4 http command list for third party software integration:

read relay state:
http://192.168.1.199/switch/switch1

control relay:
http://192.168.1.199/switch/switch1/turn_on
http://192.168.1.199/switch/switch1/turn_off
http://192.168.1.199/switch/switch1/toggle

read DI state:
http://192.168.1.199/binary_sensor/input1

read temperature:
http://192.168.1.199/sensor/temperature_1

read analog input:
http://192.168.1.199/sensor/analog-in1

read LED strip:
http://192.168.1.199/light/light_strip

control LED strip:
http://192.168.1.199/light/light_strip/turn_on
http://192.168.1.199/light/light_strip/turn_off
http://192.168.1.199/light/light_strip/turn_toggle

debug send command for TEST example: curl -X POST http://192.168.1.199/switch/switch1/toggle

Print this item

  KC868-H32B V4.40 new firmware update
Posted by: admin - 11-01-2021, 01:25 AM - Forum: News - Replies (6)

[Image: kc868-h32b_pix550.jpg]
improvement:

fixed bug when use domain name for server IP need to re power on.

.zip   Relay32_V440_211030.zip (Size: 46.94 KB / Downloads: 463)
download the ZIP file , unzip update the bin file for KC868-H32B relay controller by USB-RS232 cable.

Print this item

  please help to use mqtt for 32bs
Posted by: engmohades - 10-31-2021, 05:46 AM - Forum: News - Replies (1)

I installed virtual home assistant and i put ip of home assistant in edite node mqtt in & out But no any response and not read state or change chanel relay ( On or Off ) of 32bs relay
and not appear thebutton switch in home assistant dashbord



Attached Files Thumbnail(s)
                       
       
Print this item

  KC868-A4 digital input1 trigger relay1 output by ESPHome config demo
Posted by: admin - 10-31-2021, 12:35 AM - Forum: KC868-A4 - No Replies

switch:
  - platform: gpio
    pin: GPIO2
    name: "room lamp"
    id: lamp

binary_sensor:
  - platform: gpio
    pin: GPIO36
    name: "room lamp Toggle Button"
    on_press:
      then:
        - switch.toggle: lamp

Print this item

  Lesson26- how to DIY Music Reactive LED strip for Christmas tree
Posted by: admin - 10-29-2021, 06:56 AM - Forum: KC868-A series and Uair Smart Controller - No Replies


1. WS2812B LED strip connect with DS18B20 temperature's port. (it's GPIO13)
2. Sound detect connect with KC868-A4's (DC 0-5V) analog input port. Sound detect is a sensor convert sound to DC 0-5v output.
3. install arduino library "FastLED" online.

arduino IDE source code download: 
.zip   music-led.zip (Size: 3.28 KB / Downloads: 291)

Print this item

  Lesson24- how to use Telegram control KC868-A4 A8 (ESP32) relay output
Posted by: admin - 10-28-2021, 12:41 AM - Forum: KC868-A series and Uair Smart Controller - No Replies


1. Creating a Telegram Bot

Open Telegram and follow the next steps to create a Telegram Bot. First, search for “botfather” and click the BotFather as shown below. Or open this link t.me/botfather in your smartphone.

2. The following window should open and you’ll be prompted to click the "start" button.

3. Type "/newbot" and follow the instructions to create your bot. Give it a name and username.

4. If your bot is successfully created, you’ll receive a message with a link to access the bot and the "bot token". Save the bot token because you’ll need it so that the ESP32/ESP8266 can interact with the bot.

5. Get Your Telegram User ID

a. In your Telegram account, search for “IDBot” or open this link t.me/myidbot in your smartphone.
b. Start a conversation with that bot and type /getid. You will get a reply back with your user ID. Save that user ID, because you’ll need it later in this tutorial.

6. Preparing Arduino IDE

a. download arduino library and source code: 
.zip   KC868-A4-A8-Telegram.zip (Size: 75.98 KB / Downloads: 652)
b. install "Universal Telegram Bot Library" : Go to Sketch > Include Library > Add.ZIP Library...
c. install "ArduinoJson Library" :
  Go to Skech > Include Library > Manage Libraries.
  Search for “ArduinoJson”.
  Install the library.
d. open source code, replace ssid , password, CHAT_ID, BOTtoken for youself.
e. download firmware and test.

Print this item

  Lesson25- how to send alert message to Whatsapp by KC868-A4 A8 (ESP32)
Posted by: admin - 10-27-2021, 06:45 AM - Forum: KC868-A8 - Replies (20)


You need to get the apikey form the bot before using the API:

1. Add the phone number +34 644 56 55 18  into your Phone Contacts. (Name it it as you wish)

2. Send this message "I allow callmebot to send me messages" to the new Contact created (using WhatsApp of course)

3. Wait until you receive the message "API Activated for your phone number. Your APIKEY is 123123" from the bot. As this is still in beta testing, the activation can take up to 2 minutes.

4. The WhatsApp message from the bot will contain the apikey needed to send messages using the API.
You can send text messages using the API after receiving the confirmation.

Example:
   

5. Enjoy

How to send a WhatsApp text message

https://api.callmebot.com/whatsapp.php?phone=[phone_number]&text=[message]&apikey=[your_apikey]

[phone_number]: Is your phone number asociated to your WhatsApp including the country code. (Ex: +34 123 123 123).

[text]: Message to send (urlencoded). You can use this online converter to encode the message. (i.e. %20 for space, %0A for new lines). WhatsApp formatting characters are allowed (i.e "*" for bold, etc.). Check here how to include emoticons in the message.

[your_apikey]: The apikey that you received during the activation process (step 4-5 above)

Example:

https://api.callmebot.com/whatsapp.php?p...1234567890
If you have problems building the URL, you can try the Web Browser assistant to test the API.

As this API is in beta testing, the messages can be delayed up to 1 minute.
   

Preparing 433MHz RF wireless sensor

Welding wireless module to KC868-A4 or KC868-A8 PCB board.

Preparing Arduino IDE

install RCSwitch library online.
source code download: 
.zip   KC868-Whatsapp.zip (Size: 1.54 KB / Downloads: 525)
you need to change WiFi ssid, password, apiKey, phone number, sensor_address, message_to_whatsapp by yourself.

Print this item

  KC868-A8 PCB V1.4 ESP32 I/O pin define in Arduino IDE
Posted by: admin - 10-27-2021, 02:14 AM - Forum: KC868-A8 - Replies (2)

       
#define ANALOG_A1  34  updated in PCB V1.4
#define ANALOG_A2  35  updated in PCB V1.4

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Relay1 = pcf8574.pinMode(P0, OUTPUT);
Relay2 = pcf8574.pinMode(P1, OUTPUT);
Relay3 = pcf8574.pinMode(P2, OUTPUT);
Relay4 = pcf8574.pinMode(P3, OUTPUT);
Relay5 = pcf8574.pinMode(P4, OUTPUT);
Relay6 = pcf8574.pinMode(P5, OUTPUT);
Relay7 = pcf8574.pinMode(P6, OUTPUT);
Relay8 = pcf8574.pinMode(P7, OUTPUT);

Input_IIC_address 0x22

Input1 = pcf8574.pinMode(P0, INPUT);
Input2 = pcf8574.pinMode(P1, INPUT);
Input3 = pcf8574.pinMode(P2, INPUT);
Input4 = pcf8574.pinMode(P3, INPUT);
Input5 = pcf8574.pinMode(P4, INPUT);
Input6 = pcf8574.pinMode(P5, INPUT);
Input7 = pcf8574.pinMode(P6, INPUT);
Input8 = pcf8574.pinMode(P7, INPUT);


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

DS18B20/DHT11/DHT21/LED strip -3: 32   updated in PCB V1.4
DS18B20/DHT11/DHT21/LED strip -4: 33   updated in PCB V1.4



RF433MHz wireless receiver: 15

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

Print this item