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.
» 0 Member(s) | 38 Guest(s)
Bing, Bytespider, Crawl, Google, PetalBot, Yandex, bot

Latest Threads
KC868-A2 ESP32 I/O pin de...
Forum: KC868-A2
Last Post: tugra
6 hours ago
» Replies: 7
» Views: 2,263
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

  KC868-H32B Pro with Home Assistant
Posted by: titan - 04-07-2024, 12:03 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (4)

Hi,

I would like to integrate devices connected to my KC868 H32B Pro with Home Assistant, which is installed on a separate x86 server configured to support automations across many Zigbee (via ZHA) and WiFi devices. However I'm at a loss for the best way to integrate the KC868 H32B Pro with this HA instance. There seems to be a few options that are discussed in other threads:

1. Install Home Assistant on a Kincony Raspberry Pi server, which mine is not
2. Use Tuya - I'm reluctant to do because I want to do everything via LAN only
3. ESPHome - instructions I've found seem to indicate that I need to first physically connect the KC868 H32B Pro to the HA instance via USB. As they are physically far apart, I was hoping to avoid this.

4. Use MQTT - I have not installed MQTT hoping to be able to use ESPHome wirelessly

Any suggestions on how I should do this?

Any help would be greatly appreciated. 

Thanks so much in advance.

Print this item

  KinCony Server16 Raspberry Pi IoT gateway released
Posted by: admin - 04-05-2024, 02:06 AM - Forum: News - Replies (2)

KinCony Server16 is a Raspberry Pi iot gateway for smart home automation and industrial automation control, It have 16 channel relay, many digital input ports with optocoupler isolation. The most important is integrated Raspberry pi CM4 module. CM4 manage relay, digital input ports, PWM, RF 433M reciever, IR receiver, SIM7600 4G module directly, easy use by Node-Red. It also support home assistant software.
[Image: server16-1.jpg]

Print this item

  KC868-A4 DIGITAL I/O
Posted by: franco.demei@gmail.com - 04-02-2024, 09:37 PM - Forum: KC868-A4 - Replies (3)

Hi all,
I'm trying to program the KC868-A4 to activate the relay, as long as the corresponding digital input is activated. When I release the button the corresponding relay should deactivates.
With the  code I wrote, when I close the digital input the relevant relay turns on. But when I open the  digital imput, The  relay remains on.  Can some one tell me where is a mistake ? Below the code in use. Thank You

#define Relay1 2
#define Relay2 15
#define Relay3 5
#define Relay4 4
#define Key1 36
#define Key2 39
#define Key3 27
#define Key4 14
int KEY_NUM1; // KEY_1 value
int KEY_NUM2; // KEY_2 value
int KEY_NUM3; // KEY_3 value
int KEY_NUM4; // KEY_4 value
void setup() {
  pinMode(Relay1, OUTPUT); // Relay1 IO2
  pinMode(Relay2, OUTPUT); // Relay2 IO15
  pinMode(Relay3, OUTPUT); // Relay1 IO5
  pinMode(Relay4, OUTPUT); // Relay1 IO4
 
  pinMode(Key1, INPUT); // Dig. Input1 IO36
  pinMode(Key2, INPUT); // Dig. Input2 IO39
  pinMode(Key3, INPUT); // Dig. Input3 IO27
  pinMode(Key4, INPUT); // Dig. Input4 IO14
}
void loop() {
  ScanKey1(); // Call function to scan Key1
  ScanKey2(); // Call function to scan Key2
  ScanKey3(); // Call function to scan Key3
  ScanKey4(); // Call function to scan Key4
  }
