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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 8,350
» Latest member: hinterland
» Forum threads: 3,641
» Forum posts: 18,802

Full Statistics

Online Users
There are currently 23 online users.
» 0 Member(s) | 12 Guest(s)
AhrefsBot, Amazonbot, Google, PetalBot, bot

Latest Threads
KC868-A16 - IP & PORT ?? ...
Forum: KC868-A16
Last Post: admin
Today, 02:46 AM
» Replies: 7
» Views: 702
Server 16 issues
Forum: KinCony Server-Mini / Server-16 Raspberry Pi4 relay module
Last Post: admin
Today, 02:44 AM
» Replies: 1
» Views: 9
N20 Problem with Home Ass...
Forum: N20
Last Post: admin
Yesterday, 06:55 AM
» Replies: 6
» Views: 47
N30 Energy entry not work...
Forum: N30
Last Post: admin
Yesterday, 06:50 AM
» Replies: 14
» Views: 166
Problems and general Feed...
Forum: N30
Last Post: admin
Yesterday, 06:49 AM
» Replies: 2
» Views: 24
kWh resolution
Forum: N30
Last Post: admin
Yesterday, 06:49 AM
» Replies: 2
» Views: 9
KCS_N60_N30_N20_N10_V3.18...
Forum: N60
Last Post: admin
Yesterday, 06:45 AM
» Replies: 0
» Views: 10
N60 N30 N20 N10 ARM CPU f...
Forum: N60
Last Post: admin
Yesterday, 06:20 AM
» Replies: 0
» Views: 11
N60/N30/N20/N10 PC softwa...
Forum: N60
Last Post: admin
Yesterday, 04:49 AM
» Replies: 2
» Views: 405
Goes Offline
Forum: KC868-E16S/E16P
Last Post: admin
Yesterday, 12:02 AM
» Replies: 3
» Views: 24

  how to use binary sensor send SMS by SIM7600E 4G module in ESPHome
Posted by: admin - 08-28-2024, 01:11 AM - Forum: Getting Started with ESPHome and Home Assistant - No Replies


the ESPHome yaml demo made for KinCony KC868-A8S relay board. Actually you can use for any KinCony SIM7600 relay board, just replace 4G module's TXD,RXD define.
   
   
   
here is ESPHome yaml demo:

Code:
esphome:
  name: a8s
  platform: ESP32
  board: esp32dev
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  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: 0x24

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

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

  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "curtain1-up"
    id: relay5
    interlock: [relay6]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
     
     
  - platform: gpio
    name: "curtain1-down"
    id: relay6
    interlock: [relay5]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
     

  - platform: gpio
    name: "curtain2-up"
    id: relay7
    interlock: [relay8]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

     
  - platform: gpio
    name: "curtain2-down"
    id: relay8
    interlock: [relay7]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

# UART configuration for SIM7600E
uart:
  id: uart_2
  tx_pin: GPIO13
  rx_pin: GPIO15
  baud_rate: 115200
  debug:
    direction: BOTH
    dummy_receiver: true
    after:
      timeout: 10ms
    sequence:
      - lambda: UARTDebug::log_string(direction, bytes);
     
binary_sensor:
  - platform: gpio
    name: "Call Button"
    on_press:
      then:
        - uart.write:
            id: uart_2
            data: "ATD15381188302;\r\n"  # Replace with the phone number you want to dial
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "Send SMS Button"
    on_press:
      then:
        - uart.write:
            id: uart_2
            data: "AT+CMGF=1\r\n"  # Set SMS to text mode
        - delay: 1s
        - uart.write:
            id: uart_2
            data: "AT+CMGS=\"15381188302\"\r\n"  # Replace with the recipient's phone number
        - delay: 1s
        - uart.write:
            id: uart_2
            data: "KinCony-SMS-Sensor\x1A"  # Send the message "KinCony-SMS-Sensor" and terminate with Ctrl+Z
    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: relay5
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

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

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

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


# Enable logging
logger:

# Enable Home Assistant API
api:

web_server:
  port: 80
download yaml file:

.txt   KC868-A8S-HA-INPUT-SIM7600-SMS.txt (Size: 4.45 KB / Downloads: 367)

Print this item

  how to use binary sensor make VOICE CALL by SIM7600E 4G module in ESPHome
Posted by: admin - 08-28-2024, 12:58 AM - Forum: Getting Started with ESPHome and Home Assistant - Replies (9)


