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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,000
» Latest member: jiamalikjup
» Forum threads: 3,973
» Forum posts: 20,134

Full Statistics

Online Users
There are currently 26 online users.
» 0 Member(s) | 12 Guest(s)
AhrefsBot, Amazonbot, Crawl, Semrush, bot

Latest Threads
AIO Hybrid ESP32-S3 IO pi...
Forum: AIO Hybrid
Last Post: H_spadacini
7 hours ago
» Replies: 1
» Views: 559
RTC DS3231 yaml code
Forum: KC868-A16v3
Last Post: admin
8 hours ago
» Replies: 1
» Views: 4
T64M PCB layout CAD file
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
Today, 08:08 AM
» Replies: 0
» Views: 6
T16M PCB layout CAD file
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
Today, 08:07 AM
» Replies: 0
» Views: 7
24V Pulse input
Forum: F16
Last Post: admin
Today, 04:23 AM
» Replies: 3
» Views: 10
Current and Power not add...
Forum: N60
Last Post: admin
Yesterday, 10:01 PM
» Replies: 9
» Views: 166
F16 relay stopped functio...
Forum: F16
Last Post: admin
Yesterday, 11:24 AM
» Replies: 7
» Views: 82
E8v3 PCB layout CAD file
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
Yesterday, 11:23 AM
» Replies: 2
» Views: 131
M30 configure yaml for ES...
Forum: KC868-M16 / M1 / MB / M30
Last Post: kiloptero
Yesterday, 10:39 AM
» Replies: 89
» Views: 23,141
N series Energy Meter for...
Forum: N30
Last Post: admin
Yesterday, 08:19 AM
» Replies: 0
» Views: 10

  KC868-E8T Quectel EC200U LTE Cat 1 Module datasheet
Posted by: admin - 10-23-2022, 11:47 AM - Forum: KC868-E8T - No Replies

KC868-E8T default on PCB board use "EC200U-EU" version 4G module. if you want to customsize define 4G module by "EC200U-CN" or "EC200U-AU", please contact with us.


.pdf   Quectel_EC200U_Series_LTE_Standard_Specification_.pdf (Size: 223.23 KB / Downloads: 1312)

Print this item

  KC868-E8T 4G module SMS command list
Posted by: admin - 10-23-2022, 10:51 AM - Forum: KC868-E8T - No Replies

   


1. Set a password
Format: KC + old password + new password
Note: The initial default password is 0000, and the password is 4 digits
Such as sending SMS: kc0000new1234
Reply to SMS: new password is 1234

2. Restore default password
Press the GPIO0 button on the board for more than 5 seconds, the password will be restored to 0000

3. Set the administrator number
If the password is 1234
Send SMS: kc1234set13100000000
Reply to SMS: manager 13100000000 set ok
Up to 6 administrator numbers can be set

The password and administrator number are written into eprom, and they are still valid after power off and on again.

4. Clear the administrator number
If the password is 1234
Send SMS: kc1234clear13100000000
Reply to SMS: clear manager 13100000000 ok

5. Clear all administrator numbers
If the password is 1234
Send SMS: kc1234clearall
Reply to SMS: clear all manager ok

6. Turn on one relay
Send SMS: kc1234relay1on
Reply to SMS: relay 1 is ON

ID:1-8 represent 1-8 relays

7. Turn off one relay
Send SMS: kc1234relay1off
Reply to SMS: relay 1 is OFF

ID:1-8 represent 1-8 relays

8. Turn on all relays
Send SMS: kc1234allon
Reply to SMS: ALL relay are ON

9. Turn off all relays
Send SMS: kc1234alloff
Reply to SMS: ALL relay are OFF

10. Jog control one relay

Jog control means that relay is turned on first, and after 1 second, it will be automatically turned off.

Send SMS: kc1234inching1
Reply to SMS: relay 1 is inching control ok

ID:1-8 represent 1-8 relays

11. Read the current state of the relay

Send SMS: kc1234state
Reply to SMS: relay 1=ON 2=ON 3=OFF 4=ON 5=OFF 6=ON 7=ON

