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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,730
» Latest member: tr88piccs
» Forum threads: 4,199
» Forum posts: 20,867

Full Statistics

Online Users
There are currently 197 online users.
» 0 Member(s) | 182 Guest(s)
Amazonbot, Applebot, Baidu, Bing, Bytespider, Crawl, PetalBot, bot

Latest Threads
T32M issue with Output 1
Forum: DIY Project
Last Post: marktuan
Today, 04:38 AM
» Replies: 5
» Views: 963
N60 Loss of kWh on reset
Forum: N60
Last Post: admin
Today, 01:17 AM
» Replies: 3
» Views: 19
KinCony F24 ESP32-S3 16A ...
Forum: News
Last Post: admin
08-27-2026, 11:58 AM
» Replies: 2
» Views: 884
kc868-A16S3 v3.2
Forum: Development
Last Post: admin
08-27-2026, 02:02 AM
» Replies: 3
» Views: 21
SSD1306 with case
Forum: KC868-A16v3
Last Post: admin
08-26-2026, 10:41 AM
» Replies: 3
» Views: 26
N60 power supply - power ...
Forum: N60
Last Post: admin
08-25-2026, 11:26 PM
» Replies: 1
» Views: 14
KC868-meter-7pv-rs485
Forum: Development
Last Post: admin
08-25-2026, 10:20 AM
» Replies: 7
» Views: 3,780
N60 configure yaml for ES...
Forum: N60
Last Post: admin
08-23-2026, 01:42 AM
» Replies: 7
» Views: 1,972
KCS VERSUS ESPHOME
Forum: "KCS" v3 firmware
Last Post: EDVALDO DE MARINGA
08-22-2026, 01:31 PM
» Replies: 2
» Views: 79
KC868-AGv3
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
08-20-2026, 10:18 PM
» Replies: 5
» Views: 182

  KC868-A8 board esphome + Tuya
Posted by: gnetinternet@gmail.com - 11-03-2024, 02:37 PM - Forum: KC868-A8 - Replies (12)

Hello. I'm configuring the KC868-A8 board with Esphome and the Tuya license. However, I found some errors and would like to share them for a possible solution. KC868-A8 board esphome + Tuya
It's giving an error that I don't know exactly. error image attached.





# Basic Config
esphome:
  name: kc868-a8-contato-web-dht-tuya2
  platform: ESP32
  board: esp32dev

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-iot
      ref: v1.2.0

# Enable logging
logger:
  baud_rate: 0

api:
  encryption:
    key: "It2KB/xCg0EuwXMc1KyiTXRTSjr0hdQXmxQXnwIVmOE="

ota:
  - platform: esphome
    password: "70604538ddb4bdb4362c2d63114dfb1d"


i2c:
  sda: 4
  scl: 5
  scan: true
  id: bus_a


ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

  # Add web server
web_server:
  port: 80
  auth:
    username: admin
    password: "admin"

text_sensor:
  - platform: homeassistant
    name: "Casa Inteligente"
    id: home_assistant_text
    entity_id: input_text.test


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


time:
  - platform: homeassistant
    id: homeassistant_time


# Individual outputs
switch:
  - platform: gpio
    name: "light1"
    id: light1
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output1", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output1", false);

  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output2", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output2", false);

  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output3", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output3", false);

  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output4", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output4", false);

  - platform: gpio
    name: "light5"
    id: light5
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output5", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output5", false);

  - platform: gpio
    name: "light6"
    id: light6
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output6", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output6", false);

  - platform: gpio
    name: "light7"
    id: light7
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output7", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output7", false);

  - platform: gpio
    name: "light8"
    id: light8
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true
    restore_mode: RESTORE_DEFAULT_ON
    on_turn_on:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output8", true);
    on_turn_off:
      - lambda: !lambda |-
          id(tuya_iot_component).property_report("output8", false);

