Microinverter Integration Nuasol/Northern Electric

Thank you! It works like a charm. :blush:

1 Like

THANK YOU! Today I found the code in the data page in Chrome with F12 than F5 under Network with Name detail as sign: like 138498FA27A9EC7DDA7720E616A713X8.

3 Likes

I try to integrate my NEP inverter too, but still fail to find the SIGNSTRING. Is that the sn= oder something else.
And after I wrote this in the configuration.yaml, what’s next? Will the inverter be integrated automatically or what do I have to do next?

It worked with the sn= :slight_smile:
But when I integrate it to the energy dashboard there is an issue with the device class as this is not configured. Does anybody know how to solve this?

Hm, can you ellaborate?
Usually I don’t use Chrome or F12 in any way. What site do I go; where do I Press F12, where do I go from there (F12 has ALOT going on once pressed).

Here you are HtHNightwolf:

  1. turn on the chrome developer mode
  2. Login go to your pv page
  3. switch F12 on your pv page
  4. go to the bar and choose network
  5. switch F5
  6. under Name you choose Detail
  7. now you see the data for sign
1 Like

First of all, many thanks for your great work!
In the logs of my HA installation I read that the REST fails:

Unexpected error fetching rest data data

homeassistant.exceptions.TemplateError: UndefinedError: ‘None’ has no attribute ‘tokenInfo’

Any idea how to solve this?

Thanks man.

I found it but sadly both sensors still show no data.

Can someone help me how to finish this?

command_line:
  - sensor:
      name: NepViewer Auth CLI
      unique_id: nepviewer_auth_cli
      command: >-
        /usr/bin/curl -s -X POST "https://api.nepviewer.net/v2/sign-in" \
          -H "Accept: application/json, text/plain, */*" \
          -H "Content-Type: application/json" \
          -H "app: 0" \
          -H "client: web" \
          -H "lan: 3" \
          -H "oem: NEP" \
          -H "sign: BxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxC" \
          --data-raw '{"account":"[email protected]","password":"mypassword"}'
      scan_interval: 3600
      value_template: "{{ value_json.msg }}"
      json_attributes:
        - data


rest:
  - resource: "https://api.nepviewer.net/v2/site/overview"
    method: POST
    headers:
      Accept: "application/json, text/plain, */*"
      Content-Type: "application/json"
      Authorization: "{{ state_attr('sensor.nepviewer_auth_cli','data')['tokenInfo']['token'] }}"
      app: "0"
      client: "web"
      lan: "3"
      oem: "NEP"
      sign: "BxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxC"
    payload: '{"sid":"3xxxxxx0"}' #the last digits in the url after sn=
    scan_interval: 300
    sensor:
      - name: NepViewer Current Power
        unique_id: nepviewer_current_power
        unit_of_measurement: "W"
        value_template: "{{ value_json.data.energy.PVPanel.power | float(0) }}"
      - name: NepViewer Today Yield
        unique_id: nepviewer_today_yield
        unit_of_measurement: "kWh"
        state_class: total_increasing
        value_template: "{{ value_json.data.statisticsProduction.today | float(0) }}"

Hi, try to use the correct payload (sid), not the string after the “&”, just the sid, not the numbers in my case has the letters and numbers.

Please … just tell us facts, it really is not that hard.

Is it the left one or the right one?

sn

I know SID sounds right but it still will not work. WHAT EXACTLY did you put in your code to make it work?

[EDIT] Fixed it myself. It was THIS part:
grafik