First, thank you @dgtlcopywrite for your preliminary work on this! You started me off with almost all of the work already done. Many thanks.
With a few tweaks I was able to get this reliably working on my two Rover 40 amp charge controllers and reliably reporting to ESP Home. I wanted to pass my experience on to possibly help you and others.
The real issue that I had trouble diagnosing, is at first nothing past the first serial value inquiry would return values. Turned out the Rover didn't like so many value inquiries at once. Removing a few of the sensors would make it last a few hours before failing. Removing half of the sensors (that I didn't use anyways) made it 100% reliable. Going on a few weeks now with zero issues from both controllers reporting values. The load switch also works, and I use that for a cooling fan I attached to the controller heat sink.
Hope this helps someone! Feel free to ask me questions about your setup for help.
First, thank you @dgtlcopywrite for your preliminary work on this! You started me off with almost all of the work already done. Many thanks.
With a few tweaks I was able to get this reliably working on my two Rover 40 amp charge controllers and reliably reporting to ESP Home. I wanted to pass my experience on to possibly help you and others.
For the ESP32, I used this.
I used two MAX3232 with terminals I found on amazon.
I used this PDF from Renogy for serial communication reference which was identical to your references with some extras.
Your connections table you made from memory is correct, minus the repeated ESP RX/R1 OUT line of course.
In the ESPHome config I am using this for dual UARTs and modbusses:
I duplicated all sensors with their own number. I also changed this sensor to better read/record daily charged amount:
The real issue that I had trouble diagnosing, is at first nothing past the first serial value inquiry would return values. Turned out the Rover didn't like so many value inquiries at once. Removing a few of the sensors would make it last a few hours before failing. Removing half of the sensors (that I didn't use anyways) made it 100% reliable. Going on a few weeks now with zero issues from both controllers reporting values. The load switch also works, and I use that for a cooling fan I attached to the controller heat sink.
Hope this helps someone! Feel free to ask me questions about your setup for help.