binary_sensor:
  - platform: gpio
    name: "input1"
    on_press:
      then:
        - switch.toggle: light1
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input2"
    on_press:
      then:
        - switch.toggle: light2
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input3"
    on_press:
      then:
        - switch.toggle: light3
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input4"
    on_press:
      then:
        - switch.toggle: light4
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input5"
    on_press:
      then:
        - switch.toggle: light5
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input6"
    on_press:
      then:
        - switch.toggle: light6
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input7"
    on_press:
      then:
        - switch.toggle: light7
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "input8"
    on_press:
      then:
        - switch.toggle: light8
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "a8-s3"
    pin:
      number: 32
      inverted: true

  - platform: gpio
    name: "a8-s4"
    pin:
      number: 33
      inverted: true

one_wire:
  - platform: gpio
    pin: GPIO14

sensor:
  - platform: dallas_temp
    name: "Temperatura QCC"
    id: temperatura_1
    address: 0x06136e7e1f64ff28  # Endereço específico do sensor
    accuracy_decimals: 1  # Precisão do sensor em casas decimais
    update_interval: 30s  # Intervalo de atualização dos dados

 
  - platform: dht
    pin: GPIO13  # Ajuste para o pino que você está usando
    model: DHT22  # Substitua pelo modelo do seu sensor (DHT11, DHT22, AM2301, etc.)
    temperature:
      name: "Temperatura externa"
    humidity:
      name: "Umidade externa"
    update_interval: 30s  # Ajuste o intervalo de atualização conforme necessário

tuya_iot:
  id: tuya_iot_component
  product_id: xxx
  device_id: xxx
  device_secret: xxx
  region: us # eu, us, eus, weu, in, cn
  # eu: Central Europe Data Center
  # us: US West Data Center
  # eus: US East Data Center
  # weu: Western Europe Data Center
  # in: India Data Center
  # cn: Chinese Data Center

  on_event:
    - event_name: property/set
      then:
        - lambda: !lambda |-
              // Append the required switch in switch_map to respond to commands issued by Tuya.
              static std::map<float, switch_::Switch*> switch_map {
                { 1, id(light1) },
                { 2, id(light2) },
                { 3, id(light3) },
                { 4, id(light4) },
                { 5, id(light5) },
                { 6, id(light6) },
                { 7, id(light7) },
                { 8, id(light8) },
              };
 ......>



Attached Files Thumbnail(s)
   
Print this item

  KC868-ATC Tuya HRC Zehner rs232 integration
Posted by: PHNijborg - 11-03-2024, 12:47 PM - Forum: KC868-ATC / Tuya adapter V2 - Replies (1)

Hello,

I have purchased the KC868-ATC V1.4 and want to use the rs232 functionality to control a Heat recovery system.
I use the tuya app to control my house, however i am not sure how to convert this app and KC868-ATC to the full protocol functionallity in the pdf...

Anyone any ideas?

I have a tuya developer account and Arduino IDE, i have created a IDE code, but doesn't work, the connection to tuya is missing i think...



Attached Files
.pdf   Protocol_Eng.pdf (Size: 1.34 MB / Downloads: 2416)
Print this item

Wink how to use KinCony cloud server
Posted by: admin - 11-03-2024, 01:14 AM - Forum: "KCS" v2 firmware system - Replies (10)

1. KinCony cloud server support KinCony Devices list (constantly update):

KC868-COLB
KC868-H32B Pro
A32 Pro
M30
MB
B24M
B24
B8M
B8
B16M
B16
F8
F16
F24
T16M
T32M
T64M
T128M
TA
N10
N20
N30
N60
DM16
AIO-Hybrid
KC868-A16v3
KC868-A8v3
KC868-A6v3
KC868-A2v3

2. KinCony cloud service function:
remote control or monitor sensor state by browser (mobile phone / Windows PC / Apple MAC computer)

3. price of KinCony cloud server:

5usd/year for one board
free 2 years only for KinCony official online shop customer. (shop.kincony.com)

if you buy products from KinCony offical shop. You can send email (web@kincony.com) to us, tell us your "order number" and "order photo" , "board model" and "serial number" or "UID". We will add your board serial number to our cloud server.

how to use KinCony cloud server:

a. login by KinCony cloud server webpage: https://mq.kincony.com/qq/login
b. register user name and password
c. login with your user name and password
d. add your device by SCAN QRcode or INPUT your serial number.