Print this item

  KC868-E8T demo configure for ESPhome
Posted by: admin - 10-23-2022, 10:44 AM - Forum: KC868-E8T - No Replies

   

.txt   KC868-E8T-Home assistant.txt (Size: 4.81 KB / Downloads: 533)

esphome:
  name: e8t
  platform: ESP32
  board: esp32dev
  on_boot:  #Power chip BL0939 initialization
    priority: 600
    then:
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x42, 0x00, 0x00, 0xDF]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x38, 0x3C, 0x00, 0x00, 0xE6]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x42, 0x00, 0x00, 0xDF]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x3A, 0x01, 0x00, 0x00, 0x1F]
      - delay: 1ms
      - uart.write:
          id: uart_1
          data: [0xA5, 0x39, 0x00, 0x00, 0x00, 0x21]
uart:
  - id: uart_1
    tx_pin: GPIO12
    rx_pin: GPIO39
    baud_rate: 4800
    parity: NONE
    stop_bits: 2   
 
  - id: uart_2
    tx_pin: GPIO33
    rx_pin: GPIO36
    baud_rate: 4800
    parity: NONE
    stop_bits: 2   

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:
  password: "d83d604e4f0ae287fb041dbaf31524d9"


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


sensor:
  - platform: bl0939
    uart_id: uart_1
    update_interval: 10s
    voltage:
      name: 'BL0939A Voltage'
    current_1:
      name: 'BL0939A Current 1'
    current_2:
      name: 'BL0939A Current 2'
    active_power_1:
      name: 'BL0939A Active Power 1'
    active_power_2:
      name: 'BL0939A Active Power 2'
    energy_1:
      name: 'BL0939A Energy 1'
    energy_2:
      name: 'BL0939A Energy 2'
    energy_total:
      name: 'BL0939A Energy Total'
     
     
     
  - platform: bl0939
    uart_id: uart_2
    update_interval: 10s
    voltage:
      name: 'BL0939B Voltage'
    current_1:
      name: 'BL0939B Current 1'
    current_2:
      name: 'BL0939B Current 2'
    active_power_1:
      name: 'BL0939B Active Power 1'
    active_power_2:
      name: 'BL0939B Active Power 2'
    energy_1:
      name: 'BL0939B Energy 1'
    energy_2:
      name: 'BL0939B Energy 2'
    energy_total:
      name: 'BL0939B Energy Total'
     

# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a
 
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x24

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

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

  - platform: gpio
    name: "e8t-light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "e8t-light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "e8t-light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

binary_sensor:
  - platform: gpio
    name: "e8t-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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

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

Print this item

  KC868-E8T ESP32 and Tuya I/O pin define
Posted by: admin - 10-23-2022, 10:42 AM - Forum: KC868-E8T - Replies (8)

IIC SDA:4
IIC SCL:5

Relay_IIC_address 0x24

Input_IIC_address 0x22

OLED address: 0x78

DS3231 RTC address: 0x68

DS18B20/DHT11/DHT21/LED strip : 14

RF433MHz wireless RXD: 32

4G module RXD: 35
4G module TXD: 15

TUYA module RXD: 16
TUYA module TXD: 13

RS485 RXD: 34
RS485 TXD: 2

energy meter 1-2 channel RXD: 39
energy meter 1-2 channel TXD: 12

energy meter 3-4 channel RXD: 36
energy meter 3-4 channel TXD: 33

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-A6 DS1307 Issue
Posted by: Senapsys - 10-23-2022, 06:50 AM - Forum: KC868-A series and Uair Smart Controller - Replies (20)

Hi there

I'm having an issue with getting the KC868-A6 RTC working.

I've taken the example code in the A6 thread as per below, and it returns an error of "Couldn't find RTC".

I've made sure that the I2C SDA and SCL pins are set correctly in the NodeMCU-32S config file.

The RTClib I've used is the Adafruit library below:
https://github.com/adafruit/RTClib

The battery has been installed into the socket on the board.  I've successfully coded up things so that the PCF8574 outputs and inputs to work so I know that the I2C SDA and SCL are working.