void ScanKey1() {
  KEY_NUM1 = 0;
 
  // Check if Key1 is pressed
  if (digitalRead(Key1) == LOW) { // Key1 Pressed
    delay(20); // Wait for button debounce
    if (digitalRead(Key1) == LOW) {
      KEY_NUM1 = 1;
     
      // Toggle relay1 state until Key1 is released
      while (digitalRead(Key1) == LOW) {
        digitalWrite(Relay1, !digitalRead(Relay1)); // Toggle relay1 state
        delay(100); // Adjust delay as needed to control toggle speed
      }
    }
  }
}
void ScanKey2() {
  KEY_NUM2 = 0;
  // Check if Key2 is pressed
  if (digitalRead(Key2) == LOW) { // Key2 Pressed
    delay(20);
    if (digitalRead(Key2) == LOW) {
      KEY_NUM2 = 1;
      // Toggle relay2 state until Key2 is released
      while (digitalRead(Key2) == LOW) {      
       digitalWrite(Relay2, !digitalRead(Relay2)); // Toggle relay2 state
        delay(100); // Adjust delay as needed to control toggle speed
      }
    }
  }
}
void ScanKey3() {
  KEY_NUM3 = 0;
  // Check if Key3 is pressed
  if (digitalRead(Key3) == LOW) { // Key3 Pressed
    delay(20);
    if (digitalRead(Key3) == LOW) {
      KEY_NUM3 = 1;
      // Toggle relay3 state until Key3 is released
      while (digitalRead(Key3) == LOW) {      
       digitalWrite(Relay3,HIGH); // Toggle relay3 state
        delay(100); // Adjust delay as needed to control toggle speed
      }
    }
  }
}
void ScanKey4() {
  KEY_NUM3 = 0;
  // Check if Key4 is pressed
  if (digitalRead(Key4) == LOW) { // Key4 Pressed
    delay(20);
    if (digitalRead(Key4) == LOW) {
      KEY_NUM3 = 1;
      // Toggle relay4 state until Key4 is released
      while (digitalRead(Key4) == LOW) {      
       digitalWrite(Relay4,HIGH); // Toggle relay4 state
        delay(100); // Adjust delay as needed to control toggle speed
      }
    }
  }
}

Print this item

  add PWM to Server16 (raspberry pi4 GPIO) by ha-rpi_gpio_pwm in HA
Posted by: admin - 04-02-2024, 07:09 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

https://github.com/RedMeKool/HA-Raspberry-pi-GPIO-PWM

Print this item

  add DS18B20 sensor to Server16 (raspberry pi4 GPIO) by 1-Wire via Sys Bus in HA
Posted by: admin - 04-02-2024, 06:15 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

   
1. install "1-Wire via Sys Bus" component on HACS
   
2. add dtoverlay=w1-gpio,gpiopin=17  command line to TF card->config.txt
for example, this use GPIO17 of CM4 connect with DS18B20 temperature sensor.
if you use GPIO16, command is  dtoverlay=w1-gpio,gpiopin=16
   
so you can add different GPIOs for different 1-wire device.

3. Raspberry Pi checking connected devices via ssh
If you set up ssh, you can check the connected one-wire devices in the following folder: /sys/bus/w1/devices The device IDs begin with 28-.
   

After installed the package in HACS, install the 1-Wire SysBus integration under Setttings-> Devices & services.
   

Entities
Upon startup of the platform, the 1-wire bus is searched for available 1-wire devices creates entities based on the sensor unique id:
sensor.28.FF5C68521604_temperature
   

Print this item

  KinCony Server16 home assistant yaml for Relay and Digital input
Posted by: admin - 04-02-2024, 04:38 AM - Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module - No Replies

   

Code:
binary_sensor:
  - platform: mcp23017
    i2c_address: 0x20
    invert_logic: true
    pins:
      0 : Button_1
      1 : Button_2
      2 : Button_3
      3 : Button_4
      4 : Button_5
      5 : Button_6
      6 : Button_7
      7 : Button_8
      8 : Button_9     
      9 : Button_10     
      10 : Button_11     
      11 : Button_12     
      12 : Button_13     
      13 : Button_14     
      14 : Button_15
      15 : Button_16

     
switch:
  - platform: mcp23017
    i2c_address: 0x22
    hw_sync: false
    invert_logic: true
    pins:
      0 : Output_1
      1 : Output_2
      2 : Output_3
      3 : Output_4
      4 : Output_5
      5 : Output_6
      6 : Output_7
      7 : Output_8
      8 : Output_9
      9 : Output_10
      10 : Output_11
      11 : Output_12
      12 : Output_13
      13 : Output_14
      14 : Output_15
      15 : Output_16
download ymal: 

.txt   Server16_HA_config.txt (Size: 919 bytes / Downloads: 76)
use by mcp23017 for HACS github link: https://github.com/jpcornil-git/HA-mcp23017

