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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 4,493
» Latest member: angelamhammond
» Forum threads: 2,284
» Forum posts: 11,883

Full Statistics

Online Users
There are currently 41 online users.
» 2 Member(s) | 20 Guest(s)
AhrefsBot, Bing, Bytespider, Crawl, Facebook, Google, PetalBot, bot, facebookexternalhit, owler, erick.w

Latest Threads
Lesson23- How to connect ...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
6 hours ago
» Replies: 10
» Views: 7,152
KC868-AG RF - sending rep...
Forum: KC868-A series and Uair Smart Controller
Last Post: PhilW
8 hours ago
» Replies: 3
» Views: 8
Usar entradas y oled i2c ...
Forum: KC868-A6
Last Post: sistemasyusa
Today, 03:16 AM
» Replies: 4
» Views: 14
a16 as basis for a securi...
Forum: KC868-A16
Last Post: admin
Yesterday, 11:58 PM
» Replies: 8
» Views: 52
GSM CALL RELAY
Forum: KC868-A2
Last Post: admin
Yesterday, 11:53 PM
» Replies: 9
» Views: 4,106
KC868-A16S or KC868-A8S
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:51 PM
» Replies: 3
» Views: 37
KCS firmware
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 11:48 PM
» Replies: 10
» Views: 110
[Arduino IDE demo source ...
Forum: KC868-A6
Last Post: sistemasyusa
Yesterday, 09:03 AM
» Replies: 8
» Views: 4,563
Problem with DS1307 on KC...
Forum: KC868-A6
Last Post: sistemasyusa
Yesterday, 08:25 AM
» Replies: 18
» Views: 189
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
Yesterday, 02:04 AM
» Replies: 24
» Views: 2,294

  KinCony ATF (ESP32 SD card module) Read/Write arduino demo code
Posted by: admin - 04-12-2024, 05:26 AM - Forum: Extender module - No Replies

Code:
/*
-----------------------------------------------
|  NodeMCU32s            |   SD Card          |
|  --------------------------------------------
|  -                     |   D02              |
|  -                     |   D01              |
|  GPIO23                |   CMD(MOSI)        |
|  GPIO19                |   D00(MISO)        |
|  GPIO18                |   CLK(SCK)         |
|  GPIO5                 |   D03(SS)          |
|  GND                   |   GND              |
|  VCC(3.3v)             |   VCC              |
-----------------------------------------------
*/
#include "FS.h"
#include "SD.h"
#include "SD_MMC.h"

void WriteFile(fs::FS &fs, const char *path, uint8_t *buf, int len)
{
  //unsigned long start_time = millis();
  Serial.printf("write [%s]...\n", path);

  File file = fs.open(path, FILE_WRITE);
  if (!file) {
    Serial.println("Failed to open file for writing");
    return;
  }
 
  if (!file.write(buf, len)) {
      Serial.println("Write failed");
      return;
    }

  file.flush();
  file.close();

  Serial.printf("Write [%s] Complete", path);
}

void ReadFile(fs::FS &fs, const char *path, uint8_t *buf, int len)
{
  Serial.printf("read [%s]...\n", path);

  File file = fs.open(path);
  if (!file) {
    Serial.println("Failed to open file for reading");
    return;
  }

  if (!file.read(buf, len)) {
      Serial.println("Read failed");
      return;
  }
 
  file.close();

  Serial.printf("Read [%s] Complete: %s", path, buf);
}

void testIO(fs::FS &fs)
{
  char buf[] = "hello world";

  WriteFile(fs, "/test.txt", (uint8_t *)buf, strlen(buf));
  ReadFile(fs, "/test.txt", (uint8_t *)buf, strlen(buf));
}

void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);

  Serial.println("please insert SD card");
  delay(8000);

  /* SD SPI Mode at VSPI */
  SPIClass spi = SPIClass(HSPI);
  spi.begin(18 /* SCK */, 19 /* MISO */, 23 /* MOSI */, 5 /* SS */);
  if (!SD.begin(5 /* SS */, spi, 80000000)) {
    Serial.println("Card Mount Failed");
    return;
  }
  testIO(SD);
  SD_MMC.end(); // cancel load SD card
}
void loop() {
}
source code download:

