Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome
#21
You have multi MASTER and SLAVE on one RS485-Bus. as modbus standard structure, one device can't both work as SLAVE and MASTER. Sorry, we can't do that auto feedback, it's not suitable for standard modbus structure.
Reply
#22
(11-29-2023, 12:07 PM)admin Wrote: You have multi MASTER and SLAVE on one RS485-Bus. as modbus standard structure, one device can't both work as SLAVE and MASTER. Sorry, we can't do that auto feedback, it's not suitable for standard modbus structure.

We can try !

When two kcs868-Axx boards, connected on the same bus, send commands and feedback to each other with 'modbus-controller', they both work as SLAVE and MASTER .
Just have to incorporate delays in the reply.
Reply
#23
Hey there,

Is it possible to detect both rising and falling edge event in Home assistant from KC868?

Thanks!
Reply
#24
sure, we already have video tour on our youtube channel.
Reply
#25
(03-06-2025, 09:02 AM)admin Wrote: sure, we already have video tour on our youtube channel.

Can you be more specific? Because in the esphome config only binded to an output, but not the rising or falling edge of that output.
Example:
Code:
- platform: kc868_ha
    target_relay_controller_addr: 1
    switch_adapter_addr: 10
    bind_output: 2
    name: "binary_sensor 2"

What I want to implement is the following:

Code:
- platform: kc868_ha
    target_relay_controller_addr: 1
    switch_adapter_addr: 10
    bind_output: 2R
    name: "binary_sensor 2 falling edge"
- platform: kc868_ha
    target_relay_controller_addr: 1
    switch_adapter_addr: 10
    bind_output: 2F
    name: "binary_sensor 2 rising edge"


It would be useful to differentiate long and sort button presses on the homeassistant level.
Reply
#26
the input only work as BINARY SENSOR in home assistant. here is video tour:
https://youtu.be/s5Htc43HqAc
https://youtu.be/S679QX6Hc6I
Reply
#27
(03-06-2025, 09:21 AM)admin Wrote: the input only work as BINARY SENSOR in home assistant. here is video tour:
https://youtu.be/s5Htc43HqAc
https://youtu.be/S679QX6Hc6I

I understood, I already watch those, thank you.
So there is no way to detect falling and rising edges of a same the input in esphome?
Reply
#28
yes, ONLY state for binary. not for falling or rising.
Reply
#29
(03-06-2025, 12:19 PM)admin Wrote: yes, ONLY state for binary. not for falling or rising.

And if I use the modbus firmware? Can I differentiate these events then?
Reply
#30
no.
Reply


Forum Jump:


Users browsing this thread: