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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,016
» Latest member: crodriguez
» Forum threads: 2,436
» Forum posts: 12,586

Full Statistics

Online Users
There are currently 31 online users.
» 0 Member(s) | 18 Guest(s)
Applebot, Bing, Bytespider, Crawl, Google, Google-Apps-Script, Yandex, bot

Latest Threads
M30 Troubles
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
5 hours ago
» Replies: 3
» Views: 10
[Arduino IDE demo source ...
Forum: KC868-A16
Last Post: admin
5 hours ago
» Replies: 2
» Views: 1,969
Default firmware
Forum: B16M
Last Post: admin
5 hours ago
» Replies: 1
» Views: 2
KC868-A16 - Own Arduino f...
Forum: Development
Last Post: admin
5 hours ago
» Replies: 1
» Views: 2
AS ESPHome yaml for home ...
Forum: KinCony AS
Last Post: admin
11-12-2024, 10:17 PM
» Replies: 6
» Views: 336
KC868-A8 board esphome + ...
Forum: KC868-A8
Last Post: gnetinternet@gmail.com
11-12-2024, 07:19 AM
» Replies: 10
» Views: 86
"KCS" v3.0.3 firmware for...
Forum: "KCS" firmware system
Last Post: admin
11-11-2024, 10:01 PM
» Replies: 0
» Views: 29
Kc868-a16 v1.6
Forum: DIY Project
Last Post: admin
11-11-2024, 11:17 AM
» Replies: 1
» Views: 27
KCS firmware - MQTT LWT?
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-11-2024, 11:15 AM
» Replies: 35
» Views: 3,354
"KCS" v2.2.7 firmware BIN...
Forum: "KCS" firmware system
Last Post: admin
11-11-2024, 11:09 AM
» Replies: 0
» Views: 68

  KC868-H32 +button switch module V4.43?
Posted by: Mawram - 04-30-2022, 01:32 PM - Forum: KC868-HxB series Smart Controller - Replies (5)

Hi
I have KC868-H32 (2020)  +button switch module for KC868-Hx .All worked perfect until i try  use MQTT for HA  ?
I update firmvare to 4.43   by  USB-RS232. and now switch module  doesnt  work- all lights  Smile 
What can i do now? what the last firmware  to H32?  .V4.43 works only with H3xB ?

Where i can find last firmware for H32 
thanks for help

Print this item

  Lesson23 - any controller input trigger any controller output
Posted by: admin - 04-29-2022, 01:38 AM - Forum: Home automation training courses - No Replies



1. create automation - a16-input1-trigger-a16-output1 (control KC868-A16's output)
-------------------------------------------
Trigger type: State
Entity: a16-input1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Toggle
+ Choose entity
a16-output1

2. create automation - a16-input1-trigger-output3 (control KC868-Server's output)
-------------------------------------------
Trigger type: State
Entity: a16-input1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Toggle
+ Choose entity
output3

Print this item

  Lesson22 - add RGBW LED strip to home assistant by ESPHome
Posted by: admin - 04-29-2022, 12:58 AM - Forum: Home automation training courses - Replies (16)


1. chose LED strip model
2. connect with wire: VCC,DATA,GND
3. config in ESPHome:


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

Print this item

  Lesson21 - Install Raspberry Pi OS on KC868-Server
Posted by: admin - 04-27-2022, 11:32 AM - Forum: Home automation training courses - No Replies



https://www.raspberrypi.com/software/

1. Change KC868-Server USB boot jumper
2. Connect with USB cable with computer and KC868-Server
3. Power on of KC868-Server
4. Run rpiboot
5. Download and install Raspberry Pi Imager 
6. Manually install an operating system image
7. Connect KC868-Server HDMI to monitor
8. Connect keyboard and mouse to KC868-Server

Print this item

  Lesson20 - extend hardware digital output and input channels in home assistant
Posted by: admin - 04-27-2022, 03:26 AM - Forum: Home automation training courses - No Replies

1. extend output and input ports by hardware device

a. KC868-A series board  (integrate to home assistant by ESPHome)
b. KC868-HxB series board (integrate to home assistant by MQTT)

2. config ESPHome for KC868-A16


esphome:
  name: kc868-a16
  platform: ESP32
  board: esp32dev
 
 
# 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_out_2'  # for output channel 9-16
    address: 0x25

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

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

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

  - platform: gpio
    name: "a16-output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16-output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
binary_sensor:
  - platform: gpio
    name: "a16-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

# Enable logging
logger:

# Enable Home Assistant API
api:

Print this item

  Lesson19 - add water level sensor for automation in home assistant
Posted by: admin - 04-27-2022, 02:36 AM - Forum: Home automation training courses - Replies (22)



1. Chose water level sensor:

a. output dry contact for OPEN/CLOSE singal.
b. output DC 0-5v analog voltage.

2. create a new automation:

water-level-control-output4-on (turn on relay)
-------------------------------------------
Trigger type: State
Entity: input-1
To: on


Actions:
Action type: Call service
Service: Switch:Switch: Turn on
+ Choose entity

water-level-control-output4-off (turn off relay)
------------------------------------------
Trigger type: State
Entity: input-1
To: off


Actions:
Action type: Call service
Service: Switch:Switch: Turn off
+ Choose entity

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#11-SX1278-sender_code
Posted by: KinCony Support - 04-26-2022, 01:35 AM - Forum: KC868-A6 - Replies (13)

[Arduino IDE demo source code for KC868-A6]--#11-SX1278-sender_code

Code:
/*SX1278_sender code for KC868-A6*/
#include <LoRa.h>
#include <SPI.h>

#define ss 5
#define rst 21
#define dio0 2

int counter = 0;

void setup()
{
  Serial.begin(115200);
  while (!Serial);
  Serial.println("LoRa Sender");

  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module
 
  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}

void loop()
{
  Serial.print("Sending packet: ");
  Serial.println(counter);

  LoRa.beginPacket();   //Send LoRa packet to receiver
  LoRa.print("hello ");
  LoRa.print(counter);
  LoRa.endPacket();

  counter++;

  delay(2000);
}
   
.zip   11.sx1278-sender.zip (Size: 945 bytes / Downloads: 304)
.zip   11.sx1278-sender.zip (Size: 945 bytes / Downloads: 304)

   

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#10-SX1278-receiver_code
Posted by: KinCony Support - 04-26-2022, 01:32 AM - Forum: KC868-A6 - No Replies

[Arduino IDE demo source code for KC868-A6]--#10-SX1278-receiver_code

Code:
/* SX1278 code for KC868-A6*/
#include <LoRa.h>
#include <SPI.h>

#define ss 5
#define rst 14
#define dio0 21

void setup()
{
  Serial.begin(115200);
  while (!Serial);
  Serial.println("LoRa Receiver");

  LoRa.setPins(ss, rst, dio0);    //setup LoRa transceiver module

  while (!LoRa.begin(433E6))     //433E6 - Asia, 866E6 - Europe, 915E6 - North America
  {
    Serial.println(".");
    delay(500);
  }
  LoRa.setSyncWord(0xA5);
  Serial.println("LoRa Initializing OK!");
}

void loop()
{
  int packetSize = LoRa.parsePacket();    // try to parse packet
  if (packetSize)
  {
   
    Serial.print("Received packet '");

    while (LoRa.available())              // read packet
    {
      String LoRaData = LoRa.readString();
      Serial.print(LoRaData);
    }
    Serial.print("' with RSSI ");         // print RSSI of packet
    Serial.println(LoRa.packetRssi());
  }
}
       
.zip   10.sx1278-receiver.zip (Size: 1,018 bytes / Downloads: 281)

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#09-RS485_code
Posted by: KinCony Support - 04-25-2022, 08:55 AM - Forum: KC868-A6 - Replies (14)

[Arduino IDE demo source code for KC868-A6]--#09-RS485_code

Code:
void setup(){

  Serial2.begin(9600);
}

void loop() {
Serial2.println("KinCony");

}

.zip   9.RS485.zip (Size: 469.3 KB / Downloads: 422)

Print this item

Heart [Arduino IDE demo source code for KC868-A6]--#08-PCF8574-relay code
Posted by: KinCony Support - 04-25-2022, 08:55 AM - Forum: KC868-A6 - Replies (4)

[Arduino IDE demo source code for KC868-A6]--#08-PCF8574-DO_code

Code:
/*
Blink led on PIN0
by Mischianti Renzo <http://www.mischianti.org>

https://www.mischianti.org/2019/01/02/pcf8574-i2c-digital-i-o-expander-fast-easy-usage/
*/

#include "Arduino.h"
#include "PCF8574.h"

// Set i2c address
PCF8574 pcf8574(0x24,4,15);

void setup()
{
    Serial.begin(115200);
//    delay(1000);

    // Set pinMode to OUTPUT
    pcf8574.pinMode(P0, OUTPUT);
  pcf8574.pinMode(P1, OUTPUT);
  pcf8574.pinMode(P2, OUTPUT);
  pcf8574.pinMode(P3, OUTPUT);
  pcf8574.pinMode(P4, OUTPUT);
  pcf8574.pinMode(P5, OUTPUT);


  pcf8574.digitalWrite(P0, HIGH);
  pcf8574.digitalWrite(P1, HIGH);
  pcf8574.digitalWrite(P2, HIGH);
  pcf8574.digitalWrite(P3, HIGH);
  pcf8574.digitalWrite(P4, HIGH);
  pcf8574.digitalWrite(P5, HIGH);

    Serial.print("Init pcf8574...");
    if (pcf8574.begin()){
        Serial.println("OK");
    }else{
        Serial.println("KO");
    }
}

void loop()
{
    delay(300);
    pcf8574.digitalWrite(P0, LOW);
  delay(300);
  pcf8574.digitalWrite(P1, LOW);
  delay(300);
  pcf8574.digitalWrite(P2, LOW);
  delay(300);
  pcf8574.digitalWrite(P3, LOW);
  delay(300);
  pcf8574.digitalWrite(P4, LOW);
  delay(300);
  pcf8574.digitalWrite(P5, LOW);
  delay(300);
}

Print this item