Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-HA RS485 Button Adapter Released
#56
(10-07-2023, 10:17 AM)admin Wrote: if you want KC868-HA to control KC868-A series relay board, you can let them connected together. they can work with each other directly. not need to use home assistant, that will be more stable.

Code:
  - platform: kc868_component
    name: kc868 addr1 key5 binary_sensor
    addr: 1
    key: 5
    on_press:
      then:         
        switch.toggle: kc868_addr1_channel2_switch


Code:
[18:36:35][D][kc868.component:024]: uart bus receive 1:10:0:a:0:6:c:0:0:0:0:0:0:0:0:5:1:0:0:dd:7c
[18:36:35][D][binary_sensor:036]: 'kc868 addr1 key5 binary_sensor': Sending state ON
[18:36:35][D][switch:020]: 'kc868 addr1 channel1 switch' Toggling ON.
[18:36:35][D][kc868.component:125]: uart bus send 1:3:6:55:aa:0:0:0:1:f4:a8  <------------------------------------------------------ first kc868-Axx board sends 'kc868_component' command to kc868-HA board 1 to toggle output 1
[18:36:35][D][switch:055]: 'kc868 addr1 channel1 switch': Sending state ON
[18:36:35][D][binary_sensor:036]: 'kc868 addr1 key5 binary_sensor': Sending state OFF


If you send a [switch.toggle: kc868_addr1_channel2_switch] command to an kc868-HA board on the bus, it makes 'kc868_component' on another kc868-Axx board out of use!

Code:
  - platform: kc868_component
    name: kc868 addr1 key5 binary_sensor
    addr: 1
    key: 5
    on_press:
      then:         
        switch.toggle: light5

Both commands
- 1:10:0:a:0:6:c:0:0:0:0:0:0:0:0:5:1:0:0:dd:7c
- 1:3:6:55:aa:0:0:0:1:f4:a8
are received at +- the same time by the second kc868-Axx board and disrupts it. The second board will do nothing.

Code:
[21:41:06][D][kc868.component:024]: uart bus receive 1:3:6:55:aa:0:0:0:3:75:69:1:10:0:a:0:6:c:0:0:0
[21:41:06][D][kc868.component:036]: crc check failed. ignore data
Reply


Messages In This Thread
KC868-HA RS485 Button Adapter Released - by admin - 11-21-2022, 02:15 PM
RE: KC868-HA RS485 Button Adapter Released - by NicTheModder - 10-08-2023, 04:51 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)