Modbus use for sending comands to wallbox on esphome

Hello all,
Currently, i am using rpi pi zero to send comands ( like this one “:01100014000102007563\r\n”) using usb rs485 dongle and node-red to my wallbox.
The problem is sometimes my rpi freezes and forces-me to reboot it. And having problems like sd cards corrupting in the past, i am wondering if someone in this forum is able to write yaml parameters to set this comand as a switch on esphome to be able to activate the switch on HASS and esphome send the comand to the rs485 module on my esp32.
Like this:
HASS → esp32 → RS485 → ABL EMH1.
No need to read. Just to send.
The problem is i can’t fully understand where it does fit the comand written in my esp32 yaml.
I know the slave address is :01
Read holding is 10
Functions register is 0014 , 000102 , 0075
And the last one is pwm 117, lrc converted is 63.

Sorry if my english isn’t good.

Best regards,
Celso

Nevermind.
Just discovered now.
It was very simple, in fact. Don’t know why it didn’t worked before.
Just edit it to suit your needs.

uart:
   baud_rate: 38400
   parity: EVEN
   tx_pin: 23

button:

  - platform: template
    name: "Pausa"
    on_press:
      - uart.write: ":0110001400010203E8ED\r\n"

  - platform: template
    name: "6A"
    on_press:
      - uart.write: ":01100014000102008652\r\n"

  - platform: template
    name: "8A"
    on_press:
      - uart.write: ":0110001400010200A731\r\n"

  - platform: template
    name: "10A"
    on_press:
      - uart.write: ":0110001400010200C810\r\n"

  - platform: template
    name: "12A"
    on_press:
      - uart.write: ":0110001400010200EAEE\r\n"

  - platform: template
    name: "14A"
    on_press:
      - uart.write: ":01100014000102010BCC\r\n"

  - platform: template
    name: "18A"
    on_press:
      - uart.write: ":01100014000102014D8A\r\n"

  - platform: template
    name: "20A"
    on_press:
      - uart.write: ":01100014000102019047\r\n"

This is code for esp32 esphome platform to control Wallbox ABL EMH1 . Not all codes are here. These are the most usefull for me.
Use it with caution. I am not responsible for your use of it.

Regards,
Celso