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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 6,575
» Latest member: e.montolivo@gmail.com
» Forum threads: 2,915
» Forum posts: 15,476

Full Statistics

Online Users
There are currently 19 online users.
» 0 Member(s) | 8 Guest(s)
Amazonbot, Bing, Crawl, PetalBot, WordPress/, bot, owler

Latest Threads
KC868-A16 rev. 1.6 firmwa...
Forum: "KCS" v2 firmware system
Last Post: jollyroger
2 hours ago
» Replies: 2
» Views: 17
A32pro RGB led strip
Forum: DIY Project
Last Post: Nikola
3 hours ago
» Replies: 0
» Views: 6
KC868-M16v2 configure yam...
Forum: KC868-M16 / M1 / MB / M30
Last Post: athxp
4 hours ago
» Replies: 43
» Views: 5,304
ESP32S3 Chip efuse check ...
Forum: "KCS" v3 firmware
Last Post: saymyname
6 hours ago
» Replies: 2
» Views: 8
KC868-A16 analog input
Forum: KC868-A series and Uair Smart Controller
Last Post: elemarek
7 hours ago
» Replies: 0
» Views: 32
BM16 Problems
Forum: B16M
Last Post: admin
Today, 08:25 AM
» Replies: 1
» Views: 7
KC868-A inputs pulses
Forum: KC868-A series and Uair Smart Controller
Last Post: admin
Yesterday, 10:15 AM
» Replies: 9
» Views: 61
How to properly do factor...
Forum: KC868-A16
Last Post: thomasfrank
Yesterday, 08:51 AM
» Replies: 5
» Views: 506
Free sample request A. fr...
Forum: Apply for free sample product
Last Post: perabanj
03-30-2025, 10:45 PM
» Replies: 0
» Views: 6
Dummy question: non-zero ...
Forum: T16M
Last Post: ocramius
03-30-2025, 01:20 PM
» Replies: 8
» Views: 107

  KC868-E16T added Tuya module and input toggle output yaml file for ESPHome
Posted by: admin - 03-18-2025, 10:05 AM - Forum: KC868-E16T - No Replies

Code:
esphome:
  name: e16t
  platformio_options:
    board_build.extra_flags:
      # WIFI_CONTROL_SELF_MODE = 0
      # WIFI_CONTROL_SELF_MODE = 1
      - "-DWIFI_CONTROL_SELF_MODE=0"

esp32:
  board: esp32dev
  framework:
    type: arduino

external_components:
  - source:
      type: git
      url: https://github.com/hzkincony/esphome-tuya-wifi-mcu
      ref: v1.1.0

uart:
  tx_pin: 33
  rx_pin: 14
  id: tuya_mcu_uart
  baud_rate: 9600

tuya_wifi_mcu:
  # tuya mcu product id
  product_id: tfj1dtlneyxp5uya
  uart_id: tuya_mcu_uart
  wifi_reset_pin: 5
  wifi_led_pin: 12

 
# Example configuration entry for ESP32
i2c:
  sda: 16
  scl: 15
  scan: true
  id: bus_a


# Example configuration entry
ethernet:
  type: LAN8720
  mdc_pin: GPIO23
  mdio_pin: GPIO18
  clk_mode: GPIO17_OUT
  phy_addr: 0

# Example configuration entry
pcf8574:
  - id: 'pcf8574_hub_out_1'  # for output channel 1-8
    address: 0x21

  - id: 'pcf8574_hub_out_2'  # for output channel 9-16
    address: 0x25

  - id: 'pcf8574_hub_in_1'  # for input channel 1-8
    address: 0x22

  - id: 'pcf8574_hub_in_2'  # for input channel 9-16
    address: 0x24

