Simulating energy consumption with rooftop PV + battery

Dear Behnam,

I am currently looking for a tutorial or script that integrates both PV and battery systems. I was wondering if you were able to solve your issue related to this topic. If so, I would greatly appreciate it if you could share any insights or resources that might be helpful.

Looking forward to your response.

Best,
Behrooz