KinCony B4 4-Channel Smart Relay Controller
Frequently Bought Together
Build your smart home with the versatile B4 Controller, a 4-channel relay controller that blends traditional switching with modern sensing. Powered by the ESP32-S3, this DIN-rail mountable device gives you reliable control over lights, garage doors, or pumps, while also offering analog and digital inputs to connect sensors. It’s the perfect all-rounder for home automation projects where you need both outputs and the ability to monitor the environment.
Why You'll Love This Controller
✔ The Versatile Automation Hub
Get 4 relay outputs, 4 analog inputs, 4 digital inputs, and 7 sensor ports in one compact device. It’s ready for almost any DIY automation task.
✔ Dual-Platform Control, Zero Hassle
Use the Tuya App for instant remote access from your phone, while seamlessly integrating with Home Assistant for advanced local automations. Both work together perfectly.
✔ Built for Real-World Reliability
Designed with opto-isolated inputs (good for long wire runs), a precise RTC for time-based rules, and even manual override buttons for fail-safe operation.
✔ Log, Learn, and Expand
Log sensor data to the SD card, add temperature sensors via 1-Wire, or connect industrial gear via RS-485. The hardware grows with your project.
✔ Your Code, Your Rules
Whether you prefer the easy KCS v3 firmware (with local IFTTT), ESPHome, Tasmota, or writing your own code in Arduino, the choice is yours. No vendor lock-in.
Among other outstanding features are the following:
-
Compact and Professional Enclosure: Housed in a sturdy 115x83x56mm case with standard DIN-rail mounting, it integrates neatly into any electrical panel.
-
Dual-Network Connectivity: Includes both Wi-Fi and 100Mbps Ethernet for flexible and reliable network integration, ensuring your controller stays online.
-
Precise Time-Stamping & Logging: Features a high-precision DS3231 RTC chip (with battery backup) for accurate time-based events and a microSD card slot for logging data like sensor readings or energy usage.
-
Manual Override Buttons: Includes physical buttons for each relay output, allowing you to turn loads on or off manually even if the software or network is down – a critical feature for maintenance or emergencies.
-
Multi-Platform Software Support: Use the powerful KCS v3 firmware (with local IFTTT logic), flash it with ESPHome or Tasmota, or write your own code in Arduino or ESP-IDF.
Technical Specifications:
| Category | Specification |
|---|---|
| Core Processor | ESP32-S3-WROOM-1U (N16R8, dual‑core 32‑bit Xtensa LX7) |
| Digital Outputs | 4× relays ▪ Contact: COM, NO ▪ Max load: 250 VAC / 30 VDC, 7 A per channel |
| Analog Inputs | 4× 16‑bit ADC ▪ 2× 0–5 VDC ▪ 2× 4–20 mA (loop‑powered) |
| Digital Inputs | 4× dry contact, opto‑isolated ▪ Cable length: up to 500 m (dependent on installation) |
| Digital I/O (GPIO) | ▪ 3× 1‑Wire interface (with pull‑up) ▪ 4× free GPIO (direct to ESP32, no pull‑up) |
| Wireless Connectivity | ▪ Wi‑Fi 2.4 GHz (802.11 b/g/n) ▪ Bluetooth 5.0 (BLE) |
| IoT Platform | Tuya‑compatible (via Wi‑Fi/Bluetooth) |
| Wired Connectivity | ▪ Ethernet: 100M RJ45 (IPv4/IPv6) ▪ RS485 ▪ USB‑C (power/programming) ▪ I²C (expansion) |
| Onboard Peripherals | ▪ RTC: DS3231 (battery socket) ▪ Display: SSD1306 128×64 OLED (I²C) ▪ Storage: microSD card socket |
| Power Supply | 12 VDC |
| Dimensions | 115 × 83 × 56 mm |
| Mounting | 35 mm DIN rail (EN 60715) |
I. Firmware Options & Features
| Solution | Ideal For | Key Advantages |
|---|---|---|
| 1. KCS Firmware (Recommended) | Beginners / Zero-Code Users |
✔ Auto-detects Home Assistant via MQTT (zero config) ✔ Works with Tuya App + Alexa/Google Voice Control ✔ Local IFTTT automation (no internet needed) ✔ 2-year free KinCony Cloud (official store only) ✔ Apple HomeKit support for Siri ✔ Supports Loxone Miniserver integration ✔ Multi-protocol: HTTP, MQTT, Modbus (RS485/TCP), BACnet, DMX512 |
| 2. ESPHome Firmware | Home Assistant Enthusiasts |
✔ Full open-source customization ✔ Official ESPHome device support for B4 ✔ Web UI + deep HA integration ✔ Full YAML examples available |
| 3. Tasmota Firmware | Open-Source Community |
✔ Massive plugin ecosystem ✔ MQTT / Web control + rule engine |
| 4. Arduino / ESP-IDF Custom Code | Developers |
✔ Full Arduino demos provided ✔ Supports MicroPython / ESP-IDF |
| 5. Hybrid Setup (Best Practice) | Advanced Users | Tuya App (remote via internet) + Home Assistant (local via LAN) — Security + convenience |
II. Technical Resources
Direct links to pin definitions, ESPHome configurations, Arduino demo source codes, and KCS firmware. All open-source and maintained on GitHub.
| Resource | Link |
|---|---|
| KCS Firmware | kcs_firmware/B4/ |
| Pin Definitions | B4_pin_definition.md |
| Arduino Demos | B4/ (11 examples) |
| ESPHome Configuration | Official ESPHome B4 device page |
III. Getting Started Guide
Step 1: Flash Firmware
We recommend using the Online Flasher — no driver installation required, works entirely in your browser. Alternatively, follow the Quick Start Guide for manual flashing with the ESP32 desktop tool.
Step 2: Connect & Configure
Power on the board, connect via Ethernet or Wi-Fi, and access the web configuration interface. For detailed configuration, see the KCS Firmware User Guide.
Step 3: Integrate
Enable MQTT auto-discovery in Home Assistant, or pair with Tuya App for voice control.
IV. Video Tutorial: How to Flash KCS Online
No Drivers Needed, No Complex Setup—Flash Directly within Your Browser in 1 Minute!
Looking for software solutions for other products?
View All Product Software Solutions →