The comments in the example code mention the Wire lib, so I've tried including this as well, but it didn't fix the problem.

Any thoughts would be appreciated.


/*KC868-A6 DS1307 CODE*/
// Date and time functions using a DS1307 RTC connected via I2C and Wire lib
#include "RTClib.h"

RTC_DS1307 rtc;

char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};

void setup () {
  Serial.begin(115200);

#ifndef ESP8266
  while (!Serial); // wait for serial port to connect. Needed for native USB
#endif

  if (! rtc.begin()) {
    Serial.println("Couldn't find RTC");
    Serial.flush();
    while (1) delay(10);
  }

  if (! rtc.isrunning()) {
    Serial.println("RTC is NOT running, let's set the time!");
    // When time needs to be set on a new device, or after a power loss, the
    // following line sets the RTC to the date & time this sketch was compiled
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
    // This line sets the RTC with an explicit date & time, for example to set
    // January 21, 2014 at 3am you would call:
    // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
  }

  // When time needs to be re-set on a previously configured device, the
  // following line sets the RTC to the date & time this sketch was compiled
  // rtc.adjust(DateTime(F(__DATE__), F(__TIME__)));
  // This line sets the RTC with an explicit date & time, for example to set
  // January 21, 2014 at 3am you would call:
  // rtc.adjust(DateTime(2014, 1, 21, 3, 0, 0));
}

void loop () {
    DateTime now = rtc.now();

    Serial.print(now.year(), DEC);
    Serial.print('/');
    Serial.print(now.month(), DEC);
    Serial.print('/');
    Serial.print(now.day(), DEC);
    Serial.print(" (");
    Serial.print(daysOfTheWeek[now.dayOfTheWeek()]);
    Serial.print(") ");
    Serial.print(now.hour(), DEC);
    Serial.print(':');
    Serial.print(now.minute(), DEC);
    Serial.print(':');
    Serial.print(now.second(), DEC);
    Serial.println();

    Serial.print(" since midnight 1/1/1970 = ");
    Serial.print(now.unixtime());
    Serial.print("s = ");
    Serial.print(now.unixtime() / 86400L);
    Serial.println("d");

    // calculate a date which is 7 days, 12 hours, 30 minutes, and 6 seconds into the future
    DateTime future (now + TimeSpan(7,12,30,6));

    Serial.print(" now + 7d + 12h + 30m + 6s: ");
    Serial.print(future.year(), DEC);
    Serial.print('/');
    Serial.print(future.month(), DEC);
    Serial.print('/');
    Serial.print(future.day(), DEC);
    Serial.print(' ');
    Serial.print(future.hour(), DEC);
    Serial.print(':');
    Serial.print(future.minute(), DEC);
    Serial.print(':');
    Serial.print(future.second(), DEC);
    Serial.println();

    Serial.println();
    delay(3000);
}

Print this item

  KC868-E8T ESP32 Tuya 4G Energy Meter Relay Module Released
Posted by: admin - 10-23-2022, 12:51 AM - Forum: News - No Replies

We have designed KC868-E8T with Tuya module , 4G LTE module and ESP32, the 8 channel removable relay board.

You can integrate KC868-E8T to home assistant by ESPHome use follow resource:

a. 8 relay relay, 8 channel digital input for switch panel. 4 channel AC220V energy meter (BL0939 energy chip) for load's voltage, current, power, power consumption. DS18B20 temperature sensor.

b. support use Tuya mobile phone application remote control 8 relay by internet , monitor 4 channel load's energy meter and temperature by DS18B20 sensor.


[Image: KC868-E8T-1_01.jpg]
[Image: KC868-E8T-1_02.jpg]
[Image: KC868-E8T-1_03.jpg]
[Image: KC868-E8T-1_04.jpg]

Print this item

  Help H32B Reset
Posted by: rwcidade - 10-22-2022, 05:20 PM - Forum: KC868-HxB series Smart Controller - Replies (14)

Hello.

