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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9,666
» Latest member: hi88red
» Forum threads: 4,195
» Forum posts: 20,848

Full Statistics

Online Users
There are currently 28 online users.
» 0 Member(s) | 16 Guest(s)
Amazonbot, Baidu, Bing, Bytespider, Crawl, bot

Latest Threads
N60 configure yaml for ES...
Forum: N60
Last Post: admin
Today, 01:42 AM
» Replies: 7
» Views: 1,886
KCS VERSUS ESPHOME
Forum: "KCS" v3 firmware
Last Post: EDVALDO DE MARINGA
Yesterday, 01:31 PM
» Replies: 2
» Views: 40
KC868-AGv3
Forum: Getting Started with ESPHome and Home Assistant
Last Post: admin
08-20-2026, 10:18 PM
» Replies: 5
» Views: 102
[arduino code examples fo...
Forum: KC868-A32/A32 Pro
Last Post: huanmarie
08-19-2026, 07:09 AM
» Replies: 2
» Views: 1,603
KC868-H32B V5.08 firmware
Forum: News
Last Post: meoowu77
08-18-2026, 11:46 AM
» Replies: 24
» Views: 8,457
KinCony B2 Smart Controll...
Forum: News
Last Post: admin
08-17-2026, 01:07 PM
» Replies: 0
» Views: 58
KC868-A8v3 PCB layout CAD...
Forum: Schematic & diagram & Dimensions of KinCony PCB layout CAD file
Last Post: admin
08-17-2026, 08:44 AM
» Replies: 0
» Views: 68
CT Clamp Compatibility
Forum: KC868-M16 / M1 / MB / M30
Last Post: admin
08-16-2026, 11:08 PM
» Replies: 12
» Views: 2,152
N60 Sensor channel label
Forum: N60
Last Post: marekd1
08-14-2026, 09:14 PM
» Replies: 18
» Views: 2,529
solar production and cons...
Forum: N30
Last Post: admin
08-14-2026, 01:46 AM
» Replies: 3
» Views: 150

  KinCony MB ESP32 Battery Monitor board configure yaml for ESPhome
Posted by: admin - 12-21-2023, 02:26 AM - Forum: KC868-M16 / M1 / MB / M30 - Replies (2)

   

.txt   MB_HA_INA226.txt (Size: 11.36 KB / Downloads: 695)
esphome:
  name: mb
  platform: ESP32
  board: esp32dev

# Example configuration entry
i2c:
  - id: bus_a
    sda: 15
    scl: 4
    scan: true
    frequency: 400kHz
  - id: bus_b
    sda: 5
    scl: 16
    scan: true
    frequency: 400kHz

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

sensor:
  - platform: ina226
    address: 0x40
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-1"
      id: current_1
    power:
      name: "INA226 Power-1"
    bus_voltage:
      name: "INA226 Bus Voltage-1"
      id: voltage_1
    shunt_voltage:
      name: "INA226 Shunt Voltage-1"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x41
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-2"
      id: current_2
    power:
      name: "INA226 Power-2"
    bus_voltage:
      name: "INA226 Bus Voltage-2"
      id: voltage_2
    shunt_voltage:
      name: "INA226 Shunt Voltage-2"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x42
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-3"
      id: current_3
    power:
      name: "INA226 Power-3"
    bus_voltage:
      name: "INA226 Bus Voltage-3"
      id: voltage_3
    shunt_voltage:
      name: "INA226 Shunt Voltage-3"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x43
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-4"
      id: current_4
    power:
      name: "INA226 Power-4"
    bus_voltage:
      name: "INA226 Bus Voltage-4"
      id: voltage_4
    shunt_voltage:
      name: "INA226 Shunt Voltage-4"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x44
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-5"
      id: current_5
    power:
      name: "INA226 Power-5"
    bus_voltage:
      name: "INA226 Bus Voltage-5"
      id: voltage_5
    shunt_voltage:
      name: "INA226 Shunt Voltage-5"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x45
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-6"
      id: current_6
    power:
      name: "INA226 Power-6"
    bus_voltage:
      name: "INA226 Bus Voltage-6"
      id: voltage_6
    shunt_voltage:
      name: "INA226 Shunt Voltage-6"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x46
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-7"
      id: current_7
    power:
      name: "INA226 Power-7"
    bus_voltage:
      name: "INA226 Bus Voltage-7"
      id: voltage_7
    shunt_voltage:
      name: "INA226 Shunt Voltage-7"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x47
    i2c_id: bus_a
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-8"
      id: current_8
    power:
      name: "INA226 Power-8"
    bus_voltage:
      name: "INA226 Bus Voltage-8"
      id: voltage_8
    shunt_voltage:
      name: "INA226 Shunt Voltage-8"
    max_current: 15A
    update_interval: 5s


  - platform: ina226
    address: 0x40
    i2c_id: bus_b
    shunt_resistance: 0.1 ohm
    current:
      name: "INA226 Current-9"
      id: current_9
    power:
      name: "INA226 Power-9"
    bus_voltage:
      name: "INA226 Bus Voltage-9"
      id: voltage_9
    shunt_voltage:
      name: "INA226 Shunt Voltage-9"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x41
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-10"
      id: current_10
    power:
      name: "INA226 Power-10"
    bus_voltage:
      name: "INA226 Bus Voltage-10"
      id: voltage_10
    shunt_voltage:
      name: "INA226 Shunt Voltage-10"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x42
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-11"
      id: current_11
    power:
      name: "INA226 Power-11"
    bus_voltage:
      name: "INA226 Bus Voltage-11"
      id: voltage_11
    shunt_voltage:
      name: "INA226 Shunt Voltage-11"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x43
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-12"
      id: current_12
    power:
      name: "INA226 Power-12"
    bus_voltage:
      name: "INA226 Bus Voltage-12"
      id: voltage_12
    shunt_voltage:
      name: "INA226 Shunt Voltage-12"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x44
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-13"
      id: current_13
    power:
      name: "INA226 Power-13"
    bus_voltage:
      name: "INA226 Bus Voltage-13"
      id: voltage_13
    shunt_voltage:
      name: "INA226 Shunt Voltage-13"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x45
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-14"
      id: current_14
    power:
      name: "INA226 Power-14"
    bus_voltage:
      name: "INA226 Bus Voltage-14"
      id: voltage_14
    shunt_voltage:
      name: "INA226 Shunt Voltage-14"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x46
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-15"
      id: current_15
    power:
      name: "INA226 Power-15"
    bus_voltage:
      name: "INA226 Bus Voltage-15"
      id: voltage_15
    shunt_voltage:
      name: "INA226 Shunt Voltage-15"
    max_current: 15A
    update_interval: 5s

  - platform: ina226
    address: 0x47
    i2c_id: bus_b
    shunt_resistance: 0.01 ohm
    current:
      name: "INA226 Current-16"
      id: current_16
    power:
      name: "INA226 Power-16"
    bus_voltage:
      name: "INA226 Bus Voltage-16"
      id: voltage_16
    shunt_voltage:
      name: "INA226 Shunt Voltage-16"
    max_current: 15A
    update_interval: 5s

font:
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

display:
  - platform: ssd1306_i2c
    i2c_id: bus_a
    model: "SSD1306 128x64"
    address: 0x3C
    lambda: |-
      it.printf(0, 0, id(roboto), "Monitor");
      it.printf(0, 20, id(roboto), "V1: %.1fV", id(voltage_1).state);
      it.printf(0, 40, id(roboto), "A1: %.1fA", id(current_1).state);

# Enable logging
logger:

# Enable Home Assistant API
api:

#external_components:
#  - source:
#      type: git
#      url: https://github.com/hzkincony/esphome-universal-tcp
#      ref: v1.0.0

#universal_tcp:
#  id: universal_tcp1
#  local_port: 8888 # esp32 will listen on this port

#interval:
#  - interval: 5s
#    then:
#      - lambda: !lambda |-
#          auto current = value_accuracy_to_string(id(current_1).state, 2);
#          auto voltage = value_accuracy_to_string(id(voltage_1).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,1," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_2).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_2).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,2," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_3).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_3).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,3," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_4).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_4).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,4," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_5).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,5," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_6).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_6).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,6," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_7).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_7).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,7," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_8).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_8).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,8," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_9).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_9).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,9," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_10).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_10).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,10," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_11).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,11," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_12).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_12).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,12," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_13).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_13).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,13," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_14).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_14).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,14," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_15).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_15).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,15," + current + "," + voltage + ",OK");
#          delay(28);
#          current = value_accuracy_to_string(id(current_16).state, 2);
#          voltage = value_accuracy_to_string(id(voltage_16).state, 2);
#          id(universal_tcp1).send_string_data("RELAY-GET_energy-255,16," + current + "," + voltage + ",OK");

Print this item

  KinCony MB ESP32 Battery Monitor PCB I/O pin define
Posted by: admin - 12-21-2023, 02:22 AM - Forum: KC868-M16 / M1 / MB / M30 - No Replies

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

IIC BUS-a: (U7-U14, SSD1306 display)
SDA-1:15
SCL-1:4

i2c address of chips:
U7:0x40
U8:0x41
U9:0x42
U10:0x43
U11:0x44
U12:0x45
U13:0x46
U14:0x47
SSD1306: 0x3c

----------------------------------
IIC BUS-b: (U15-U22)
SDA-1:5
SCL-1:16

i2c address of chips:
U15:0x40
U16:0x41
U17:0x42
U18:0x43
U19:0x44
U20:0x45
U21:0x46
U22:0x47

----------------------------------
RS485:
RXD: 32
TXD: 33

4G:
RXD:14
TXD:13

Print this item

  KC868-A16 dead?
Posted by: stanchiam - 12-20-2023, 03:27 AM - Forum: "KCS" v2 firmware system - Replies (4)

Was using the kcs AP to connect and update the settings, suddenly it just cannot communicate, no response.
Tried pressing the download button on the a16 for more than 10 seconds to factory reset but still no response.

I try using esptool to dump/flash but will not be able to communicate with it
Also try using esphome also same.

Not sure what happened, other a16 working fine so not cable issue.

   
   

It will just keep on showing dots
   

Print this item

  Momentary Switch
Posted by: anwar.sleem@gmail.com - 12-19-2023, 04:57 AM - Forum: KC868-HxB series Smart Controller - Replies (3)

I am looking for controlling two channel relays where it moves from NO to Closed and returns back to NO after 1 second. Which model is recommended and which protocol it supports?

Print this item

  esp32 K-Type thermocouple 24CH relay module – A24 released
Posted by: admin - 12-18-2023, 11:43 AM - Forum: News - No Replies

KinCony A24 esp32 board based on ESP32 wifi chip, it have manual control switch buttons can turn ON/OFF relay even if system is broken. Support 3CH K-Type thermocouple use by MAX31855 chip. It support GSM module for SMS, voice call, GPRS communication for Tuya mobile application. Use SMS or call to turn ON/OFF relay will be very easy for home automation DIY. You can write any code by Arduino IDE to ESP32 wifi/bluetooth/ethernet RS485 module. We will supply demo code for different samples. Everyone can modify and change the code for your own smart home automation system project. it support use by ESPHome for home assistant or tasmota firmware for smart home automation DIY.
 
[Image: A24-1_01.jpg]
[Image: A24-1_02.jpg]
[Image: A24-1_03.jpg]
[Image: A24-1_04.jpg]
[Image: A24-1_05.jpg]
[Image: A24-1_06.jpg]

Print this item

  A24 configure yaml for ESPhome
Posted by: admin - 12-18-2023, 11:30 AM - Forum: KinCony A24 - Replies (29)

   

esphome:
  name: a24
  platform: ESP32
  board: esp32dev


# Enable logging
logger:

# Enable Home Assistant API
api:


# Example configuration entry
i2c:
  - id: bus_a
    sda: 16
    scl: 5
    scan: true
    frequency: 400kHz
   

# 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-12 CS1-CS3
    i2c_id: bus_a
    address: 0x21
    pcf8575: true

  - id: 'pcf8574_hub_out_2'  # for output channel 13-24
    i2c_id: bus_a
    address: 0x22
    pcf8575: true

  - id: 'pcf8574_hub_in_1'  # for input channel 1-16
    i2c_id: bus_a
    address: 0x24
    pcf8575: true

  - id: 'pcf8574_hub_in_2'  # for a24--input channel 17-32
    i2c_id: bus_a
    address: 0x25
    pcf8575: true
   
# Individual outputs
switch:
  - platform: gpio
    name: "a24--light1"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a24--light5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true


  - platform: gpio
    name: "a24--light9"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light10"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light11"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light12"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 11
      mode: OUTPUT
      inverted: true



  - platform: gpio
    name: "a24--light13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
     
  - platform: gpio
    name: "a24--light17"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light18"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light19"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light20"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a24--light21"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 8
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light22"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 9
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light23"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 10
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a24--light24"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 11
      mode: OUTPUT
      inverted: true     



# Individual inputs
binary_sensor:
  - platform: gpio
    name: "a24--input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input2"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input3"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input4"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a24--input5"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input6"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input7"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input8"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 7
      mode: INPUT
      inverted: true


  - platform: gpio
    name: "a24--input9"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 8
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input10"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 9
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input11"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 10
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input12"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 11
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a24--input13"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 12
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input14"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 13
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input15"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 14
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input16"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 15
      mode: INPUT
      inverted: true
     
     
  - platform: gpio
    name: "a24--input17"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input18"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input19"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input20"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true
     
  - platform: gpio
    name: "a24--input21"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input22"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input23"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a24--input24"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

sensor:
  - platform: adc
    pin: 35
    name: "A24 A1 Voltage"
    update_interval: 10s
    attenuation: 11db
    filters:
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 34
    name: "A24 A2 Voltage"
    update_interval: 10s
    attenuation: 11db
    filters:
      # - multiply: 1.51515
      - lambda:
          if (x >= 3.11) {
            return x * 1.60256;
          } else if (x <= 0.15) {
            return 0;
          } else {
            return x * 1.51;
          }
  - platform: adc
    pin: 39
    name: "A24 A3 Current"
    update_interval: 10s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666
  - platform: adc
    pin: 36
    name: "A24 A4 Current"
    update_interval: 10s
    unit_of_measurement: mA
    attenuation: 11db
    filters:
      - multiply: 6.66666666

  - platform: max31855
    name: "K-Type Thermocouple-1"
    cs_pin:
      pcf8574: pcf8574_hub_out_1
      number: 13
      mode: OUTPUT
      inverted: false
    update_interval: 5s

  - platform: max31855
    name: "K-Type Thermocouple-2"
    cs_pin:
      pcf8574: pcf8574_hub_out_1
      number: 14
      mode: OUTPUT
      inverted: false
    update_interval: 5s

  - platform: max31855
    name: "K-Type Thermocouple-3"
    cs_pin:
      pcf8574: pcf8574_hub_out_1
      number: 15
      mode: OUTPUT
      inverted: false
    update_interval: 5s

spi:
  - id: spi_bus0
    clk_pin: 14
    miso_pin: 12

gp8403:
  id: my_gp8403
  voltage: 10V

output:
  - platform: gp8403
    id: gp8403_output_1
    gp8403_id: my_gp8403
    channel: 0
  - platform: gp8403
    id: gp8403_output_2
    gp8403_id: my_gp8403
    channel: 1

light:
  - platform: monochromatic
    name: "A24-DAC-1"
    output: gp8403_output_1
  - platform: monochromatic
    name: "A24-DAC-2"
    output: gp8403_output_2


.txt   A24-ESPHome.txt (Size: 10.11 KB / Downloads: 631)

Print this item

  A24 ESP32 I/O pin define
Posted by: admin - 12-18-2023, 11:28 AM - Forum: KinCony A24 - No Replies

#define ANALOG_A1  GPIO35
#define ANALOG_A2  GPIO34
#define ANALOG_A3  GPIO39
#define ANALOG_A4  GPIO36

IIC Bus-1:A

SDA-A:GPIO16
SCL-A:GPIO5

PCF8575:U15 (relay1-12): i2c address:0x21

PCF8575->U15->P0 (relay 1)
PCF8575->U15->P1 (relay 2)
PCF8575->U15->P2 (relay 3)
PCF8575->U15->P3 (relay 4)
PCF8575->U15->P4 (relay 5)
PCF8575->U15->P5 (relay 6)
PCF8575->U15->P6 (relay 7)
PCF8575->U15->P7 (relay 8)
PCF8575->U15->P10 (relay 9)
PCF8575->U15->P11 (relay 10)
PCF8575->U15->P12 (relay 11)
PCF8575->U15->P13 (relay 12)
PCF8575->U15->P15 (CS1 of MAX31855)
PCF8575->U15->P16 (CS2 of MAX31855)
PCF8575->U15->P17 (CS3 of MAX31855)

PCF8575:U27 (relay13-24): i2c address:0x22

PCF8575->U27->P0 (relay 13)
PCF8575->U27->P1 (relay 14)
PCF8575->U27->P2 (relay 15)
PCF8575->U27->P3 (relay 16)
PCF8575->U27->P4 (relay 17)
PCF8575->U27->P5 (relay 18)
PCF8575->U27->P6 (relay 19)
PCF8575->U27->P7 (relay 20)
PCF8575->U27->P10 (relay 21)
PCF8575->U27->P11 (relay 22)
PCF8575->U27->P12 (relay 23)
PCF8575->U27->P13 (relay 24)

PCF8575:U16 (input1-16): i2c address:0x24

PCF8575->U16->P0 (input 1)
PCF8575->U16->P1 (input 2)
PCF8575->U16->P2 (input 3)
PCF8575->U16->P3 (input 4)
PCF8575->U16->P4 (input 5)
PCF8575->U16->P5 (input 6)
PCF8575->U16->P6 (input 7)
PCF8575->U16->P7 (input 8)
PCF8575->U16->P10 (input 9)
PCF8575->U16->P11 (input 10)
PCF8575->U16->P12 (input 11)
PCF8575->U16->P13 (input 12)
PCF8575->U16->P14 (input 13)
PCF8575->U16->P15 (input 14)
PCF8575->U16->P16 (input 15)
PCF8575->U16->P17 (input 16)


PCF8575:U28 (input17-32): i2c address:0x25

PCF8575->U28->P0 (input 17)
PCF8575->U28->P1 (input 18)
PCF8575->U28->P2 (input 19)
PCF8575->U28->P3 (input 20)
PCF8575->U28->P4 (input 21)
PCF8575->U28->P5 (input 22)
PCF8575->U28->P6 (input 23)
PCF8575->U28->P7 (input 24)
PCF8575->U28->P10 (input 25)
PCF8575->U28->P11 (input 26)
PCF8575->U28->P12 (input 27)
PCF8575->U28->P13 (input 28)
PCF8575->U28->P14 (input 29)
PCF8575->U28->P15 (input 30)
PCF8575->U28->P16 (input 31)
PCF8575->U28->P17 (input 32)

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

1-wire: GPIO15

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

Ethernet (LAN8720) I/O define:

#define ETH_ADDR        0
#define ETH_POWER_PIN  -1
#define ETH_MDC_PIN    23
#define ETH_MDIO_PIN  18
#define ETH_TYPE      ETH_PHY_LAN8720
#define ETH_CLK_MODE  ETH_CLOCK_GPIO17_OUT

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

RS485:
RXD:GPIO32
TXD:GPIO33

4G module:
RXD:GPIO13
TXD:GPIO4

--------------------
SPI bus for MAX31855
SCK: GPIO14
MISO: GPIO12

-------------------
GP8403 DAC i2c address: 0x58

Print this item

  ESPHOME 2023.12.0b2 breaking change
Posted by: petez69 - 12-17-2023, 12:24 PM - Forum: Getting Started with ESPHome and Home Assistant - Replies (7)

Hi Kincony

There is a breaking change in ESPHOME in 2023.12.0b2 that causes the A8 etc yaml to fail the configuration test.

https://github.com/esphome/esphome/pull/5666

I dont have a test system, not sure if you need to add allow_other_uses: true to each pin or a global entry at the top.

If you could advise that would be good

Thankyou..Peter allow_other_uses: true

Print this item

  How use Serverboard IO from CM4
Posted by: Helmut_number_one - 12-17-2023, 11:47 AM - Forum: KC868-Server Raspberry Pi4 local server - Replies (5)

I'm new here and don't have a server from here yet, my question:
How do I communicate with the analog and digital inputs and outputs from Server Board to the CM4 System,
with Modbus TCP, UDP, MQTT or with firmware commands?
Example I want to read the analog input from the board to CM4 and assign a value to the analog output from board.
I can use MQTT, UDP, Modbus TCP or Http Get/Put.
I use it with PHP Server Script IP-Symcon Homeautomatic system
Best regards

Print this item

  KC868-D16 all tested light bulbs are flickering
Posted by: stansvec - 12-16-2023, 05:05 PM - Forum: KC868-HxB series Smart Controller - Replies (8)

Hi,
I purchased and had electricians install the KC868-D16 dimmer along with a PQSSR-10DV 0-10V / 10A SSR relay to control the dimming of 220V light bulbs. However, there's an issue: all the light bulbs tested in every circuit flicker at any brightness level except 100%. I've tested 10 different brands of light bulbs in total, including both normal and decorative incandescent and halogen bulbs, as well as one 20W LED. This is a significant problem for me, as I've already designed the lighting infrastructure in my new flat around the KC868-D16 dimmer, and this flickering issue was unexpected. I didn't find any mention of potential problems in the product description or manuals. Is there a way to resolve this issue please?

Details:
1. Dimmer: KC868-D16 16 CH Tuya Dimmer Controller WiFi+Ethernet+RS485 Switch Module (Kincony store)
2. SSR Relay: Voltage Type Regulating Solid-State Relay Regulator PQSSR-10DV 0-10V /10A (Kincony store)
3. Power adapter for dimmer: MW DIN Rail switch power supply DC12V 2A Max 24W For smart home automation distribution box DIY (Kincony store)

Attached pictures:
a) The power adapter
b) Tested light bulbs

Many thanks,

Stan

   

   

Print this item