Monitor Battery SOC?

I’d like to have a way to externally monitor the Battery SOC. It is displayed on the AC300 panel, but I’d like to “see” it electrically so I could add external switching, of loads for instance, based on SOC. Ideal for me, and easy for them via software, would be to let me control the DC output based on SOC. Absent anything else, I’m thinking of using some photodetectors on the green LEDs that indicate the SOC in 20% increments, on the battery units.