I need to know how to completely reset the H23B, Seria number H32B200812520, I don´t have access to it and I can´t configure it for WEB access.
It´s very old firmware, and never been done, which if you have i want update.
I couldn´t find the manual or the PC software on the website kincony.
Thanks

Print this item

  KC868-A6 Relays
Posted by: Senapsys - 10-22-2022, 04:26 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hi there
I'm trying to get the relays to work on a KC868-A6.
I'm using the KC868-A8 example source code as the basis for this and modified it as shown below:

#include “Arduino.h”
#include “PCF8574.h”

#define I2C_RELAYS_ADR 0x24
PCF8574 pcf(I2C_RELAYS_ADR);

void setup() {
Serial.begin(115200);
Serial.println(F(“Start Kincony KC868-A6 Relays example…”));
pcf.pinMode(P0, OUTPUT);
pcf.pinMode(P1, OUTPUT);
pcf.pinMode(P2, OUTPUT);
pcf.pinMode(P3, OUTPUT);
pcf.pinMode(P4, OUTPUT);
pcf.pinMode(P5, OUTPUT);
Serial.print(“Init PCF8574… “);
if (pcf.begin()){Serial.println(F(“Ok”));}
else {Serial.println(F(“Error”));}
}

void loop() {
pcf.digitalWrite(P0, HIGH);
Serial.print(F(“Relay #”)); Serial.print(P0); Serial.println(F(” ON”));
delay(10000);
pcf.digitalWrite(P0, LOW);
Serial.print(F(“Relay #”)); Serial.print(P0); Serial.println(F(” OFF”));
delay(10000);
}


Using this example, the pcf.begin statement fails and returns "Error".
Looking at the schematic diagram for the KC868-A6, the I2C SDA is set to pin 26, and the SCL is set to pin 23.  By default the PCF8574 library will default to other values, so I tried changing the statement below to the following which matches the format noted in the readme file for the PCF8574 library
 PCF8574 pcf(0x24, 26, 23);

This didn't work either and so I tried the various I2C scanners and they don't find any I2C device.

I've also ensured that the relevant pins_arduino.h file has been edited to reflect the correct SDA and SCL pin values.

One other thing I have noticed is on startup there is a strange error, see below:

ets Jun  8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
modeBig GrinIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
E (309) i2c: i2c_set_pin(873): scl an⸮4⸮⸮⸮gpio numbers are the same


The highlighted line in red looks odd but I can't find anything online to help. 

Any assistance would be appreciated.

Print this item

  Switch terminal board H16B relay default controll
Posted by: T920919 - 10-19-2022, 09:50 PM - Forum: KC868-HxB series Smart Controller - Replies (7)

Hi

I would like to have a wall switch status monitored in Home Assistant using Node Red to do automation.  I have this configured and working as per the 4-Wall Switch Wireless remoter video.  I can see the button state change in Node Red using the debug option.
 
However the default behaviour without any programming is for the switch buttons to control the corresponding H16B relays, switch button 1-16 control H16B relays 1-16 directly.
 
After I configured Node Red in HA I can make Switch button 1 turn on H16B relay 2 but is also turns on relay 1, (by default).
 
Is there a way to turn off this default setting so the switch buttons don’t change the H16B relay states unless I configure it in Node Red?
 
Set up is
HA running Node Red
KC868-H16B V4.34  Work Mode: TCP Server for both Ethernet and Wifi
Switch Terminal Board V2.1 connect via Rs232
6 Gang Wall Self Reset Momentary Switch Toggle Button Dry Contact.  Connect via KCom and K1-K6

Any help would be appreciated.

Print this item

  RS485 Esphome
Posted by: janosch1337 - 10-17-2022, 07:42 AM - Forum: KC868-E16S/E16P - Replies (1)

Hey,

i am interested in a tutorial showing how to make multiple esphome kincony devices talk to each other over rs485. is this possible?

i know that you actually do it via homeassistant - but this way it is failsafe.



and the other thing what i want to do is connect a dmx interface via rs485.

https://github.com/andyboeh/esphome-dmx512

is that possible with esphome and the kincony rs485?

Print this item