Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome
#14
(11-23-2023, 10:09 AM)admin Wrote: E16S is RS485(MASTER), HA is RS485(SLAVE), RS485 sensor is SLAVE. right?


Yes indeed,
Aldough y would say that HA is a kind of an hybrid. A slave waits for an order to be given. The kc868-HA sends by himself a state-message when an input has changed state.

A master can ask a device for a state response or ask a device to change the state of an output. These devices can be a  master or a slave .
A kc868-E16S can ask another kc868-E16S to close a relay and vice-versa.

ESPHome describes it like this:
Quote:The modbus_controller component creates a RS485 connection to control a ModBUS slave device, letting your ESPHome node (kc868-E16S for example) to act as a ModBUS master. You can access the coils and registers from your slave ModBUS device as sensors, switches or various other ESPHome components and present them to your favorite Home Automation system .
[Image: modbus.png]

Propably the confusion is that you make an analogy with MQTT. There you need a broker who regulates the communication.
In Modbus everyone can send and receive messages. You just have to stick to the protocol and keep the traffic low.

There is a super good instruction video about this subject. Just change A6 by HA ;-)
https://www.youtube.com/watch?v=xmBWzVGpggo

Greetings
Nic
Reply


Messages In This Thread
RE: KC868-HA RS485 INPUT & OUTPUT plugin for ESPHome - by NicTheModder - 11-23-2023, 04:59 PM

Forum Jump:


Users browsing this thread:
1 Guest(s)