the ESPHome yaml demo made for KinCony KC868-A8S relay board. Actually you can use for any KinCony SIM7600 relay board, just replace 4G module's TXD,RXD define.
   
   
here is ESPHome yaml demo:

Code:
esphome:
  name: a8s
  platform: ESP32
  board: esp32dev
 
# Example configuration entry for ESP32
i2c:
  sda: 4
  scl: 5
  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: 0x24

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

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

  - platform: gpio
    name: "light2"
    id: light2
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light3"
    id: light3
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "light4"
    id: light4
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "curtain1-up"
    id: relay5
    interlock: [relay6]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
     
     
  - platform: gpio
    name: "curtain1-down"
    id: relay6
    interlock: [relay5]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true
     

  - platform: gpio
    name: "curtain2-up"
    id: relay7
    interlock: [relay8]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true

     
  - platform: gpio
    name: "curtain2-down"
    id: relay8
    interlock: [relay7]
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode: OUTPUT
      inverted: true

# UART configuration for SIM7600E
uart:
  id: uart_2
  tx_pin: GPIO13
  rx_pin: GPIO15
  baud_rate: 115200
  debug:
    direction: BOTH
    dummy_receiver: true
    after:
      timeout: 10ms
    sequence:
      - lambda: UARTDebug::log_string(direction, bytes);
     
binary_sensor:
  - platform: gpio
    name: "Call Button"
    on_press:
      then:
        - uart.write:
            id: uart_2
            data: "ATD15381188302;\r\n"  # Replace with the phone number you want to dial
    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: relay5
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 4
      mode: INPUT
      inverted: true

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

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

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


# Enable logging
logger:

# Enable Home Assistant API
api:

web_server:
  port: 80
download yaml file:
.txt   KC868-A8S-HA-INPUT-SIM7600-CALL.txt (Size: 4.03 KB / Downloads: 346)

Print this item

  KC868-A32M Using GPIO from 4G module for SPI / P9813 board
Posted by: giliardi - 08-28-2024, 12:09 AM - Forum: KC868-A32M - Replies (5)

Hi,

I need to connect P9813 board, which uses serial interface, to A32M board.

Idea

