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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,938
» Latest member: pxavierg90
» Forum threads: 3,932
» Forum posts: 19,970

Full Statistics

Online Users
There are currently 16 online users.
» 0 Member(s) | 5 Guest(s)
Amazonbot, Bing, Semrush, bot

Latest Threads
N60 Sensor channel label
Forum: N60
Last Post: marekd1
9 hours ago
» Replies: 10
» Views: 115
F32 Smart Controller Wiri...
Forum: F32
Last Post: admin
Today, 07:54 AM
» Replies: 0
» Views: 6
F32 Smart Controller ESP3...
Forum: F32
Last Post: admin
Today, 07:54 AM
» Replies: 0
» Views: 6
F24 Smart Controller Wiri...
Forum: F24
Last Post: admin
Today, 07:50 AM
» Replies: 0
» Views: 8
F24 Smart Controller ESP3...
Forum: F24
Last Post: admin
Today, 07:50 AM
» Replies: 0
» Views: 6
F16 Smart Controller Wiri...
Forum: F16
Last Post: admin
Today, 07:46 AM
» Replies: 0
» Views: 5
F16 Smart Controller ESP3...
Forum: F16
Last Post: admin
Today, 07:46 AM
» Replies: 0
» Views: 6
F8 Smart Controller Wirin...
Forum: F8
Last Post: admin
Today, 07:42 AM
» Replies: 0
» Views: 6
F8 Smart Controller ESP32...
Forum: F8
Last Post: admin
Today, 07:41 AM
» Replies: 0
» Views: 5
F4 Smart Controller Wirin...
Forum: F4
Last Post: admin
Today, 07:37 AM
» Replies: 0
» Views: 10

  "KCS" v3.2.0 firmware for B16M controller
Posted by: admin - 11-26-2024, 11:24 PM - Forum: "KCS" v2 firmware system - No Replies

v3.2.0 improvement:
1. supports displaying user-defined ranges and units for analog input ports in home assistant.
   
   

.zip   KCS_B16M_V3.2.0.zip (Size: 1.01 MB / Downloads: 532)

Print this item

  kcs firmware system source code
Posted by: davidbvega - 11-26-2024, 11:25 AM - Forum: Development - Replies (1)

Good morning!

I wanted to know if you have available the firmware source code that you provide for the KC868-A8-V1.6 board.

I want to extend functionalities needed for my project, but if it is possible, starting from your base.

Best regards!

Print this item

  A24 work with K-Type Thermocouple by web service
Posted by: admin - 11-26-2024, 01:36 AM - Forum: KinCony A24 - No Replies

   
   
   
yaml code:

Code:
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

web_server:
  port: 80

Print this item

  "KCS" v3.0.4 firmware for A32 Pro controller
Posted by: admin - 11-25-2024, 11:49 AM - Forum: "KCS" v2 firmware system - No Replies

v3.0.4 improvement:
1. Fix the problem that after power off can't remember the relay state.

.zip   KCS_A32PRO_V3.0.4.zip (Size: 999.72 KB / Downloads: 573)

Print this item

  Read 12V battery charge
Posted by: darsh - 11-25-2024, 11:03 AM - Forum: KC868-A6 - Replies (7)

Hello,
I am powering the board with a solar panel connected to a charge controller and a 12V battery. I have installed the ESPHome system on the board connected to Home Assistant, and it is working perfectly.

I would like to read the battery charge level using the analog sensor A1, but I know that this sensor reads a maximum of 5V, so the 12V from the battery (13V when fully charged) needs to be reduced. For this, I tried using a voltage divider circuit with two resistors, one 200KOhm and one 100KOhm. I connected the GND and A1 terminals of the analog sensors across the 100KOhm resistor, with the GND terminal going to the negative terminal of the battery.

+12V (Battery)
      |
      |
    [R1]  200kOhm
      |
      +------ A1
      |
    [R2]  100kOhm
      |
      |
    GND (Battery -)

The configuration in ESPHome is:

Code:
sensor:
  - platform: adc
    pin: 36
    name: 'Battery Charge - Voltage'
    id: battery_charge_voltage
    accuracy_decimals: 5
    device_class: "voltage"
    state_class: "measurement"
    unit_of_measurement: "V"
    update_interval: 5s
    filters:
    - multiply: 24.6

This configuration gives me readings of values below 0, which I had to multiply by 24.6 to get battery voltage values close to what I read using a voltmeter connected to the battery terminals.

Additionally, the values read are not stable, while the voltmeter provides a rather stable value.

Can you tell me if I am making any mistakes in the configuration or in the circuit? Is there a simpler way to perform this reading?

Thank you.

Darsh

Print this item

  M16 Incorrect current reading
Posted by: salvolivigni - 11-23-2024, 05:06 PM - Forum: KC868-M16 / M1 / MB / M30 - Replies (1)

Hi Admin, I recently purchased the M16 and 13 SCT013 board, I configured everything with esphome, so far everything is ok. But when I go to read the values of the specific probes, comparing them for example with a PZEM 0-16, I have values in watts very far from the real absorption, I also did a comparison with a clamp meter, and unfortunately the M16 probes all read values much higher than reality. For the voltage I solved it by modifying the file #define SENSITIVITY 525.0f, and now the voltage is correct, but unfortunately for the wattage I can't find a solution, can you help me?

Print this item

  HC868-AK firmware update
Posted by: leliodm - 11-23-2024, 03:25 PM - Forum: KC868-HxB series Smart Controller - Replies (6)

Hello,
can you please point me to a step by step guide on how to update the AK firmware to the latest version?
regards

Print this item

  Wired Water Leak Sensor on modul A16
Posted by: Brouk - 11-23-2024, 11:33 AM - Forum: KC868-A16 - Replies (1)

dear admin,

I would like to connect the "Wired Water Leak Sensor" https://shop.kincony.com/products/wired-...282c&_ss=r to the KC868-A16 module and read the flood value in HomeAssistant in ESPHome.

> could you please publish the wiring diagram for the "Wired Water Leak Sensor" connection to A16?
> the sensor is connected to a digital input and is thus used as an active input in ESPHome?

regards



Attached Files Image(s)
   
Print this item

  KC868-A8 board esphome + Tuya + Mqtt
Posted by: gnetinternet@gmail.com - 11-23-2024, 05:22 AM - Forum: KC868-A8 - Replies (1)

I would like to use mqtt + Tuya controlling via homeassistent, however, this is a challenge for me. My board is kc-868-A8. Thank you for your attention.



Attached Files
.txt   Tuya + esphome testes mqqt.txt (Size: 9.86 KB / Downloads: 383)
Print this item

  How use SIM800 on KC868-A2
Posted by: Mihanic - 11-22-2024, 05:59 PM - Forum: KC868-A2 - Replies (1)

I have a SIM800 modem. How can I transfer data via GPRS to my home assistant server (for example MQTT) or the Tuya cloud if I do not have an Ethernet and WiFi connection.
I use firmware 2.2.7 - there you can only SIM7600

Print this item