how to generate your QRcode by yourself:
use this STRING https://mq.kincony.com/qq/device/qrcode?did=xxxxx  xxxxx replace
for example your board's serial number is: d3671a7ba2618996a7b56b3c
so you can paste this URL to your web browser: https://mq.kincony.com/qq/device/qrcode?...96a7b56b3c
Then it will create the QRcode photo, you can download, maybe you can print a label, stick on your board.

e. Now you can remote control your board.

Print this item

  RS485 usage
Posted by: charlesjabged - 11-02-2024, 10:46 PM - Forum: KC868-AK - Replies (7)

I just received the keyboard and i am trying to read button state with modbus. I try to use this: https://www.kincony.com/forum/attachment.php?aid=2240
but it is really unclear to me.

I try coils, inputs reg, and holding with:
1 stop bit, no parity, 9600 baud.

I have 3 others devices that work well on the same modbus line ( with different MB address ).

Can you help me with the correct way to poll button status ? (i will do a request every 1sec).

thank you in advance.

Print this item

  Temp Sensors
Posted by: silicondt - 11-02-2024, 10:37 PM - Forum: KC868-AIO - Replies (1)

Can anyone tell me if the KC868-AIO supports more than two temp sensors?

From the videos it looks like it has two GPIO ports for temp sensors, but not sure if that means only can use two?
Or can multiple temp sensors be hooked to each port ?

We have a project that needs 4 temp sensors. Would we have to use analog temp sensors if we needed more than 2?

Thanks!

Print this item

  Need recomendation
Posted by: silicondt - 11-02-2024, 09:57 PM - Forum: DIY Project - Replies (3)

Hello we have a project that will have 25 mag locks.
When you provide 24v the mag lock will engage.
These will lock and unlock wine cabinets.

Each mag lock has two outputs. A door sensor and a mag sensor.
These outputs are dry closes contact.

We will be running 6 conductor wire to each mag lock.

So basically we need 25 relays, and 50 dry contact inputs.

We want to use "home assistant". so the board needs to integrate well with it.

Would the KC868-AIO be the best board for this?

Bonus question - I see I can add temp sensors. Can I only add two? We need 4 total.

Thanks!

Print this item

  temperature/humidity modbus module
Posted by: mod5 - 11-02-2024, 06:01 AM - Forum: Suggestions and feedback on KinCony's products - Replies (3)

i would like to suggest a module like https://shop.kincony.com/products/rs485-...e-by-sht30
It should be modbus, becouse 1wire couses problems for longer distances
For european clients, we use 60mm round flush-mounted box and that product cant fit  there.
Mabye you can just did some KC868-HAv2 additional functionality?

Print this item

  esphome - devices connected without ha
Posted by: mod5 - 11-01-2024, 08:52 PM - Forum: Development - Replies (3)

Hi,

Is this possible to control GPIOS between two boards?
I have A32M and A64 and i want to do something like: input1(Board A) -> output1(Board B)
I want to use esphome (i need it for the project) and i dont want to use HA.
Can i do that?


P.S. 
Great work with your boards !

Print this item

Wink "KCS" v3.0.1 firmware for A32 Pro controller
Posted by: admin - 10-31-2024, 07:17 AM - Forum: "KCS" v2 firmware system - No Replies

v3.0.1 improvement:

1. fixed bug with ethernet STATIC IP mode.
2. support KinCony NEW Cloud server, remote control and monitor A32 Pro Controller by mobile phone and computer (PC & MAC) via internet by web browser.
3. support "auto discovery" for home assistant by MQTT with zero code config.
4. support Apple HomeKit directly to use.
   
   
firmware donwload:
.zip   KCS_A32PRO_V3.0.1.zip (Size: 999.11 KB / Downloads: 742)

Print this item

  wired temperature and humidity sensor pin define
Posted by: admin - 10-31-2024, 01:58 AM - Forum: Extender module - No Replies

   
RED: VCC 3.3--5v
BLACK: GND
YELLOW: humidity output
WHITE: temperature output

Print this item