Skip to content

Solarprofit / Greenheiss and code cleanup

Compare
Choose a tag to compare
@djansen1987 djansen1987 released this 17 Oct 10:52
· 9 commits to main since this release
90cf5e5

Thank you @krahabb for making updates to the code and cleaning it!


What also should be addressed is that SAJ is working on a new portal, this is also probably the reason they let go of the Greenheiss and Solarprofit users on their portal. Those users should use the portals of the retailers. Below more info on that. But this new portal also means new data endpoint (API's). New API mean a total remodeling of this integration and finding out (again) which API belongs where. I am happy to see so many users using this custom integration and hope this can stay like this, but i also have to be honest to myself and emit I do not have the time to do the whole remodeling myself. So if you are reading this and would like to jump onboard and help other (and your self) making this custom integration modern proof (maybe even configurable via UI) lets get in contact.

For those who want to look at another integration have a look at https://github.com/faanskit/ha-esolar/ this integration was created with inspiration from this one. But do note when you switch all entities and energy history is migrated and therefor lost.


Update for Solarprofit / Greenheiss Users

Due to some changes on the Esolar portal side these devices where not working anymore. thanks to @santiagozky @santiagoGPNC to create the new code this is now working again. But to get it working you have to make some updates to your configuration.yaml

note that there is an certification issue for the greenheiss portal which is currently not accepted by Home Assistant to fix this use the provider_ssl: False

Add below code to you

    provider_domain: inverters.resellerdomain.ext
    provider_path: cloud

for example for greenheissen:

  - platform: saj_esolar #greenheissen
    username: USERNAME
    password: Password123
    provider_domain: inversores-style.greenheiss.com
    provider_path: cloud
    provider_ssl: False
    resources:
      - nowPower
      - runningState
      - todayElectricity
      - monthElectricity
      - yearElectricity
      - totalElectricity # Energy -> Solar production
      - todayGridIncome
      - income
      - lastUploadTime
      - totalPlantTreeNum
      - totalReduceCo2
      - isAlarm # Yes / No
      - status
      - plantuid
      - currency
      - address
      - isOnline
      - peakPower
      - systemPower # Installed capacity