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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 5,379
» Latest member: bizcompass
» Forum threads: 2,577
» Forum posts: 13,333

Full Statistics

Online Users
There are currently 52 online users.
» 2 Member(s) | 38 Guest(s)
Bing, Bytespider, Google, PetalBot, Yandex, bot, bizcompass

Latest Threads
change wake up name
Forum: KinCony AS
Last Post: gal
1 hour ago
» Replies: 16
» Views: 117
H32L - home assistant
Forum: KC868-HxB series Smart Controller
Last Post: admin
2 hours ago
» Replies: 3
» Views: 11
KC868-AG RF - sending rep...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
7 hours ago
» Replies: 5
» Views: 155
Kc868 a8 in workshop
Forum: KC868-A8
Last Post: admin
9 hours ago
» Replies: 1
» Views: 13
KC868-A2 configure yaml f...
Forum: KC868-A2
Last Post: admin
9 hours ago
» Replies: 16
» Views: 7,694
One input switch - turn o...
Forum: KinCony AS
Last Post: admin
9 hours ago
» Replies: 1
» Views: 3
KC868-A8 Switch
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
9 hours ago
» Replies: 3
» Views: 37
Problem with IFTTT automa...
Forum: "KCS" firmware system
Last Post: Poczwara13
Yesterday, 09:39 PM
» Replies: 7
» Views: 71
how to use AS ESP32-S3 vo...
Forum: KinCony AS
Last Post: biofects
Yesterday, 08:51 PM
» Replies: 14
» Views: 481
How can I power multiple ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 09:03 AM
» Replies: 12
» Views: 140

  Tasmota supported devices
Posted by: GabrielRR - 09-23-2023, 07:24 AM - Forum: Development - Replies (3)

Which from your products are fully compatible with tasmota firmware?

Print this item

  ESP32 Energy Meter Relay Controller - KinCony M1 released
Posted by: admin - 09-22-2023, 11:57 PM - Forum: News - No Replies

We have designed ESP32 Energy Meter Relay Controller - KinCony M1 (ESP32 1 channel AC voltage and current energy monitor) for home automation DIYer. it can easy integrate to home assistant by ESPHome. it use by BL0942 energy chip, support by ESPHome. the hardware have BL0942 sensor + 1CH DIGITAL INPUT port + 1CH ZMPT107-1 voltage sensor + Ethernet POE+ WiFi + Bluetooth + 30 Relay. It have I2C bus extender terminal.

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

Print this item

  error instal A128
Posted by: Almhlws - 09-22-2023, 10:41 AM - Forum: KC868-A series and Uair Smart Controller - Replies (15)

Hi every one 

when i try to instal A123, i get error 

ERROR Serial port closed!

see attach     

Print this item

  Dead Board?
Posted by: grs56 - 09-22-2023, 06:11 AM - Forum: KC868-A8 - Replies (5)

Hi,

I have a KC868-A8.

I Flashed it fine four days ago using ESP Home on windows 11.  The board is connected to a regulated switched-mode 12v supply.  I had started to program up a script to use as an aquaponics controller.  I had the following connected:

One dry contact on the first input

One TDS sensor on A1  (+4v)

One DS18B20 on S1

All was working well.  I left the board running overnight.

Came back this morning and noticed that it wasn't showing up in Home Assistant or responding to its IP address.

Power was still OK everywhere.

I have attempted to reflash using esphome webtools and using ESP flasher and your own
 tool from here:  ESP Module Flash Download Tools - Smart Home Automation | KinCony

I have rebooted and reinstalled the com port.  

I have tried from my mac.

The Serial port is showing up on USB connection on both the mac and PC.

I have tried with a different USB cable.

I have confirmed I am able to flash other esp32 chips from the PC with no problem.

I have tried using the s1 and s1 as boot buttons.

My assumption is that the board is dead unless you have other advice?


----
config for reference:
I had yet to attach the Ph probe as I was building a voltage divider this morning. Also the Ultrasonic sensor requires some extra files for the build and i had yet to but those in the right place.  
# Basic Config
esphome:
  name: "greenwall"
  friendly_name: Greenwall
esp32:
  board: esp32dev
  framework:
    type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
  encryption:
    key: !secret greenwall_api_key
   
ota:
wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  domain: !secret local_domain
  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esphome-Web-E12294"
    password: "sJdgDQKbR936"
captive_portal:
web_server:
  port: 80
  auth:
    username: !secret web_server_username
    password: !secret gw_web_server_password
