Modbus TCP with ESPHome?

Hello,

I’m looking into configuring ESPHome to receive Modbus TCP commands to control switches via Modbus TCP. Does anyone have experience setting this up or can provide guidance on how to achieve this with ESPHome? Alternatively, are there any other user-friendly tools or platforms recommended for programming an ESP32 for this task?

Any advice or suggestions would be greatly appreciated!

Thank you!

Hi

Why do you want to use ESPHome for that ? it’s useless as you can do it straight with the MODBUS integration in HA: Modbus - Home Assistant

Vincèn

I want to connect an ESP32 chip directly to another Modbus TCP device without using Home Assistant. However, I find using ESPHome appealing due to its user-friendly programming interface. My goal is to toggle some relays based on the Modbus TCP messages received.

Looks like there is a custom component:

Now custom components have been removed but there is an external component to re-add them:

1 Like