Smart Home Automation Forum
KCS firmware - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: KCS firmware (/showthread.php?tid=6634)

Pages: 1 2


KCS firmware - remiasz - 09-08-2024

Hello
Can You add "save/restore configuration" option to admin page.
I upgraded firmware and all config was lost.
I had only a few IFTTT rules and one Custom Protocol but writing again 128 IFTT rules and 64 protocols, config all outputs and sensors parameter may be frustrating.


RE: KCS firmware - admin - 09-09-2024

ok, thanks for your suggestion.


RE: KCS firmware - remiasz - 09-13-2024

Another suggestion: can more sensor connection methods be added to KCS firmware?
For example, ToF sensors with pulse length measurement (HC-SR04).
Or reading measurement result by uart like this https://pl.aliexpress.com/item/1005005626945766.html
or rotary encoder with up/down counter


RE: KCS firmware - admin - 09-13-2024

do you use home assistant software?


RE: KCS firmware - remiasz - 09-15-2024

No. I try to integrate controlling and viewing garage doors, gate, doorbell and other device in home in my own home server.
This is my first contact with ESP32 and I didnt use any home assistant software yet.
All logic and automatic is in server, not in KCS.
To learn using home assistant software I need a time. Smile

For now, I'm trying to read the gate opening height. I'm using an analog distance sensor GP2Y0A02 for this.
I would like to use a laser or ultrasonic sensor but the output is of the time-of-flight type and the server-KCS communication is too slow to measure the pulse time.
The drive has a position encoder but it's just a sensor without a counter. 
And such options in the firmware would be very helpful.

I think that is easy to implement in IFTTT. U can add a few (3-5) object with type timer and counter.
Timer type object:
KCS have internal timer (ex. for real time). Timer object needs 2 registers and 3 actions defined in IFTTT: reset, start and stop.
"Reset" set both register to 0, "start" write timer value to register 1, "stop" write timer value in register 2.
Reading by host is difference between registers if both was set.
Counter type object is easiest:
Needs 1 register and 3 action: "reset", "count up" and "count down" to set register to 0 and increase/decrease register value.


RE: KCS firmware - admin - 09-15-2024

if you want to use HC-SR04 now, the fast way is config your board by ESPHome, i have checked, ESPHOme support : HC-SR04
you can config it , then make AUTOMATION in ESPHome yaml file.
https://esphome.io/components/sensor/ultrasonic.html


RE: KCS firmware - remiasz - 09-16-2024

Have you any guide to flash ESPHome firmware?
I would like to try using it.


RE: KCS firmware - admin - 09-16-2024

you can check some video tour at here: https://www.kincony.com/forum/forumdisplay.php?fid=54


RE: KCS firmware - remiasz - 09-18-2024

Where to connect HC-SR04? It works on 5V and HT ports on 3V.
Maybe it's better to use 433M interface? 433M_T signal as trigger and DATA_R as echo. There is also 5V power supply on connector P2.
How to set PIN parameter?


RE: KCS firmware - remiasz - 09-18-2024

How define triggers to click, doubleclick and hold on on input.
With setting below
 
Code:
  on_click:
    - min_length: 50ms
      max_length: 350ms
      then:
        - switch.toggle: output03
    - min_length: 1000ms
      max_length: 5000ms
      then:
        - switch.turn_on: output02
    on_double_click:
    - min_length: 50ms
      max_length: 350ms
      then:
        - switch.turn_on: output01
works single click as expected - toggle output 3
but double click turns on output 1 and toggle output 3 twice
hold input longer then 1 sek turn on output 2 as expected

how to eliminate double toggling output 3 in doubleclick?