Micro Grid Inverter Envertech automation

Hello folks,
I’m new to Home Assistant and have managed to successfully integrate my Envertech Micro Grid Inverter, but cannot use its values in an automation to turn on a heater via Tasmote. Is there a way to make the Envertech integration generate a trigger at a certain power production level?

Every support is welcome.

With kind regards,
birko

Hi - I found a YAML snippet in a German forum

You need your station-ID in HEX from envertecportal

----- here is the code you have to add to configuration.yaml at the end of the file.
You only have to add your HEX Station-ID

You can find your HEX-Station-ID on enverlecportal.com

  1. LOGIN to envertecportal

  2. in your Browser - find -" Show Source-Code or activate Level-options.

  3. search for station_id …
    you will find something like:

    var stationId = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX is your stationID .
Copy it and insert it into the following snippet.

----------------- here the code for your configuration.yaml

rest:
  - authentication: basic
    resource: https://www.envertecportal.com/ApiStations/getStationInfo
    scan_interval: 60
    method: POST
    params:
      stationID: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
    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:
          - "UnitETotal"
        state_class: total_increasing

      - name: SolarTodayEnergy
        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"
        state_class: total_increasing

------- end code

Check if your configuration is OK and Restart HA

You will find new entities SolarTotalPower, SolarTotalEnergy, SolarTodayEnergy


The original-post is here : I only shared this here. Thanks to this post.