Forecast solar and bayesian sensor

Hi, in a couple weeks there will be installed solar panels on my house. Now I’m a searching for the the possibilities in HA. I want to run my dishwasher with the forecast solar and a bayesian sensor when the most energy is generated at a certain time of the day. which in my theory should be possible. My question is if anyone has experience with this or does this in a different or better way?