Home Assistant PVOutput Problem Data Send

Good morning everyone.
I thought I had solved the problem (in part), but instead another very strange one has arisen.
I made several changes to the file and they all reported the same result, so I can’t find the problem…
Situation:

  • if I withdraw from the Grid, HA sends the “data” to PVO
  • if I am producing from the PV and I am also withdrawing from the Grid, HA sends the “data” to PVO
  • if I am producing from the PV and I am putting Energy into the Grid, HA does NOT send the “data” to PVO, giving me the following ERROR " Error. Url: https://pvoutput.org/service/r2/addstatus.jsp. Status code 400. Payload: b’d=20250308 &t=09:05 &v2=2048 &v4=-1937 &v5=5 &v6=236’ "

So as soon as the PV produces in the early morning and in the late afternoon, and I also withdraw from the grid, both data are there… Instead if I produce and insert WITHOUT withdrawing ,data is not sent…

Is it possible that the value of the energy/power of the Photovoltaic must be with a negative sign??? Is there a possibility to “FORCE” the sending of data with a “negative sign” in the script string???

Thanks to all and have a good weekend

This is my configuration file:

  • Immagine 2025-03-08 101909

ok, yesterday fiddling around I managed, in part, to fix the file. Now with the current configuration I can “add status” every 5 minutes.
But there is a but:

  • v4 is net, set parameter n=1, So Import\Export… If I withdraw it shows me the Watts used, if I enter it shows 0 W. But this can be fine.
  • v2 instead is gross, and is found in the same request as v4, unfortunately with parameter n=1 it does not show me anything So it is always 0

How can I send “add Status” with 2 different strings, So:
-v2 gross
-v4 net

how should the file be configured in Home Assistant.

Thanks to everyone and have a good day.

You need to send two requests -

  1. Gross generation with v2
  2. Net consumption with n=1 and v2 = Export / v4 = Import

PVOutput will combine the two to calculation Gross Consumption.

Reviving this topic as I still haven’t found a good plug 'n play solution for Home Assistant to upload my stats. With the huge improvements with AI tools lately it became a lot less of a time sink to just create one from scratch.

So I spun up PVOutput Bridge last night (https://github.com/drzoidberg33/PVOutput-Bridge) - it is still very basic but covers what I need out of it and I thought I’d share it here if somebody is still looking for an easy solution.

All you need to get started is:

  • A PVOutput account with API access enabled
  • A PVOutput API key and System id.
  • A Home Assistant instance with a Power entity for your PV output power (this is the minimum requirement but other entities are also supported).
  • HACS installed in Home Assistant is not required, but will make life easier.

You can find the install instructions in the repo README above.

This is just a little personal project of mine, I don’t expect to spend much more time on it besides fixing bugs as it works like I need it to currently.

Feel free to file any issues you may encounter, I probably won’t be looking at doing feature requests but feel free to submit a PR or fork your own repo if you want to customise things.

Hope this is useful for somebody!