Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding KC868-HA RS485 zo HA or ESPHome
#1
Hi,

i have succefully integrate board A16V3 via MQTT auto discovery to Homeassistant. But i didnt found how can i add now KC868-HAv2. If i create new device in ESPHome and copy data from github:
https://github.com/hzkincony/esphome-kc868-ha

I cant install it, ESP gives me error:


Failed config
'esphome' section missing from configuration. Please make sure your configuration has an 'esphome:' line in it.

Do i also need to add main board A16V3 to ESP home and just add those lines to config file of A16V3, or can KC868-HAv2 be add as standalone?
Reply
#2
i think in future we can update KCS v3 support add KC868-HAv2 integrate to home assistant by mqtt auto discovery, so that without any config code.
now if you want to use KC868-HAv2 , need config by ESPHome yaml file.
Reply
#3
(04-08-2025, 12:33 AM)admin Wrote: i think in future we can update KCS v3 support add KC868-HAv2 integrate to home assistant by mqtt auto discovery, so that without any config code.
now if you want to use KC868-HAv2 , need config by ESPHome yaml file.

Yes, Can you plz share this yaml, also if I can interface with KC868 server with rs485, plz guide also.

thanks


imran
Reply
#4
here are video tour:
https://youtu.be/s5Htc43HqAc
https://youtu.be/S679QX6Hc6I
Reply
#5
We have this setup:
Kincony F8 (Esphome) + HAv2 Rs485 + Momentary Switch (1 gang).

We've programmed the HAv2 with HA485_Ctrl_V1.0.4.0904 (address 10). If we press a button on the switch, we see feedback in HA485 assistant.
We've added these parts into esphome on F8:

external_components:
- source:
type: git
url: https://github.com/hzkincony/esphome-kc868-ha
ref: v3.0.1

kc868_ha:

uart:
- id: uart_1 #RS485
baud_rate: 9600
debug:
direction: BOTH
dummy_receiver: true
after:
timeout: 10ms
tx_pin: 16
rx_pin: 17

binary_sensor:
- platform: kc868_ha
target_relay_controller_addr: 1
switch_adapter_addr: 10
bind_output: 1
name: "binary_sensor 1"

Into the webpage that esphome displays for the F8 we see some debug info from the modbus when we click a button on the switch:
1:49:29 [D] [uart_debug:114] <<< 01:10:00:0A:00:06:0C:00:00:00:00:00:00:00:00:00:00:06:01:4E:10
but the binary_sensor 1 is always OFF.

In HomeAssistant, also is always OFF.

We've also watched both https://www.youtube.com/watch?v=S679QX6Hc6I and https://www.youtube.com/watch?v=s5Htc43HqAc.

Any ideas what else should we check? Thank you very much!
Reply
#6
do you want 1 gang switch panel work with F8 relay via HAv2? whether HAv2 integrate to home assistant is not important , right?
Reply
#7
(06-06-2025, 05:51 AM)admin Wrote: do you want 1 gang switch panel work with F8 relay via HAv2? whether HAv2 integrate to home assistant is not important , right?

I have 1 gang and 4 gang wall switch. I need them to work with HA in the end, but using esphome from F8.

So the desired layout is:
momentary wall switch - HAv2 - F8 (ESPHOME) - HA

Right now all are integrated. 
I see some debug info on ESPHOME when I click on one gang, but no change on binary_sensor on esphome (stays OFF) and no change on HA either (stays OFF) .
Reply
#8
i suggest you let 1 gang switch work with F8 using HAv2 directly, just without home assistant, because it will stable, even if home assistant broken, your switch panel also can work. because the esp32 work locally.
so download KCS v3 firmware to F8, then enable RS485 work by "MODBUS-HA" option, will be easiest way.
Reply
#9
(06-06-2025, 06:10 AM)admin Wrote: i suggest you let 1 gang switch work with F8 using HAv2 directly, just without home assistant, because it will stable, even if home assistant broken, your switch panel also can work. because the esp32 work locally.
so download KCS v3 firmware to F8, then enable RS485 work by "MODBUS-HA" option, will be easiest way.

HomeAssistant in that house handles a lot more, not only this ESPHOME from F8. I need HA in the picture, it's very important.

Also ESPHOME on F8 is necessary because it also collects other sensors on RS485, not only the HAv2 (although right now, it only has HAv2 into rs485).

I agree that esp32 locally is a better option, but not in this project.

I've attached the yaml file we have on esphome.


Attached Files
.txt   esphome-k8_hav2.txt (Size: 7.74 KB / Downloads: 12)
Reply
#10
Some of the buttons will trigger some automations in HA that start/stop a lawn robot, it's not only local input to local relay.

Any idea how why esphome does not catch the command it gets on HAv2 attached on rs485?
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)