I talked to a guy who came up with a solution, but it was with with normal grid electricity. If you're willing to figure it out, I'm sure you could adapt the idea to solar.
He said he used some sort of solenoid that he had rigged to a horizontal flapper . The idea was that the moisture would build up on the flapper. When it was heavy
enough it would droop down, make or break some sort of connection and thus trigger the switch on the power to the pump. That turned the pump off. When the moisture evaporated off, thus making the flapper lighter, it would trigger the switch to turn the pump back on.
I've never tried this, so I can't tell you exactly how to rig it. But I thought it was a great, simple solution geared directly to the amount of moisture on the plants.