#ethernet:
#  type: LAN8720
#  mdc_pin: GPIO23
#  mdio_pin: GPIO18
#  clk_mode: GPIO17_OUT
#  phy_addr: 0
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
i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a
# Individual outputs
switch:
  - platform: gpio
    name: "Circulation Pump"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Swirl Filter Pump"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Tank Fill"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Mixer"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Ph Up"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Ph Down"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Calcium"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
  - platform: gpio
    name: "Micronutrients"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
# Inputs
# Binary
binary_sensor:
  - platform: gpio
    name: "Tank Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Swirl Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Bio Level Low"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "Tank Overflow"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true
  - platform: gpio
    name: "a8-input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true
# Digital
  - platform: gpio
    name: "a8-s3"
    pin:
      number: 32
      inverted: true
  - platform: gpio
    name: "a8-s4"
    pin:
      number: 33
      inverted: true
dallas:
  - pin: 14
sensor:
  - platform: dallas
    #address: 0x1c0000031edd2a28 #replace with your sensor's ID
    index: 0
    name: "Water Temperature"
  - platform: ultrasonic
    trigger_pin: 13
    echo_pin: 32
    name: "Water Level"
    update_interval: 1s
    accuracy_decimals: 2
    filters:
    - lambda: return (1 - x + 0.03);
    - median:
        window_size: 20
        send_every: 10
    unit_of_measurement: "m^3"
# Analog
# pins 34/35
  # https://esphome.io/components/sensor/adc.html
  - platform: adc
    pin: 34
    id: ph
    name: "pH Sensor"
    update_interval: 1s
    unit_of_measurement: pH
    # https://esphome.io/components/sensor/ind...or-filters
    filters:
      - median:
          window_size: 7
          send_every: 4
          send_first_at: 3
      # Measured voltage -> Actual pH (buffer solution)
      - calibrate_linear:
          - 0.59 -> 7.0
          - 0.71 -> 4.0
  - platform: adc
    pin: 35
    id: tds
    name: "TDS Sensor"
    update_interval: 1s
    unit_of_measurement: ppm
    # https://esphome.io/components/sensor/ind...or-filters
    filters:
      - lambda: return (x * 1000);
      - median:
          window_size: 7
          send_every: 4
          send_first_at: 3
      # Measured voltage -> Actual TDS (buffer solution)
      #- calibrate_linear:
      #    - 0.59 -> 7.0
      #    - 0.71 -> 4.0



Attached Files Thumbnail(s)
   
Print this item

  Nodered MQTT H32B
Posted by: abgran - 09-22-2023, 02:40 AM - Forum: KC868-HxB series Smart Controller - Replies (6)

How to read the state of value for H32B?

Print this item

  KC868-E16S wiring diagram
Posted by: KinCony Support - 09-22-2023, 01:34 AM - Forum: KC868-E16S/E16P - No Replies

   

Print this item

  Arduino source code demo for KinCony M1 Energy Meter Controller
Posted by: admin - 09-21-2023, 03:48 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

Code:
/* KinCony M1 arduino demo
* output BL0942 voltage,current,power,frequency data by serial port
* @Author: www.kincony.com
*/
#include <SoftwareSerial.h>


const int Cur_mR = 10200;  //10200;
const int Volt_mR = 28700;   //28700;

unsigned char eNe_state = 0;

unsigned long dp_value_add_ele_1_value = 0;
unsigned long dp_value_cur_current_1_value = 0;
unsigned long dp_value_cur_power_1_value = 0;
unsigned long dp_value_cur_voltage_1_value = 0;
unsigned long dp_value_cur_freq_1_value = 0;

unsigned long dp_value_temp_value = 0;


#define  USB_TX_PIN   1
#define  USB_RX_PIN   3
#define  ENE1_RX_PIN   14
#define  ENE1_TX_PIN   13
#define  OUT1_PIN   33

unsigned long last_time = 0;
unsigned long eNe_last_time = 0;
String indata="";

String val="";
String outdata="";

SoftwareSerial eNe1;

void setup()
{
  pinMode(OUT1_PIN, OUTPUT);
  digitalWrite(OUT1_PIN, HIGH);
  Serial2.begin(9600,SERIAL_8N1,USB_RX_PIN,USB_TX_PIN);
  eNe1.begin(9600, SWSERIAL_8N1, ENE1_RX_PIN, ENE1_TX_PIN, false, 64);
  eNe1.listen();

  last_time = millis();
  eNe_last_time = last_time;
  eNe_state = 0;

}