.zip   ATF-READ-WRITE.zip (Size: 909 bytes / Downloads: 50)

Print this item

  KinCony ATF (ESP32 SD card module) ESPHome yaml for home assistant
Posted by: admin - 04-12-2024, 05:23 AM - Forum: Extender module - No Replies

   
download yaml:

.txt   ATF-HA.txt (Size: 2.08 KB / Downloads: 51)

Code:
esphome:
  name: atf
  friendly_name: atf

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "w7SHSfiO/jo57FMsWHzLoexB93cf1YmRH7YUVvJuVQ4="

ota:
  password: "122b54ecaa3db2cc9455e008d112a4b6"

wifi:
  ssid: "KinCony"
  password: "a12345678"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Atf Fallback Hotspot"
    password: "dPQX1XykXHPe"

captive_portal:

binary_sensor:
  - platform: gpio
    name: "21"
    pin:
      number: 21
      inverted: true
  - platform: gpio
    name: "22"
    pin:
      number: 22
      inverted: true
  - platform: gpio
    name: "14"
    pin:
      number: 14
      inverted: true
  - platform: gpio
    name: "27"
    pin:
      number: 27
      inverted: true
  - platform: gpio
    name: "13"
    pin:
      number: 13
      inverted: true
  - platform: gpio
    name: "15"
    pin:
      number: 15
      inverted: true
  - platform: gpio
    name: "16"
    pin:
      number: 16
      inverted: true
  - platform: gpio
    name: "4"
    pin:
      number: 4
      inverted: true
  - platform: gpio
    name: "36"
    pin:
      number: 36
      inverted: true
  - platform: gpio
    name: "37"
    pin:
      number: 37
      inverted: true
  - platform: gpio
    name: "38"
    pin:
      number: 38
      inverted: true
  - platform: gpio
    name: "39"
    pin:
      number: 39
      inverted: true
  - platform: gpio
    name: "34"
    pin:
      number: 34
      inverted: true
  - platform: gpio
    name: "35"
    pin:
      number: 35
      inverted: true
  - platform: gpio
    name: "TMP1"
    pin:
      number: 26
      inverted: true
  - platform: gpio
    name: "TMP2"
    pin:
      number: 25
      inverted: true
  - platform: gpio
    name: "32"
    pin:
      number: 32
      inverted: true
  - platform: gpio
    name: "33"
    pin:
      number: 33
      inverted: true
web_server:
  port: 80

Print this item

  KinCony ATF (ESP32 SD card module) pin defines
Posted by: admin - 04-12-2024, 05:21 AM - Forum: Extender module - No Replies

SD Card:

MISO:io19
MOSI:io23
SCLK:io18
CS:io5

--------------
extend serial port:
TXD:io33
RXD:io32

--------------

free GPIOs:
io4
io16
io15
io13
io27
io14
io22
io21
-----------------
only for ADC:
io35
io34
io39
io38
io37
io36
-----------------
1-wire:
TMP1:io26
TMP2:io25

Print this item

  KC868-H32B and Smart Power distribution panel
Posted by: fdcemb5 - 04-11-2024, 07:45 PM - Forum: KC868-HxB series Smart Controller - Replies (1)

We have noticed that KC868-H32B and Smart Power Distribution Panel do not show the IP addresses when scanned with  Kincony Scanner. We have tried several routers, and the results are the same. When you connect only one to the router, the IP address will appear.

The question is, since both cannot be connected at the same time to the same router, how do can we integrate them together.

Print this item

  M30 Pulse Input
