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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,369
» Latest member: talljane
» Forum threads: 2,574
» Forum posts: 13,305

Full Statistics

Online Users
There are currently 51 online users.
» 2 Member(s) | 33 Guest(s)
Bing, Bytespider, Crawl, Google, Google-Read-Aloud, PetalBot, Yandex, bot, mecario1969@gmail.com, robdk

Latest Threads
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: tugra
5 hours ago
» Replies: 7
» Views: 2,262
change wake up name
Forum: KinCony AS
Last Post: gal
Today, 07:36 AM
» Replies: 12
» Views: 79
A32 Pro ESPHome yaml incl...
Forum: KC868-A32/A32 Pro
Last Post: xarouli5
Today, 06:38 AM
» Replies: 17
» Views: 181
Need help with configurat...
Forum: KC868-HxB series Smart Controller
Last Post: admin
Today, 04:32 AM
» Replies: 32
» Views: 393
ESP32 S3 set up issue
Forum: Extender module
Last Post: admin
Yesterday, 11:43 PM
» Replies: 10
» Views: 66
KC868-A8 Schematic
Forum: KC868-A8
Last Post: admin
Yesterday, 11:40 PM
» Replies: 7
» Views: 49
"KCS" v2.2.8 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
Yesterday, 11:38 PM
» Replies: 2
» Views: 173
Dimensions/drawings of bo...
Forum: Schematic and diagram
Last Post: admin
Yesterday, 11:37 PM
» Replies: 1
» Views: 23
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: admin
12-16-2024, 10:55 PM
» Replies: 12
» Views: 448
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: admin
12-16-2024, 10:53 PM
» Replies: 5
» Views: 37

  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: 474)
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: 299)

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: 665)
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: 544)
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

  KC868-A8 PCB V1.4 update
Posted by: admin - 10-27-2021, 02:06 AM - Forum: News - Replies (4)

we have updated KC868-A8 PCB V1.4
V1.4 up to use 4 digital input by DS18B20/DHT11/DHT21 or WS2812/B LED strips.
   

Print this item