void loop()
{


//sample energy
switch (eNe_state)
{
case 0:
    if((millis() - eNe_last_time)>100)
    {
     eNe1.listen();
     eNe_state=1;
     eNe_last_time = millis();
    }
    break;    
case 1:
    if((millis() - eNe_last_time)>1000)
    {
     eNe_state=2;
     eNe_last_time = millis();
    }
    break;    
case 2:
    outdata = "12";
    outdata[0] = 0x58;
    outdata[1] = 0xAA;
    eNe1.print(outdata);
    eNe_state=3;
    eNe_last_time = millis();
    break;    
case 3:
    if(eNe1.available()>0)
      {
        indata+=char(eNe1.read());   //read ene1

    eNe_last_time = millis();
      }
      else
      {
        if(((millis() - eNe_last_time)>4)&&(indata.length()>2))
          {

            val=indata;   //
           

              dp_value_add_ele_1_value=(double(indata[13]+indata[14]*256+indata[15]*65536)*16384*256*1218*1218*22*5)/36000/3537/Cur_mR/Volt_mR; //10200mR 28700mR
              dp_value_cur_current_1_value=(double(indata[1]+indata[2]*256+indata[3]*65536)*1218*1000)/305978/Cur_mR;  //10200mR
              dp_value_cur_power_1_value=(double(indata[10]+indata[11]*256+indata[12]*65536)*1218*1218*22*5)/3537/Cur_mR/Volt_mR; //10200mR 28700mR
              dp_value_cur_voltage_1_value=(double(indata[4]+indata[5]*256+indata[6]*65536)*1218*22*5)/73978/Volt_mR; //28700mR
              dp_value_cur_freq_1_value=2*500000/(double(indata[16]+indata[17]*256+indata[18]*65536)); //
             
            Serial2.println("meter1 channel data:");
            Serial2.print("ele1:");
            Serial2.print(dp_value_add_ele_1_value);
            Serial2.println(" wh");
            Serial2.print("current1:");
            Serial2.print(dp_value_cur_current_1_value);
            Serial2.println(" mA");
            Serial2.print("power1:");
            Serial2.print(dp_value_cur_power_1_value);
            Serial2.println(" W");
            Serial2.print("voltage1:");
            Serial2.print(dp_value_cur_voltage_1_value);
            Serial2.println(" V");
            Serial2.print("freq1:");
            Serial2.print(dp_value_cur_freq_1_value);
            Serial2.println(" Hz");
         
            eNe_state=0;
            indata="";
            eNe_last_time = millis();
          }
      }
     break;    

delay(1000);

}
}


.zip   M1.zip (Size: 1.14 KB / Downloads: 249)

Print this item

  KC868-COLB Logical Controller
Posted by: abgran - 09-21-2023, 12:35 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

Hi.. 

My question is,

1. How to reset this COLB?
  - The reason to reset is web admin turning blank. See attachment below.
2. How to update firmware? What tool i need?

Any video to reference?

Thank you.



Attached Files Thumbnail(s)
   
Print this item

  KinCony M1 configure yaml for ESPhome
Posted by: admin - 09-21-2023, 12:13 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

   

.txt   M1-Home assistant.txt (Size: 865 bytes / Downloads: 199)

esphome:
  name: m1
  platform: ESP32
  board: esp32dev
uart:
  - id: uart_bus
    tx_pin: GPIO13
    rx_pin: GPIO14
    baud_rate: 9600
    stop_bits: 1   

# Enable logging
logger:

# Enable Home Assistant API
api:

# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0
 
sensor:
  - platform: bl0942
    uart_id: uart_bus
    update_interval: 3s
    voltage:
      name: 'M1 Voltage'
    current:
      name: 'M1 Current'
      filters:
        multiply: 0.1965
    power:
      name: 'M1 Power'
    energy:
      name: 'M1 Energy'
    frequency:
      name: "M1 Frequency"
      accuracy_decimals: 2

switch:
  - platform: gpio
    pin: 33
    name: "M1-relay"

binary_sensor:
  - platform: gpio
    pin: 32
    name: "M1-sensor-DI"

Print this item

  KC868-M1 ESP32 I/O pin define
Posted by: admin - 09-21-2023, 12:11 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

IIC SDA:16
IIC SCL:15

Relay:33
Digital input:32

IR sender:4
IR receiver:5

energy meter BL0942 RXD: 13
energy meter BL0942 TXD: 14


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