Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome
#12
(11-23-2023, 01:23 AM)admin Wrote: i have checked your video, i think all your device have connect with one RS485 bus , right? because video not clearly to see wire.

1. one RS485 bus can't use multi "MASTER". your home assistant installed on a Server, the server's RS485 is "MASTER". E16S, HA , RS485 sensor all are "SLAVE".  if this system structure is ok, we can design a standard modbus protocol firmware for HA pcb. then you need to use "LATCH" button, if you use push button, it need hold on more time, can't too quickly. Because modbus "pull" speed can't too fast.

2. thanks for suggestion for i2c extend board. do you think i2c 8CH relay or i2c 8CH input board is ok? or maybe 4CH or 16CH?

Super happy to read your reaction.

On the video I use only 1 RS485_bus.

1. HomeAssistant is not participating in the communication. I use it for programming and supervision. The communication works without server, just E16S, HA , RS485 sensor, ...
The Modbus_Component (E16S) sends the commands (standard modbus) and can read, kc868-HA just sends input state changes and reads output change commands for his Modbus address.
If you design a standard modbus protocol firmware for HA pcb, maybee you can use "evtOn" (sending input state ON) (01 02 01 01 60 48) (01 03 02 00 01 79 84) for push and "evtOFF' (sending input state OFF) for release, so you have time between commands.

2. To reduce the number of boards, simplest would be a board with 8 opto isolated inputs and 8 12V 3FF relays. Nice extra would be a second board with 8 opto isolated inputs and a third board with 8 Omron relays (E8i2C :-)

Greetings from Belgium
Nic
Reply


Messages In This Thread
RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - by NicTheModder - 11-23-2023, 09:51 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)