I wondering if I could use the GPIO33 AND GPIO32, both from 4G A32M`s RX AND TX, to expose to SPI and configure Esphome like bellow:

spi:
  clk_pin: GPIO33
  mosi_pin: GPIO32
  id: spi_a32m

light:
  - platform: spi_led_strip
    name: "P9813 RGB LED"
    num_leds: 1
    default_transition_length: 1s
    spi_id: spi_a32m

Thanks in advance.

Print this item

  kc868-A8S v2 not working with SIM7600E
Posted by: t0urista - 08-27-2024, 04:17 PM - Forum: KC868-A8S - Replies (9)

HI

SIM7600E module plugged in kc868-A8S v2.0 , running KCS 2.2.2. 

  • cannot send message, 
  • cannot receive message (crash/reboot when message is received) 
  • cannot receive call
  • can only place test phone call

also : 
  • the SIM7600E module was successfuly tested with an usb-to-Serial converter and putty. --> the SIM7600 module works fine, can send/receive messages
  • I also tried Tasmota on the kc868, impossible to establish connection to the SIM7600 in serial bridge --> Issue with RX/TX GPIO13/GPIO15 ?
     

Board Model
KC868_A8S
Software Version
v2.2.2
Build Date
Dec 6 2023 22:18:36
Serial Number
08F9E08BCAD4
Board Time
2024-8-27 11:58:45
Time Zone
UTC+2
Lan IP
Lan Netmask
Lan Gateway
Lan MAC
08:F9:E0:8B:CABig Grin7
Wifi STA IP
192.168.0.21
Wifi MAC
08:F9:E0:8B:CABig Grin4


Tests :

Outgoing 
when issuing test;  I got this :

MAKE A CALL ;  OK, my Mobile phone is properly called.

log :   
Code:
I (121694) SIM7600: call +32xxxxxxxxx

SEND A MESSAGE,  ERROR (no message received on mobile phone)

Log :

Code:
I (689066) SIM7600: [1/1] 0011000B912374940999F500007A2654747A0E4ACF416110BD3CA783DAE5F93C7C2E83CCF2771BB41CE26CB84810377501
 

INCOMING

CALL : nothoing happens, no log

Print this item

  Presence sensor issue
Posted by: sebagarayco - 08-26-2024, 04:42 PM - Forum: DIY Project - Replies (1)

Hi, I bought Presence Sensor MTDx61 and after wiring it I always see Input turned ON.

Wiring is:
RED: 12v+
BLACK: 12v-
WHITE: 12v-
GREEN: INPUT 1

Is wiring OK? what's missing?

Print this item

  Help with KC868-H32L
Posted by: thomas9912 - 08-26-2024, 09:43 AM - Forum: Suggestions and feedback on KinCony's products - Replies (1)

Hello,
sorry, I urgently need help with an KC868-H32L, and I feel like a complete idiot  Huh

I have bought a H32L about 2 years ago, but never installed it. Now I want to make it run, best with Home Assistant, but I fail with even the MOST BASIC setup of the KC868. 

I am also aware that this device might not be supported anymore? It is hardly mentioned here in the forum and has no own thread?

This is what happens: I have connected the H32L to the LAN and the switch reports a 10/100Mb link.

When I start VirCOM the device does NOT show up in the list, but when I click DEVICE it magically appears with a DHCP address from my network. So network does work! "Virtual Server" and "Vircom Status" are both negative. Destination IP is set to some Chinese (?) server.

I can "Edit Device" and write back changes, but that's about it. Even after loading defaults, neither KC868-H32_PC.exe is working (I added the correct IP address and saw the matching ports 4196, but the .exe is never able to connect to the controller). The HTTP service of the device is not responding to any modern webbrowser. The App mentioned in the QRCODE leads to a links saying "wrong link".

So the device is there, but I can't do anything with it. Firmware is V1.598.

It seems, this device needs to be setup elsewhere or otherwise first, and the very thin documenation hints at setting it up with a Chinese account/server first, but even that is not possible.

I am stuck! Is this device junk now?

Best, Thomas



Attached Files Image(s)
   
Print this item

Smile I Need Help Kincony KC868-A8 Integration
Posted by: henryclark - 08-26-2024, 06:04 AM - Forum: Development - Replies (3)

Hello all,

I am working on a project that requires integrating Kincony's KC868-A8 relay controller into a custom automation system, and facing some challenges related to communication protocols, data handling, and device reliability;

  • Communication Protocols
  • Data Handling
  • Device Reliability
  • API/SDK Usage

I am eager to learn from the community's collective knowledge and experience. Any insights or suggestions would be greatly appreciated... Smile

Thanks in advance for my help....

Print this item

  "KCS" v2.2.2 firmware for MB DC Energy Meter
Posted by: admin - 08-26-2024, 12:58 AM - Forum: "KCS" v2 firmware system - No Replies

Here is "KCS" firmware for KinCony MB DC energy meter board.
Download fimrware by USB-C cable via ESP32 Download Tool.
firmware BIN file download: 
.zip   KCS_MB_V2.2.2.zip (Size: 737.34 KB / Downloads: 467)
ESP32 Download tool download link
[Image: attachment.php?aid=5854]   
[Image: attachment.php?aid=5855]
KCS firmware for MB
   
Monitor all channels for Current, Voltage, Power
   
   
setting for MQTT connect to your own private MQTT cloud server. 
   
Support use by Tuya mobile phone app for remote monitoring. Note: "Tuya" and "MQTT" can't enable at the same time.
   

Print this item

  KC868-Server Raspberry Pi4 local server
Posted by: fdcemb5 - 08-25-2024, 01:31 PM - Forum: KC868-Server Raspberry Pi4 local server - Replies (17)

my KC868-Server Raspberry Pi4 local server is no longer communicating with Home Assistant. You cannot toggle switches on and off while in Home Assistant. Home Assistant does not recognise all the ESP boards

Print this item

  "KCS" v2.4.6 firmware for M30 AC Energy Meter
Posted by: admin - 08-25-2024, 05:32 AM - Forum: "KCS" v2 firmware system - Replies (6)

Here is "KCS" firmware for KinCony M30 AC energy meter board.
Download fimrware by USB-C cable via ESP32 Download Tool.
firmware BIN file download: 
.zip   KCS_M30_V2.4.6.zip (Size: 735.42 KB / Downloads: 534)
ESP32 Download tool download link
   
   
KCS firmware for M30
   
Monitor all channels for Current, Voltage, Power, Energy, Frequency, chip Temperature
   
   
setting for MQTT-1 and MQTT-2. MQTT-1 connect to your own private MQTT cloud server. MQTT-2 use for home assistant MQTT broker. If you want to use Auto Discovery function, just enable it.
   
M30 can be auto discovery in home assistant.
   
all KinCony M30 entities use in home assistant directly.
   

Print this item