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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,708
» Latest member: escortsfordubai
» Forum threads: 4,360
» Forum posts: 21,417

Full Statistics

Online Users
There are currently 654 online users.
» 0 Member(s) | 635 Guest(s)
Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, Google, PetalBot, Sogou web, bot

Latest Threads
KC868-A16v3 MQTT TLS/SSL ...
Forum: "KCS" v3 firmware
Last Post: admin
20 minutes ago
» Replies: 1
» Views: 27
HMI touch panel for Home ...
Forum: Suggestions and feedback on KinCony's products
Last Post: rosnoteh
11 hours ago
» Replies: 2
» Views: 108
Reset energy counter on N...
Forum: N30
Last Post: admin
11 hours ago
» Replies: 3
» Views: 60
VisionCamPro-Turn an ESP3...
Forum: DIY Project
Last Post: nikhuge
Yesterday, 09:21 AM
» Replies: 0
» Views: 42
Reading Eastron SDM630 vi...
Forum: N60
Last Post: buttom3
12-01-2026, 12:58 PM
» Replies: 2
» Views: 99
Lumen – Open-Source Smart...
Forum: DIY Project
Last Post: nikhuge
12-01-2026, 09:04 AM
» Replies: 0
» Views: 103
Get Register data by conn...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-30-2026, 11:34 PM
» Replies: 1
» Views: 118
Domticz - native communic...
Forum: KC868-A16
Last Post: admin
11-30-2026, 11:17 PM
» Replies: 3
» Views: 1,376
B4 water tank controller
Forum: B4
Last Post: Fenndy
11-30-2026, 09:05 AM
» Replies: 1
» Views: 153
Calender events instad of...
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
11-28-2026, 11:45 PM
» Replies: 1
» Views: 117

  KC868-A16v3 MQTT TLS/SSL Support for Remote Home Assistant
Posted by: mrteaiot - 4 hours ago - Forum: "KCS" v3 firmware - Replies (1)

I am using a KC868-A16v3 with KCS v3 firmware at my business location. My Home Assistant Mosquitto MQTT broker is located at home on a different internet connection.