Posted by: brononius - 04-11-2024, 03:10 PM - Forum: KC868-A16S - Replies (7)

I'm migrating from Flukso  towards Kincony M30. I'm new to ESP Home, so for the moment learning how it all works.

For the moment, already 26 CT clamps running nicely. So far, so good. Wink

On my Flukso, I had a water probe (0,5L per pulse) and a gas probe (10L / pulse). To simplify things, I want to use these probes as well to the M30.

  1. Can I just connect these probes to a port on the M30? Similar to the CT clamps?

  2. And if yes, does anybody have an example for the config? 

Print this item

  Lights are not turned on if the dimmer is off button is pressed shortly
Posted by: iwzr - 04-10-2024, 01:19 PM - Forum: Development - Replies (1)

Hi,
It seems I am too stupid to use the dimmer KC868-D8 with the firmware version 4.37

Flashing and so one was successful and now I started to test the dimmer keys.

I made the settings:
- Switcher Workmode: 1 Key
- Remember Last State: No (based on your last reply)

Connected K1+ with KCOM as a test:
[Image: dimmer-connect.png]

Behavior:
1. Long Press on the button => Normal behaviour the dimmer goes up and down as described ✅
2. If the light is on, then "short press" on the button => Normal behavior the dimmer value goes down to 0 ✅
3. If the light is off, then "short press" on the button => Faulty behavior the dimmer value does not change at all! ❌

My expectation is the same as in the video https://youtu.be/MdCBQl_y4f8?si=68JOT1UzzXkuaNfm&t=605
which means: "short press" when the lights are off should result in setting the dimmer to 99.

Anyone else with this problem?

Print this item

  H32L issue
Posted by: Saif Kitany - 04-10-2024, 12:14 PM - Forum: KC868-HxB series Smart Controller - Replies (10)

I have a kc868-H32L controller.
I programmed it to be in a motor mood.

When i turn on relay(1 or 2 or 3…..or 32) by button switch module, relay (1 or 2 or 3…..or 32)will be on for 1 minute, and after that will turn off automatically.

If (for example) i turn on relay1, then i turn on relay2, so relay1 will be OFF (because control is in motor mood)

Now, if i do all the above by kincony smart home app, I don’t get same results. Which means: 

➡️ if i turn on relay1, then relay1 will be on forever, and don’t turn off after 1 minute automatically.
And if i turn on relay1, and then turn on relay2, the relay1 will not turn off and it stays turned on.

Why is that❓
Is there any solution ❓

Print this item

  KC868 AI
Posted by: fdcemb5 - 04-10-2024, 06:11 AM - Forum: KC868-A series and Uair Smart Controller - Replies (9)

I need step by step how to use KC868 AI with home Assistant. Especially when connected to 12V direct supply, can we still connect to the computer? I need more information in order not top damage the board

Print this item

  KC868-H32B
Posted by: fdcemb5 - 04-09-2024, 03:04 PM - Forum: KC868-HxB series Smart Controller - Replies (15)

Trying to configure this server, after I scanned and got the IP at 192.168.1.180, I login with admin, admin and configure the IP address of the home assistant after setting tpo MQTT mode, unfortunately on rebooting i can't access the KC868 server using 192.268.1.180. I have been on this for hours. How I can I get back to the server.
Ozara

Print this item

  como trabajar desde mi celular o PC
Posted by: Diego Lozada - 04-09-2024, 02:39 PM - Forum: KC868-HxB series Smart Controller - Replies (4)

Buenos días, hace poco compre una KC868 - H32B
Realizo conexiones de un interruptor y puedo controlar desde allí la iluminación, pero no he logrado configurar bien el controlador para hacer control desde mi teléfono móvil o PC.

Usando los software de identificación de IP, no detecta la IP del dispositivo, pero por conexión wifi logre configurar la conexion wifi en el modulo, pero no logro conectar la aplicacion movil con el sistema.

gracias

Print this item