Hi are you sure it can’t charge at 3.4. It looks like mine did the other day and I’ve certainly seen it get to 90% in the past. See below. The usage shown is 3.6kw but I’ve got an overnight load of 200 to 300w.
Could you share your RPi script, I do t have the skills but can probably tinker...