# Individual outputs
switch:
  - platform: gpio
    name: "e16t_output1"
    id: "e16t_output1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output1-tuya
    dp_id: 1
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output1"


  - platform: gpio
    name: "e16t_output2"
    id: "e16t_output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output2-tuya
    dp_id: 2
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output2"

  - platform: gpio
    name: "e16t_output3"
    id: "e16t_output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output3-tuya
    dp_id: 3
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output3"

  - platform: gpio
    name: "e16t_output4"
    id: "e16t_output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output4-tuya
    dp_id: 4
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output4"

  - platform: gpio
    name: "e16t_output5"
    id: "e16t_output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output5-tuya
    dp_id: 5
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output5"

  - platform: gpio
    name: "e16t_output6"
    id: "e16t_output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output6-tuya
    dp_id: 6
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output6"

  - platform: gpio
    name: "e16t_output7"
    id: "e16t_output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output7-tuya
    dp_id: 101
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output7"

  - platform: gpio
    name: "e16t_output8"
    id: "e16t_output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output8-tuya
    dp_id: 102
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output8"

  - platform: gpio
    name: "e16t_output9"
    id: "e16t_output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output9-tuya
    dp_id: 103
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output9"

  - platform: gpio
    name: "e16t_output10"
    id: "e16t_output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output10-tuya
    dp_id: 104
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output10"

  - platform: gpio
    name: "e16t_output11"
    id: "e16t_output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output11-tuya
    dp_id: 105
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output11"

  - platform: gpio
    name: "e16t_output12"
    id: "e16t_output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output12-tuya
    dp_id: 106
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output12"

  - platform: gpio
    name: "e16t_output13"
    id: "e16t_output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output13-tuya
    dp_id: 107
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output13"

  - platform: gpio
    name: "e16t_output14"
    id: "e16t_output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output14-tuya
    dp_id: 108
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output14"

  - platform: gpio
    name: "e16t_output15"
    id: "e16t_output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output15-tuya
    dp_id: 109
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output15"

  - platform: gpio
    name: "e16t_output16"
    id: "e16t_output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: tuya_wifi_mcu
    name: e16t-output16-tuya
    dp_id: 110
    # hide from homeassistant ui
    internal: true
    # bind other switch, sync state
    bind_switch_id: "e16t_output16"

