Hi,
I have setup an Esp32 with ESPhome and home assistant and it works great.
I also have a little OLED screen displaying some basic information such as IP address etc.
I am trying to configure this setup to show in the OLED screen when the modbus server is online and connected to my inverter but for the life of me I cant.
I saw there is an automation option with Modbus to trigger actions using but cant get the code to work in a way that I can use the print command to display in the OLED
Any help with some code examples would be much appreciated - not an expert by any means
Thank you
modbus_controller:
- id: modbus_con
# ...
on_offline:
then:
- logger.log: "Controller goes offline!"