Micro Grid Inverter Envertech integration

+1 same here too. Stopped working on 20th february. I’ve changed scan_interval to 60 and 120. Nothing changed.

Take a look at GitHub - zivillian/enverproxy: forked from https://gitlab.eitelwein.net/MEitelwein/Enverbridge-Proxy
It is not something that can be added to HASS immediately, but it provides a script to read data from the Enverbridge locally. I have used it with success, no internet portal is required anymore.

The script listens to incoming data from the bridge and puts it on MQTT. If you are familiar with Node-RED, you could also take a look at the alternative i made: Ported the code to Node-RED · Issue #6 · zivillian/enverproxy · GitHub

I haven’t integrated the Enverbridge in HASS so you are on your own to find out how to do that.

1 Like


I think Enverech has changed the API in February together with the web interface.
Now I use the values from the inverters. This will work. Only total, day, month and year energy will not work. But this values are calculated by the energy dashboard, if you use total energy from the single inverters.

How did you query the local inverter?

See post number 6.

They have change KWh to kWh, simply change it. Maybe also MWh to mWh, cant validate this.

OLD: value_template: “{{ value_json.Data.UnitETotal|replace(’ MWh’,’’)|replace(’ KWh’,’’)|float}}”
NEW: value_template: “{{ value_json.Data.UnitETotal|replace(’ MWh’,’’)|replace(’ kWh’,’’)|float}}”

1 Like

This will work. Thank you!

“kWh” → Kilowatt Hours
“KWh” → Kelvin Watt Hours
“MWh” → Megawatt Hours
“mWh” → Milliwatt Hours

So kWh and MWh are correct.

Hello,

I’m a new with Home Assistant. Tried to edit the code given above to get Solar Energy Today -value to my Home Assistant. You can find my edited code below. After editing code, I can’t find selectable sensor for Energy Today.

WBR Pete

rest:
    - authentication: basic
      resource: https://www.envertecportal.com/ApiStations/getStationInfo
      scan_interval: 60
      method: POST
      params:
        stationID: "xxxx"
      sensor:
        - name: SolarTotalPower
          value_template: "{{ value_json.Data.Power|float }}"
          device_class: power
          unit_of_measurement: "W"
          json_attributes_path: "$.Data"
          json_attributes:
            - "PowerStr"
            - "StrPeakPower"
          state_class: measurement      
        - name: SolarTotalEnergy
          value_template: "{{ value_json.Data.UnitETotal|replace(' MWh','')|replace(' kWh','')|float}}"
          device_class: energy
          unit_of_measurement: "MWh"
          json_attributes_path: "$.Data"
          json_attributes:
            - "UnitEToday"
            - "UnitEMonth"
            - "UnitEYear"
            - "UnitETotal"
          state_class: total_increasing
        - name: SolarEnergyToday
          value_template: "{{ value_json.Data.UnitEToday|replace(' MWh','')|replace(' kWh','')|float}}"
          device_class: energy
          unit_of_measurement: "kWh"
          json_attributes_path: "$.Data"
          json_attributes:
            - "UnitEToday"
            - "UnitEMonth"
            - "UnitEYear"
            - "UnitETotal"
          state_class: total_increasing

Did anyone manage to get the envertech bridge back up running?

Ok, it was super easy! :smiley:

rest:
    - authentication: basic
      resource: https://www.envertecportal.com/ApiStations/getStationInfo
      scan_interval: 60
      method: POST
      params:
        stationID: "HEX Station ID"
      sensor:
        - name: SolarTotalPower
          value_template: "{{ value_json.Data.Power|float }}"
          device_class: power
          unit_of_measurement: "W"
          json_attributes_path: "$.Data"
          json_attributes:
            - "PowerStr"
            - "StrPeakPower"
          state_class: measurement      
        - name: SolarTotalEnergy
          value_template: "{{ value_json.Data.UnitETotal|replace(' MWh','')|replace(' kWh','')|float}}"
          device_class: energy
          unit_of_measurement: "kWh"
          json_attributes_path: "$.Data"
          json_attributes:
            - "UnitEToday"
            - "UnitEMonth"
            - "UnitEYear"
            - "UnitETotal"
          state_class: total_increasing