binary_sensor:
  - platform: gpio
    name: "e16t-input1"
    id: "e16t_input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output1
  - platform: tuya_wifi_mcu
    name: e16t DI01 Tuya
    dp_id: 111
    bind_binary_sensor_id: e16t_input1
    internal: true

  - platform: gpio
    name: "e16t-input2"
    id: "e16t_input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output2     
  - platform: tuya_wifi_mcu
    name: e16t DI02 Tuya
    dp_id: 112
    bind_binary_sensor_id: e16t_input2
    internal: true

  - platform: gpio
    name: "e16t-input3"
    id: "e16t_input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output3
  - platform: tuya_wifi_mcu
    name: e16t DI03 Tuya
    dp_id: 113
    bind_binary_sensor_id: e16t_input3
    internal: true

  - platform: gpio
    name: "e16t-input4"
    id: "e16t_input4"
    on_press:
      then:
        - switch.toggle: e16t_output4
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
  - platform: tuya_wifi_mcu
    name: e16t DI04 Tuya
    dp_id: 114
    bind_binary_sensor_id: e16t_input4
    internal: true

  - platform: gpio
    name: "e16t-input5"
    id: "e16t_input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output5
  - platform: tuya_wifi_mcu
    name: e16t DI05 Tuya
    dp_id: 115
    bind_binary_sensor_id: e16t_input5
    internal: true

  - platform: gpio
    name: "e16t-input6"
    id: "e16t_input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output6
  - platform: tuya_wifi_mcu
    name: e16t DI06 Tuya
    dp_id: 116
    bind_binary_sensor_id: e16t_input6
    internal: true

  - platform: gpio
    name: "e16t-input7"
    id: "e16t_input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output7
  - platform: tuya_wifi_mcu
    name: e16t DI07 Tuya
    dp_id: 117
    bind_binary_sensor_id: e16t_input7
    internal: true

  - platform: gpio
    name: "e16t-input8"
    id: "e16t_input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output8
  - platform: tuya_wifi_mcu
    name: e16t DI08 Tuya
    dp_id: 118
    bind_binary_sensor_id: e16t_input8
    internal: true

  - platform: gpio
    name: "e16t-input9"
    id: "e16t_input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output9
  - platform: tuya_wifi_mcu
    name: e16t DI09 Tuya
    dp_id: 119
    bind_binary_sensor_id: e16t_input9
    internal: true

  - platform: gpio
    name: "e16t-input10"
    id: "e16t_input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output10
  - platform: tuya_wifi_mcu
    name: e16t DI10 Tuya
    dp_id: 120
    bind_binary_sensor_id: e16t_input10
    internal: true

  - platform: gpio
    name: "e16t-input11"
    id: "e16t_input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output11
  - platform: tuya_wifi_mcu
    name: e16t DI11 Tuya
    dp_id: 121
    bind_binary_sensor_id: e16t_input11
    internal: true

  - platform: gpio
    name: "e16t-input12"
    id: "e16t_input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output12
  - platform: tuya_wifi_mcu
    name: e16t DI12 Tuya
    dp_id: 122
    bind_binary_sensor_id: e16t_input12
    internal: true

  - platform: gpio
    name: "e16t-input13"
    id: "e16t_input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output13
  - platform: tuya_wifi_mcu
    name: e16t DI13 Tuya
    dp_id: 123
    bind_binary_sensor_id: e16t_input13
    internal: true

  - platform: gpio
    name: "e16t-input14"
    id: "e16t_input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output14
  - platform: tuya_wifi_mcu
    name: e16t DI14 Tuya
    dp_id: 124
    bind_binary_sensor_id: e16t_input14
    internal: true

  - platform: gpio
    name: "e16t-input15"
    id: "e16t_input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output15
  - platform: tuya_wifi_mcu
    name: e16t DI15 Tuya
    dp_id: 125
    bind_binary_sensor_id: e16t_input15
    internal: true

  - platform: gpio
    name: "e16t-input16"
    id: "e16t_input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true
    on_press:
      then:
        - switch.toggle: e16t_output16
  - platform: tuya_wifi_mcu
    name: e16t DI16 Tuya
    dp_id: 126
    bind_binary_sensor_id: e16t_input16
    internal: true

# Enable logging
logger:

# Enable Home Assistant API
api:
firmware BIN file download:

.zip   e16t.factory_tuya.zip (Size: 372.83 KB / Downloads: 30)

Print this item

  Presence Sensor Remote Control User Manual
Posted by: admin - 03-18-2025, 12:39 AM - Forum: Extender module - No Replies

Presence Sensor Remote Control User Manual PDF

.pdf   Presence-Sensor-Remote-Control-User-Manual.pdf (Size: 558.23 KB / Downloads: 33)

Print this item

  KC868-AIO question
Posted by: pallermo - 03-17-2025, 11:12 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Hello to all,
I have one question regarding this device or any other with RS485 interface.
Can I control some device with rs485 or to receive some commands or information from another device? I want to be able to control heat pump (it has rs485) and my power generator (modbus). Also, my ATS (automatic transfer switch) has modbus option. I want to be able to do some controlling from KC868 devices to mentioned devices, receive some status etc...
Like for power generator - load, temperature, fuel etc...For heat pump, there are many things to receive or to control it. Remotely I can start heat pump with RS485. Is he able to send commands to any of mentioned devices with commands and also to receive feedback from devices to know the status of it?
With heat pump, remote controllers (in the room) are sending info about temps in the rooms to main outdoor device. Main device can provide those temps to KC868 via RS485 but the question is - how to program it to be able to read those messages and display temperatures inside the rooms. Is this possible at all?

Also, what is the proper way for expanding number of i/o for this device? How it can be achieved? thanks

Print this item

  Using SPI connectors labeled for nRF24L01/LoRA on KC868-A6v3
Posted by: dereknet - 03-17-2025, 06:32 PM - Forum: Development - Replies (1)

Can the SPI connectors labeled for nRF24L01 and LoRA on the KC868-A6v3 board be safely used to connect other SPI-based modules, such as a CC1101 RF433 transceiver? 

