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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 10,568
» Latest member: schwarzenbergf
» Forum threads: 4,343
» Forum posts: 21,361

Full Statistics

Online Users
There are currently 65 online users.
» 0 Member(s) | 55 Guest(s)
Bytespider, Crawl, PetalBot, bot

Latest Threads
KC868-A8v3 ESPHome yaml f...
Forum: KC868-A8v3
Last Post: admin
7 hours ago
» Replies: 0
» Views: 16
[arduino code examples fo...
Forum: KC868-A8v3
Last Post: admin
7 hours ago
» Replies: 0
» Views: 9
[arduino code examples fo...
Forum: KC868-A8v3
Last Post: admin
7 hours ago
» Replies: 0
» Views: 8
N20 energy
Forum: N20
Last Post: admin
9 hours ago
» Replies: 3
» Views: 49
ds3231 added to esphome, ...
Forum: KC868-A16v3
Last Post: admin
Yesterday, 01:28 PM
» Replies: 1
» Views: 37
KCS debounce option for K...
Forum: KC868-A16
Last Post: admin
Yesterday, 01:24 PM
» Replies: 3
» Views: 79
HAv2 + ESPHome - Avoiding...
Forum: KC868-HA /HA v2
Last Post: admin
Yesterday, 05:03 AM
» Replies: 4
» Views: 118
Does KCS v3 on CO16 opera...
Forum: CO16
Last Post: admin
11-18-2026, 11:33 PM
» Replies: 1
» Views: 32
[arduino code examples fo...
Forum: F32
Last Post: admin
11-18-2026, 04:27 AM
» Replies: 0
» Views: 31
[arduino code examples fo...
Forum: F32
Last Post: admin
11-18-2026, 04:25 AM
» Replies: 0
» Views: 32

  A16 Digital Inputs
Posted by: plam09 - 12-28-2024, 10:21 PM - Forum: KC868-A16 - Replies (3)

I'm experimenting with Arduino IDE code (modbus server over TCP) with my A16 rev1.6 and I'm noticing something interesting.

The digital inputs do not latch to a value but constantly switch between 0 and the current value - 0 if they are grounded and 1 if they are not grounded.

Testing bench: I have inputs X01, X02 connected to the ground terminal - the rest are not connected to anything.
Those two inputs contansly stay at a value of 0 in the modbus coil. The rest however constantly hover between value of 0 and 1. I'm attaching a screenshot of a trend generated in the modbus simulator and the arduino code. I'm polling it at 100ms so 10 times a second so the graph is as real time as it gets.

What would be the cause of that? Polling time for the PCF8574 or just the I2C bus is switching between the 4 expanders and looses value while its talking to the rest?

Any tips are greatly appreciated!



Attached Files Thumbnail(s)
   

.txt   PCF.txt (Size: 5.11 KB / Downloads: 632)
Print this item

  AK KCS firmware - IFTTT multiple custom protocols to one input
Posted by: leliodm - 12-28-2024, 08:29 PM - Forum: "KCS" v2 firmware system - Replies (8)

Hi. I am on the latest KCS firmware on the AK. In the IFTTT menu I am trying to correspond an input to turn on several relays. 
For instance, input 33 to turn on relays 17,18,20,21,23,25,26,28,29,7,4 without changing the status of the other relays.

I tried to add several rules in the IFTTT but it seems that it 
1) only can use 6 (not a problem, I can have several commands), and 
2) if I put multiple rules in the IFTTT window for input 33 it only executes the first one. in the attached picture it only executes rule "Custom Protocol 20"


PS: it seems that if I put a delay of 1 second between one protocol and the next one it executes all of them. 

any solution for that ?
thanks


Also, can I get the link for the html protocol and serial protocol for the latest version of KCS?



Attached Files Thumbnail(s)
   
Print this item

  Firmware install too fast
Posted by: spentamanyu - 12-28-2024, 04:14 PM - Forum: KC868-A6 - Replies (7)

Hi!

I am new here and I am having some troubles.
my board is the KC868-A6-v1.3
the firmware I am trying to install is the KCS_KC868_A6_V2.2.8.bin
the flash tool version i s the 3.9.2

My problem is that it flashes it way too fast. In the youtube videos you can clearly see a progress bar and that it takes some time to upload the firmware.
Mine does not, it just go from START>SYNC>DOWNLOAD>FINISH  in two seconds. Meanwhile the background shell shows this


is stub and send flash finish
.
Uploading stub...
Running stub...
Stub running...
FLASH_CRYPT_CNT 0
ABS_DONE_0 False

is stub and send flash finish
  but no progressbar or uploaded byte info. How can I be sure that the version has been uploaded properly? Might it be the reason why I don't find any AP after reseting it?

thanks!



Attached Files Thumbnail(s)
   
Print this item

  RS485 ON A16
Posted by: tom_elec - 12-28-2024, 09:56 AM - Forum: KC868-A16 - Replies (4)

Hello everyone,

I recently bought a Kincony A16 card with the aim of making it work in RS485 with this Waveshare gateway :
https://www.amazon.fr/dp/B09LQMH2S1?ref=...title&th=1

I control this gateway from a Loxone Miniserver, however I can't really understand the Kincony Modbus register table :
https://kincony.com/forum/attachment.php?aid=2240

The loxone page for modbus communication :
https://www.loxone.com/frfr/kb/communication-modbus/

RS485 transmission is enabled in the A16 and gateway parameters.

I need the I/O address and the register type.

Could someone tell me the requests to send to enable / disable an output and get state of digital / analog input on A16 please ?

Thanks in advance for your help, Tom

Print this item

Question KC868 A16 mqtt temperature sensor - home assistant
Posted by: bonius - 12-27-2024, 07:21 PM - Forum: KC868-A16 - Replies (5)

My gear: KC868 A16, KCS
DS18B20 connected to chanel 1

I have one DS18B20 connected to chanel 1, and its working correct. I see that temperature is changing through kcs panel
    >
Unfortunately looks like temperature value is not provided by mqtt. Through mqtt explorer i see there is only two threshold values provided by mqtt.
   

Print this item

  coding support
Posted by: Salman - 12-27-2024, 07:09 PM - Forum: KC868-A4 - Replies (1)

greetings,

I would like to do the followings
3 digital input and one digital output

the trouble that digital input 3 should be permissive low to activiate relay 1.
then I would  the software while the relay 1 is activiated, to monitor digital input 3.
if it is remain high, keep relay 1
if it is switch to low , de activate relay 1

if ( digital input 1 == high and digital input 2 == high and digital input 3 ==  low ( this is will be permissive signal ) )
digital output 1 == high

if ( digital input 1 = low and digital input 2== low )
digital output 1 == low

if ( digital input 3 == low )
delay 1 minute 
digital output 1 = low

Print this item

  kc868-a6 define IO
Posted by: smortopoul - 12-27-2024, 06:50 PM - Forum: KC868-A6 - Replies (1)

what is the meaning of this
PCF8574 pcf8574(0x24, 04, 15) ?
and how i can define both inputs and outputs?

Print this item

  H32B conrolled by Nodered
Posted by: Saif Kitany - 12-27-2024, 04:13 PM - Forum: News - Replies (7)

hello technical support team, 

I produced nodered diagram(for test) to control h32b controller. for test, i want to control 3 realys by one switch.
the problem is : 

when i turn on the switch, i got just one relay turn on from the three relays.(they don't turn on all of them in the same time). but if i put timer for the other 2 relays, then i got all relays turn on.

realy 22----> 0 sec
relay 23---> 0.3 sec
relay 24---> 0.6 sec

i will add a pictures of the diagrams : one picture without delay, the seconed picture with delay



Attached Files Thumbnail(s)
       
Print this item

  Problem in output relay
Posted by: Bergoglio - 12-27-2024, 11:17 AM - Forum: KC868-A16S - Replies (3)

Good afternoon,

I flashed several times the KC868-A16S board with ESPHome firmware but the relay n. 8 remains always in on state (also the status led on the board) and it is impossible to control it.

This is the last firmware (still with the problem) :

Code:
esphome:
  name: centralina-citofono
  friendly_name: Centralina citofono

esp32:
  board: esp32dev
  framework:
    type: arduino

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "E3acLht11PoN5oLlgBJPgIO/+elvX80lTzGbQPfVnH8="

ota:
  - platform: esphome
    password: "0b4d665617eac63f109a0dd7b51a409e"

# 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_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: 0x23

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

  - platform: gpio
    name: "a16s-output2"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 1
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output3"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output4"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output5"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output6"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 5
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16s-output7"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output8"
    pin:
      pcf8574: pcf8574_hub_out_1
      number: 7
      mode:
        output: true
      inverted: true
     
  - platform: gpio
    name: "a16s-output9"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 0
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16s-output10"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 1
      mode: OUTPUT
      inverted: true

  - platform: gpio
    name: "a16s-output11"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 2
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output12"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 3
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output13"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 4
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output14"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 5
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output15"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 6
      mode: OUTPUT
      inverted: true
     
  - platform: gpio
    name: "a16s-output16"
    pin:
      pcf8574: pcf8574_hub_out_2
      number: 7
      mode: OUTPUT
      inverted: true

  - platform: restart
    name: EspHome Node Restart
     
binary_sensor:
  - platform: gpio
    name: "a16s-input1"
    pin:
      pcf8574: pcf8574_hub_in_1
      number: 0
      mode: INPUT
      inverted: true

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

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

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

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

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

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

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

  - platform: gpio
    name: "a16s-input9"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 0
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input10"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 1
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input11"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 2
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input12"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 3
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input13"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 4
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input14"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 5
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input15"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 6
      mode: INPUT
      inverted: true

  - platform: gpio
    name: "a16s-input16"
    pin:
      pcf8574: pcf8574_hub_in_2
      number: 7
      mode: INPUT
      inverted: true

Can You help me ?

Print this item

  A16 - MQTT Issues
Posted by: PierrePetite - 12-27-2024, 09:33 AM - Forum: KC868-A series and Uair Smart Controller - Replies (7)

Hey, 

first of all: Thanks for this great product! I am now trying to connect it via MQTT to Home Assistant. (I had several issues by using ESPHome, so I wanna stick with MQTT for now). 

What I did: 

  • MQTT Setup within KCS
  • Setup Mosquito and MQTT within Home-Assistant (Already existing)
  • Confirmed that the Packages are received by listening to #

I have used the following YAML within Home Assistants configuration.yaml, customized based on the received packages while listening to #:

Code:
mqtt:
  switch:
   - name: 'kcs868-a16-output-1'
     unique_id: kcs868-a16-output-1
     state_topic: 'KC868_A16/2CBCBB646ACC/STATE'
     command_topic: 'KC868_A16/2CBCBB646ACC/SET'
     payload_on:  '{"output1":{"value":true}}'
     payload_off:  '{"output1":{"value":false}}'
     value_template: '{{ value_json.output1.value }}'
     state_on: true
     state_off: false

As a result, I can - after restarting Home Assistant control the Output 1. 
BUT: It does not show the current status of Output one! (See Screenshot). Status is unknown. 

Any Idea what went wrong? What could I check? 

[Image: EClPwLZ.png]

Print this item