Smart Home Automation Forum
KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=20)
+--- Forum: KC868-HA /HA v2 (https://www.kincony.com/forum/forumdisplay.php?fid=55)
+--- Thread: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome (/showthread.php?tid=3457)

Pages: 1 2 3


KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - admin - 10-16-2023

Use this plugin for ESPHome. you can add everyone KC868-HA board with 6 digital input ports and 6 digital output ports to home assistant. "digital input" can use for switch panel buttons or dry contact sensors. "digital output" can use for LEDs or extend relay module (need add driver).
   

how is config yaml file demo details: https://github.com/hzkincony/esphome-kc868-ha


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - NicTheModder - 10-31-2023

(10-16-2023, 04:50 AM)admin Wrote: Use this plugin for ESPHome. you can add everyone KC868-HA board with 6 digital input ports and 6 digital output ports to home assistant. "digital input" can use for switch panel buttons or dry contact sensors. "digital output" can use for LEDs or extend relay module (need add driver).


how is config yaml file demo details: https://github.com/hzkincony/esphome-kc868-ha


My dear friends,
Is it possible that the latest kc868_ha component don't work with the firmware flashed into the kc868-HA board (HA485_KU_V106_221102_SP230903) ?
I have bootloaded my 6 kc868_HA boards with this firmware. With ESPHome, the boards work smooth with kc868_component, but not with kc868_ha. Can they be reloaded with newer firmware?

Greetings.
Nic


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - admin - 10-31-2023

update KC868-HA firmware to newest, then use newest esphome component for KC868-HA.


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - NicTheModder - 11-02-2023

(10-31-2023, 11:56 PM)admin Wrote: update KC868-HA firmware to newest, then use newest esphome component for KC868-HA.


Dear friend,
At this moment i am using kc868-E16S with
- ESPHome
- kc868_ha
and kc868-HA with
- HA485 Assistant V1.0.5.1011
- HA485_KU_V108_SP231025.bin (with controller bootloader)

Things start working.
Following not;
- Simulation-Control Switches in 'HA485 Assistant' don't work with kc868_ha (they do well with kc868_component)
- Inputs only work in 'EdgeEvent' mode (in kc868_component only Momentary and Latch)
- HomeAssistant recognises inputs from kc868_ha if they are in 'EdgeEvent' mode, not in Momentary or Latch.
- response with kc868_component was good, with kc868_ha there is too much traffic on the line, respons is bad. We need to add delays in the commands.

Since I work mainly with ESPHome,
It would be much easier for me to have an firmware for the kc868-HA board that is comliant with the native 'modbus_component' of ESPHome.
It don't needs the BindOutput and Target Relay Controller Address stuff.
Just to load Modbus address. If switch is on, send 'switch is on' :-)

Thank you foor the good work, still love it.
Nic


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - admin - 11-02-2023

yes, new firmware mainly use by 'EdgeEvent' mode, in furture nevery use "momentary" and "latch" mode again. 'EdgeEvent' mode is enough and more powerful for home assistant.
"with kc868_ha there is too much traffic on the line, respons is bad. We need to add delays in the commands."  ----- do you means use multi KC868-HA on one RS485 bus, need add delay time?
ok, we will save your suggestion about "modbus_component" for esphome. maybe in furture will make a special firmware for "standard modbus protocol".


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - NicTheModder - 11-21-2023

(11-02-2023, 11:46 PM)admin Wrote: yes, new firmware mainly use by 'EdgeEvent' mode, in furture nevery use "momentary" and "latch" mode again. 'EdgeEvent' mode is enough and more powerful for home assistant.
"with kc868_ha there is too much traffic on the line, respons is bad. We need to add delays in the commands."  ----- do you means use multi KC868-HA on one RS485 bus, need add delay time?
ok, we will save your suggestion about "modbus_component" for esphome. maybe in furture will make a special firmware for "standard modbus protocol".


Hy Kincony
Have you already had some time to write { maybe in furture will make a special firmware for "standard modbus protocol" } ?
It would help me a lot.

Thank you in advance.
Nic


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - admin - 11-21-2023

tell me your application case? such as one raspberry pi's RS485 for "MASTER". one HAv2 for "SLAVE"? or one "MATER", multi "SLAVE"?


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - NicTheModder - 11-22-2023

(11-21-2023, 11:52 PM)admin Wrote: tell me your application case? such as one raspberry pi's RS485 for "MASTER". one HAv2 for "SLAVE"? or one "MATER", multi "SLAVE"?


Dear Miss, Sir,
thank you for your answer.

On the RS485-bus I use multiple components.
As masters there are kc868-ha (6pcs), kc868-A4S, kc868-E16S {to send commands}
and as slaves I use the same boards {to receive commands},
plus a modbus expansion relais board & multiple Modbus sensors.
For example; A pushbutton connected on a kc868-HA makes the HA send a message, read by the kc868-E16S, treated by the 'cover'- component, ad then E16S sends a message on the bus, read by kc868-HA who close HArelay2, and read by kc868-A4S who puts a PWM of 50% on GPIO 9.
The supervision is done on a asus Tinkerboard with HomeAssistant (only supervision and programming).

Easy would be to have a firmware for the kc868-HA that is compliant with the ESPHome Modbus-component (no need for KCS ).

Looking forward to your answer.


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - admin - 11-22-2023

can you draw a diagram of structure on a paper.


RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - NicTheModder - 11-22-2023

(11-22-2023, 10:17 AM)admin Wrote: can you draw a diagram of structure on a paper.


As posted previously,
you can find here a link to my video
https://dai.ly/kZnqq3S2et0wHLzCvbo

Firmware for the kc868-HA so that if we push a button, it sends an (ESPHome) 'modbus_component' -compliant message, and the HA can read an (ESPHome) 'modbus_component' -compliant message to close an output.

Greetings
Nic