Print this item

  KinCony Cloud Server will stop service in 2025 upgrade to TUYA app
Posted by: admin - 04-02-2024, 04:12 AM - Forum: News - Replies (15)

KinCony Cloud server have worked almost 10 years for user freely use.
at the beginning of 2015, will stop service. In order to have a better user experience, we suggest use Tuya app with Tuya cloud server. There are two solution for update your OLD controller to use tuya app.

1. Add Tuya adapter for 32 channel relay controller. You can use tuya app easily, also will let your old 32 channel controller support voice control by Alexa or Google home speaker.

2. if your controller CPU is new (AT32F403AVGT7), you can update fimrware to newest, so that support Tuya app directly (just buy tuya license from KinCony). Then you can use Tuya app, BUT not support voice control by Alexa or Google home speaker. So if you MUST want to use voice control, you need add Tuya adapter.

Tuya adapter details: https://www.kincony.com/esp32-tuya-iot-adapter.html

these solution support 32 channel controller model:
KC868-H32, H32L, H32LW, H32B, H32BS

Print this item

  how to compile new tasmota firmware by simplest way
Posted by: admin - 04-01-2024, 02:07 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

1. use Gitpod, you just need a web browser: https://tasmota.github.io/docs/Gitpod/

2. for example:  we make a new tasmota firmware for ESP32 MATTER + enable PCF8574 i2c bus chip.
   

3. When compiling your build add the following to user_config_override.h
#define USE_I2C                                // Add support for I2C
#define USE_PCF8574                            // [I2cDriver2] Enable PCF8574 I/O Expander (I2C addresses 0x20 - 0x26 and 0x39 - 0x3F) (+2k1 code)
#define USE_PCF8574_SENSOR                  // Enable Mode1 inputs and outputs in SENSOR message (+0k2 code)
#define USE_PCF8574_DISPLAYINPUT            // Enable Mode1 inputs display in Web page (+0k2 code)
#define USE_PCF8574_MQTTINPUT                // Enable Mode1 MQTT message & rule process on input change detection : stat/%topic%/PCF8574_INP = {"Time":"2021-03-07T16:19:23+01:00","PCF8574-1_INP":{"D1":1}} (+0k5 code)

4. after SAVE the FILE, then run command:   "platformio run -e tasmota32"
Command "platformio run -e tasmota32"  is correct for ESP32 builds,  "platformio run -e tasmota"  is only for esp8266 builds.

5. after compiled, download "tasmota32.factory.bin". 
   

6. then use ESP DOWNLOAD TOOL write to ESP32 in address 0x0
   

7. after re power on of ESP32 board, you can connect with tasmota, config it with I2C SDA and SCL pins firstly, then you can see the PCF8574 option and MATTER option.
   
   

Tasmota ESP32 MATTER+PCF8574 firmware download (after downloaded the ZIP file, you need to unzip get the BIN file)

.zip   tasmota32.factory.zip (Size: 1.69 MB / Downloads: 157)

Print this item

  which board uses SX1278 LORA???
Posted by: masoos - 03-30-2024, 09:19 PM - Forum: DIY Project - Replies (1)

Hi, which board you show in the picture for SX1278 Wireless Transceiver Module Lora 868Mhz? It has Lora and a small OLED display :-) I want this!!!!

https://ae01.alicdn.com/kf/U580db2b9a8fb....jpg_.webp

https://www.aliexpress.com/item/10050042...2572425%21

Print this item

  Differences in protocols between H32B and H32B Pro?
Posted by: lulu01 - 03-30-2024, 08:34 PM - Forum: Development - Replies (2)

Hello,

I want to use a H32B and a H32B Pro with Home assistant.

For the H32B, I used this unofficial integration: https://github.com/fiLLLip/hass-components-sha. It uses the RELAY-SET- and RELAY-READ- commands; you can see the code here https://github.com/fiLLLip/hass-componen..._init__.py. This works very well.

The same code does not work for H32B Pro. Only about 50% of clicks on switches work, and I often get error messages such as 'Failed to call service switch/turn_on. 'NoneType' object has no attribute 'group''.

Is this normal? Do the H32B and the H32B Pro use different protocols? I found the page for the protocol used in H32B, is it not supposed to work the same on the Pro?

Thank you!

Print this item