I would like to establish a secure MQTT connection with minimum network traffic and low latency.

  1. Does the KC868-A16v3 support mqtts:// using port 8883?
  2. Does it support SSL/TLS certificate validation using a public certificate such as Let's Encrypt?
  3. Does MQTT for Home Assistant support secure WebSocket (wss://)?
  4. Can I use a domain name instead of an IP address for the MQTT broker?
  5. What is the MQTT keep-alive interval?
  6. When Force Update is disabled, does the board only transmit data when an input, output, or sensor value changes?
If MQTT TLS is not currently supported, is there a beta firmware available for the KC868-A16v3 that supports this feature?

Thank you.

Print this item

  VisionCamPro-Turn an ESP32-CAM into a Local First Smart Camera with HomeAssistant
Posted by: nikhuge - Yesterday, 09:21 AM - Forum: DIY Project - No Replies

Hi everyone!

I'd like to share an open-source project I've been working on: VisionCam Pro, a custom security camera firmware built for the AI-Thinker ESP32-CAM (OV2640).
The idea behind this project is simple: turn an inexpensive ESP32-CAM module into a more capable standalone security camera that integrates with Home Assistant without depending on cloud services.
Instead of using the ESP32-CAM just for basic video streaming, I've been developing a complete camera firmware with its own web interface, local recording, motion detection, media management, and Home Assistant integration.

? Project Demo

Watch the project demonstration:



Full tutorial and walkthrough:



? Main Features

Some of the key features currently implemented include:

  • Live Video Streaming: Access the camera through its built-in web interface.
  • RTSP Streaming: Stream video to Home Assistant, VLC, and compatible NVR applications.
  • Local Video Recording: Record video directly to a microSD card in AVI format.
  • Motion Detection: Built-in motion detection with configurable thresholds.
  • Snapshot Capture: Capture and store images on the microSD card.
  • Media Management: Browse, play, download, and manage recorded videos and snapshots.
  • Storage Management: Configurable retention policies and storage monitoring.
  • MQTT Integration: Connect directly to your MQTT broker.
  • Home Assistant MQTT Discovery: Automatically create entities in Home Assistant.
  • Standalone Operation: Continue capturing and recording even when Home Assistant, MQTT, or internet connectivity is unavailable.

? Home Assistant Integration

One of the main goals was making the camera useful within a Home Assistant environment.
The firmware supports MQTT discovery, automatically creating a VisionCam Pro device with entities such as:
  • Motion detection binary sensor
  • Recording status binary sensor
  • SD card status
  • Storage usage sensor
  • Wi-Fi signal sensor
  • Take Snapshot button
  • Flash LED switch

For live video, the camera also provides an RTSP stream that can be integrated into Home Assistant using the Generic Camera integration and go2rtc.
This allows you to combine the camera with your existing Home Assistant automations.

For example:
  • Trigger automations when motion is detected.
  • Capture snapshots through Home Assistant.
  • Control the camera's flash LED.
  • Monitor recording and storage status.
  • View the live camera stream from your Home Assistant dashboard.
? Local-First Architecture

An important design decision was to keep the camera independent of cloud services.
The camera handles its own video capture, recording, motion detection, and media storage locally. MQTT and Home Assistant are additional integrations rather than mandatory dependencies.
Even if your internet connection or Home Assistant server goes offline, the camera can continue performing its core functions.

?️ Hardware Requirements

The project currently targets:
  • AI-Thinker ESP32-CAM
  • OV2640 camera module
  • ESP32-CAM-MB USB programming adapter
  • microSD card
  • Stable 5V power supply
? Source Code

The project is open source, and you can explore the firmware, documentation, and development progress on GitHub.

GitHub Repository:

https://github.com/charithmadhuranga/ESP-CAM

The firmware is developed using ESP-IDF with PlatformIO rather than the Arduino framework.

? Feedback and Suggestions

This is an ongoing project, and I'd love to hear from the Home Assistant community.

A few things I'd particularly like to discuss:

  1. What additional Home Assistant entities or integrations would make this camera more useful?
  2. What features would you expect from a low-cost, locally controlled security camera?
  3. Would you find support for multiple cameras and centralized management useful?
If you're experimenting with ESP32-CAM boards or building your own local security camera systems, feel free to check it out!
I'd appreciate your feedback, suggestions, and contributions.

Thanks!

Print this item

  Reset energy counter on N30
Posted by: Petan - 12-02-2026, 04:59 PM - Forum: N30 - Replies (3)

I have a brand-new N30 board. I’ve flashed it with KCS v3 firmware (v3.27.4) because I want to connect it to Home Assistant via MQTT. That part works fine.

However, some channels have values stored in the "Energy" registers (e.g., "-33839172.000", -1.0000619252720566e+28, etc.). I would like to reset these values to 0.0 kWh before using the device. Is there a simple way to do this—perhaps via the web interface? I couldn't find any such option under "Monitor."
Thanks, Petan



Attached Files Thumbnail(s)
   
Print this item

  HMI touch panel for Home Assistant
Posted by: rosnoteh - 12-01-2026, 09:59 AM - Forum: Suggestions and feedback on KinCony's products - Replies (2)

I propose adding a new product line. HMI touch panel. For example: Waveshare ESP32S3-Touch-LCD-7B. Among DIY enthusiasts, the most popular “large” screen for Home Assistant. Integration with Home Assistant and ready‑made firmware are available online.

Print this item

  Lumen – Open-Source Smart Lighting Controller for ESP32 Boards(Kincony AP)
Posted by: nikhuge - 12-01-2026, 09:04 AM - Forum: DIY Project - No Replies

Hi everyone!

I'd like to share a project I've been working on called Lumen, an ESP32-based smart lighting controller designed to build flexible, customizable, and intelligent lighting automation systems.
The project uses KinCony AP controller hardware(u can use any esp32 based lighting controller)  and focuses on providing a complete lighting control solution with custom firmware, web-based configuration, automation capabilities, and smart home integration.

? What is Lumen?

Lumen is an open-source firmware project that transforms an ESP32-based controller into a flexible smart lighting system.
The goal is to make it easier to build and manage smart lighting installations without depending entirely on proprietary ecosystems.

Some of the key features include:

  • Multi-channel lighting control – Control multiple lighting channels using ESP32-based hardware.
  • Web-based interface – Configure and manage lighting directly through a web interface.
  • Lighting synchronization – Synchronize lighting states across multiple controllers.
  • Automation and scenes – Create different lighting modes and automated behaviors.
  • MQTT integration – Connect lighting controllers to external automation systems.
  • Home Assistant integration – Integrate with Home Assistant for centralized smart home control.
  • Standalone operation – Core lighting functionality works locally without requiring an internet connection.

The project is still evolving, and I'm working towards making it a more complete platform for ESP32-based smart lighting installations.

? Watch the Project

1. Full Development Tutorial

A detailed walkthrough covering the project, implementation, and development process.



2. Project Demonstration

Watch Lumen in action and see the smart lighting controller working.

[url=https://www.youtube.com/watch?v=xr8Mkc1NUvA][/url]


3. Source Code – GitHub

The complete source code is available on GitHub. Contributions, suggestions, and feedback are welcome!

https://github.com/charithmadhuranga/Lumen

? Feedback and Discussion

I'd love to hear from other KinCony users and developers.
A few things I'd particularly like to discuss:
  • What additional features would you like to see in an ESP32-based lighting controller?
  • What improvements would make Lumen more useful for real-world home automation installations?
  • Are there other KinCony hardware configurations that would be interesting to support?
I'm sharing this project with the community in the hope that it might be useful to other KinCony users and inspire further development.
Thanks, and looking forward to your feedback!

Print this item

  Reading Eastron SDM630 via RS485 (Sensor -> Modbus)
Posted by: buttom3 - 11-30-2026, 01:29 PM - Forum: N60 - Replies (2)

Hello,

I am trying to read an external Eastron SDM630 power meter (Slave 1, 9600 bps, 8N1) connected to the RS485 port (A-A, B-B) of my KinCony N60 (KCS v3.27.4) and forward it to Home Assistant via MQTT.

I configured Sensor 1 as "Modbus" (Slave 1, FC04, Reg 0, float32, ABCD), saved, and rebooted, but the Monitor tab shows "-- V" and the meter's communication icon never blinks. I also noticed "Protocol -> Modbus Master" only lists "Modbus TCP" (no RS485).
   
   


1. Does the N60's RS485 port support Modbus RTU Master mode for "Sensor -> Modbus", or is it fixed as a Modbus Slave port?
2. If supported, what baud rate does it use (9600 or 38400) and is any extra setting needed?

Thanks!

Print this item

  Calender events instad of week days events
Posted by: zali - 11-28-2026, 04:03 PM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Hi All,

Is it posible to create one or many calender events 12.03.2027 turn relay 1 on 16.04.2027 turn relay 4 on etc in kc868A4, kc868A8 models?

BR
Zali

Print this item

  Get Register data by connection with RS485
Posted by: abhishek.g@compucareindia.com - 11-28-2026, 09:02 AM - Forum: KC868-A series and Uair Smart Controller - Replies (1)

Dear Sir,
As per the attached screenshots, we are currently receiving data in the Modbus Master with the same configuration. However, we are unable to receive data after configuring the sensor.
Additionally, the data is not visible in the Monitor, nor are we receiving any serial data through the SSCOM tool.
We request your support in troubleshooting the RS485 communication and configuring the sensor to receive serial data for the specific Modbus register addresses.
Kindly guide us on the required configuration and settings to establish successful RS485 communication and retrieve the register values.
Looking forward to your support.



Attached Files Thumbnail(s)
                   

Print this item

  how to use DS3231/SD8931 Real-Time Clock by ESPHome
Posted by: admin - 11-24-2026, 02:58 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (2)

Code:
esphome:
  name: a16v3-ds3231-oled
  min_version: 2026.11.0
  on_boot:
    priority: -100
    then:
      - ds3231.read_time:
          id: rtc_time

esp32:
  board: esp32-s3-devkitc-1
  framework:
    type: esp-idf

logger:

i2c:
  sda: GPIO9
  scl: GPIO10
  frequency: 100kHz

# Connect Ethernet to sync the clock via SNTP.
ethernet:
  type: W5500
  clk_pin: GPIO42
  mosi_pin: GPIO43
  miso_pin: GPIO44
  cs_pin: GPIO15
  interrupt_pin: GPIO2
  reset_pin: GPIO1

ds3231:
  address: 0x68

time:
  - platform: ds3231
    id: rtc_time
    timezone: Asia/Shanghai
  - platform: sntp
    timezone: Asia/Shanghai
    servers:
      - ntp.aliyun.com
      - pool.ntp.org
    on_time_sync:
      then:
        - ds3231.write_time:
            id: rtc_time

pcf8574:
  - id: outputs_1_8
    address: 0x24

switch:
  - platform: gpio
    id: out1
    internal: true
    restore_mode: ALWAYS_OFF
    pin:
      pcf8574: outputs_1_8
      number: 0
      mode: OUTPUT
      inverted: true

font:
  - file: "gfonts://Roboto Mono"
    id: oled_font
    size: 16

display:
  - platform: ssd1306_i2c
    model: "SSD1306 128x64"
    address: 0x3C
    update_interval: 1s
    lambda: |-
      // Use the same timestamp for OUT1 and the display.
      const auto now = id(rtc_time).now();
      const bool active = now.is_valid() && (now.second % 10 < 5);
      if (id(out1).state != active) {
        if (active) id(out1).turn_on();
        else id(out1).turn_off();
      }
      if (now.is_valid()) {
        it.strftime(0, 0, id(oled_font), "%Y-%m-%d", now);
        it.strftime(0, 21, id(oled_font), "%H:%M:%S", now);
      } else {
        it.print(0, 0, id(oled_font), "Waiting for");
        it.print(0, 21, id(oled_font), "network time");
      }
      it.printf(0, 42, id(oled_font), "OUT1: %s", active ? "ON" : "OFF");

KinCony KC868-A16v3 ESPHome Demo – Control OUT1 with the DS3231 Real-Time Clock
This ESPHome YAML demonstrates how the KC868-A16v3 can control an output using its onboard DS3231 real-time clock (RTC). The 128×64 SSD1306 OLED shows the date, local time, and OUT1 status. Watch the last digit of the seconds and compare it with the OUT1 indicator LED. Digits 0–4 turn OUT1 ON, and digits 5–9 turn it OFF. The display refreshes once per second, and you can run the demo without connecting an external load or a Home Assistant server.
How to try it
  1. Flash
    Code:
    a16v3-ds3231-oled.txt
    to the board using ESPHome 2026.11.0 or later. The default time zone is
    Code:
    Asia/Shanghai
    . To display your local time, change both
    Code:
    timezone
    entries before compiling.
  2. For the first test, connect the board’s Ethernet port to a network with internet access. When ESPHome receives the time through SNTP, it writes it to the DS3231. If the board starts without a valid time, the OLED shows
    Code:
    Waiting for network time
    and OUT1 stays OFF.
  3. To test the RTC backup, make sure a working RTC battery is installed. Once the OLED shows the correct time, unplug Ethernet, power the board off for one minute, and power it back on with Ethernet still disconnected. The board should read the time from the DS3231, show that the minute has elapsed, and resume switching OUT1 every five seconds.

download yaml:

.txt   a16v3-ds3231-oled-HA.txt (Size: 1.77 KB / Downloads: 65)

Print this item

  Whether KinCony have Aliexpress online store
Posted by: frlorenzon@gmail.com - 11-24-2026, 12:57 AM - Forum: KC868-AI - Replies (1)

Hello,

I am planning to use a KC868-AI to read 34 pulse water meters (reed contact to GND, cables up to 32 m) and send the data to Home Assistant with ESPHome. Your sales team already confirmed that dry contact works (0 V = true, 12-24 V = false), that the board is powered by DC 12-24 V, and that 32 m cables are fine without extra resistors. My questions below are in order of importance:

1) PCF8574 sampling and shortest pulse: the 48 inputs are read through six PCF8574 expanders (I2C on GPIO4/GPIO5). Is the INT pin of each PCF8574 connected to any ESP32 GPIO, or are the inputs only polled over I2C? With ESPHome polling, what is the shortest pulse (closed contact time) you have tested and detected reliably on all 48 inputs?

2) Input circuit and ground: from the schematic, each input uses an EL357 optocoupler with a 2K series resistor and the common side is the 12VIN rail. Can you confirm that the field side shares the same GND as the ESP32 logic (non-isolated buck converter), and that a reed contact between INPUT_Dx and GND is the intended wiring? With a 24 V supply the LED current will be about 11 mA per closed input. Is that acceptable for long-term use, or do you recommend powering the board at 12 V?