Are there any limitations or conflicts with other board functions when using these SPI connectors (e.g. relays)?

Print this item

  A32PRO - multiple 1-wire
Posted by: RichieNa - 03-17-2025, 02:49 PM - Forum: KC868-A32/A32 Pro - Replies (1)

Hello,
I use A32PRO with software version v3.4.0 only via KCS web page and then to Loxone. I also bought several DS18B20 sensors with A32PRO, but only later I found out that I can only connect 1+1 piece to W1 and W2. I found a few posts here that solve this via ESP HOME, but I never used them.. How to get support for multiple sensors at once into an already running A32PRO without disrupting my existing settings? Or how can I make a backup of my program in A32PRO, in case something gets disrupted.
Sorry for the noob question, but I have never worked with ESP HOME and I am afraid that I will ruin the existing installation, on which part of my house is already running.

I found these threads here on the forum:
https://www.kincony.com/forum/showthread.php?tid=2290
https://www.kincony.com/forum/showthread...ht=DS18B20
https://www.kincony.com/forum/showthread...ight=1wire
Can I use one of them to get support for multiple DS18B20 sensors into the KCS firmware and subsequently into Loxone?

Thank you

Print this item

  KC868-A6-V3
Posted by: yuchris - 03-17-2025, 02:42 PM - Forum: "KCS" v3 firmware - Replies (5)

I follow the website to download v3 firmware. 
Download success, then i power cycle it.
but it didnt boot...i have LCD panel.

please share how to complete firmware loading procedure

Print this item

  DHT22 and SCD40 Sensors
Posted by: esskay - 03-17-2025, 01:48 PM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

Greetings, Please advise as to what pins to use for a DHT22 Temp/Humidity sensor as well as an SCD40 Temp/Humidity/CO2 sensor.

Appreciated.



Attached Files Thumbnail(s)
   
Print this item

  SD-Card in KC868-A16v3
Posted by: classiccars - 03-17-2025, 11:13 AM - Forum: KC868-A series and Uair Smart Controller - Replies (3)

I find no infos how the SD card works.
Is it just to safe log files?
To read the log files I must remove the card or is there any other way to access the datas?

Print this item

  New House Smart distribution box
Posted by: Erazer - 03-16-2025, 06:12 PM - Forum: DIY Project - Replies (12)

Hello,

I am building a new house and will like to create a smart system for all the lights and wall plugs in the house that includes many ESP32 sensors (humidity, temperature, magnetic, movement etc...) that could be used by home assistant in automation.
Also I am in a budget since there are many expanses with the new house and I will like to see if I can use the following setup:
1. Two KC868-A16v3 ESP32-S3 16 channel GPIO module that comunicate between eachother.
2. Each board will be used to controll a KC868-E16v2 relay board or a contactor. (Not sure which one will be the better option)
3. One board will be use for lights and the other board will be used for wall power outlets.
4  Also LEDs will be used in the house that need to be able to dim if needed.
5. I would like for the light switches to work also without HA but also to have a backup plan to make them work. (Ex to connect them also teleruptor so that it will work even if the A16 or A32 boards will be turned off or burned.)
6. Could perhaps A32 board be a better option for controlling the lights?


Can you please confirm if the board mentioned above are the correct ones or maybe could you please suggest a better architecture that I could use to design the the electrical grid of the house?

Really appreciate of help on this matter,
Erazer

Print this item

  Voltage in Analag Input for trigger? KC868-A16v3
Posted by: classiccars - 03-16-2025, 11:45 AM - Forum: KC868-A series and Uair Smart Controller - Replies (5)

Hi,
I try to use an analog input to trigger an output by IFTTT.
Doesnt work, I tryd all kinds of settings.
Monitor shows input when I put 3,3 Volts on analog input but I can not manage to get an output triggered

What do I wrong?
My goal is to get more than 16 inputs using the analog inputs for a switched voltage.



Attached Files Thumbnail(s)
   
Print this item