Source Code Framework for ESP32 as Open Source?

Dear Sirs,

I bought some simple Arduino style relais to be connected to the cloud. As I am a HW/SW developer I ask me, if it is possible to publish the framework for the ESP uC inside, so that we can take it as API and code our own appliucation? e.g. I control my complete home solar system with ESP32 but on home server for security reasons.

Does this interfere with your financial interest to publish the source? I think it is written in
Esspressif IDE or in the Arduino IDE.

It would be nice to switch on relays on sunrise and switch off at sunset. I have this function in the VeSync Cloud. Very simple to add, just get position from GPS and use the the geo-scientific formulas for this.

regards from Germany,