Can I run Home Assistant and Solar Assistant on the same Raspberry Pi?

I think I need to run Solar Assistant in order to control my Growatt system. I need to be able to send it messages telling it to charge the battery at the lowest possible rate (which could vary day by day if I’m using Octopus agile), and to export energy during the most expensive hours in the late afternoon/early evening if I calculate that there will be more than enough charge in the battery to last until the next nighttime charging period. Can I run HA and solar Assistant on the same RPi? If not, why not? If I have to run two RPi’s for this system, they will both sit there doing nothing for most of the time. There must surely be a way to run both on one processor at the same time? Isn’t that what multi-tasking was invented for?

Thank you - Rowan

Not remotely enough info

This is a system capacity issue and not all Pi are made the same - we would need your model and how much ram it has.

Note if it’s a pi3, it’s only got 1G which HA needs all by itself.

They both appear to be their own operating system, so they would both need to be installed in virtual machines to function. I don’t know how Pi’s do with virtual machines, but I do not recommend it. And Home Assistant is never not doing anything, it’s always busy. I would venture to guess the same about Solar Assistant.
I’m no expert here, but that’s my opinion.

If a PI takes 6 watts and the cost is 20 cents a KWH, then just spend the $10 a year on each and run 2 pi’s…

Can’t you run growatt as an integration in HA?