3) ESPHome YAML: is there an official, tested YAML for the KC868-AI with all 48 inputs (PCF8574 addresses 0x21 to 0x26, mode INPUT, inverted: true) that I can use as a base? Which firmware / hardware revision does the pin definition in thread 2016 correspond to?

4) I2C speed: which I2C frequency do you recommend for the six PCF8574 chips in ESPHome (50, 100 or 400 kHz)? Is there any known issue reading all six at the same time with Ethernet enabled?

5) Debounce in KCS v2: the KCS v2 page does not describe any input debounce time. Is there a configurable input debounce / delay time in KCS v2 for the KC868-AI? If yes, what are its unit, range and default value? (The KCS v3 manual mentions an 'input delayed time' setting, also without unit.)

6) Pulse counter: does KCS v2 (or any KinCony firmware for the KC868-AI) have a built-in pulse counter per input that is kept after a power cycle? I plan to count in ESPHome and store counters in flash, but I would like to know if there is a ready solution.

7) Analog inputs: the KC868-AI has no analog inputs, only free GPIOs 34, 35, 36 and 39. For a second project (4-20 mA / 0-5 V water level sensors) which KinCony board do you recommend, and does it work well with ESPHome?

Thank you very much for your help.

Best regards,
Felipe Lorenzon (Brazil)

Print this item