Changed to net metering no solar data shown

Hi
I have a question, my system has been nicely uploading for over 10 years using a Raspberry pi connected to a Currentcost 3 phase usage meter, measurit and Aurora Monitor running on the pi to upload to PVOutput. I recently changed to a Shelly Pro 3EM and using Home Assistant to upload. The Shelly is configured in the meter box to net metering - CT’s on the grid side of the solar connection (previously the Currentcost was gross) and the .yaml upload script has the n=1 flag set. My system has net calculation set to enable and live production shows net consumption fine.
My question is - I have no data shown in live production for solar and obviously no graph, the data must be there for PVOutput to calculate net but why isn’t solar data showing? Is this expected behaviour?
If it should show solar data then any pointers?

HA configuration.yaml Ubuntu Pastebin

HA shows;
content: “OK 200: Added Status”
status: 200
When the script is run.

Thanks

Cheers
Adrian
System id:24159

The Net meter would only send consumption data, there should still be something that sends the solar generation data.

Hi BB
Thanks for the reply. I assumed it was receiving v2 as it is showing net consumption, but it makes sense that the website doesn’t need it to calc net as it is already net with the energy monitor configured the way it is on the grid side.
I am sending v2 solar in the .yaml code - &v2={{(states(‘sensor.solar_inverter_power_output’))|float(0) }} and getting “ok 200 added status” back. The solar sensor in HA is sending grid voltage and temperature and is shown in PVoutput.
Can you see solar upload data in the the backend?

Thanks for your time on this.

Cheers
Adrian

Hi BB
My script is sending V2 as mentioned before, an update in HA recently stopped my 5 min automated upload, just now I fixed the issue that borked it and now the first updated entry in the PVO data list shows solar production so it is being received by PVO


But then the next 5 minute entries after show 0W?

This is the payload part of my script;
“d={{now().strftime(’%Y%m%d’)}}&t={{now().strftime(’%H:%M’)}}
&v2={{(states(‘sensor.solar_inverter_power_output’))|float(0) }}
&v4={{(states(‘sensor.shellypro3em_ac15186c68cc_total_active_power’))|round(0)|float(0) }}
&v5={{(states(‘sensor.solar_inverter_temperature’))|float(0) }}
&v6={{(states(‘sensor.solar_inverter_grid_voltage’))|float(0) }}
&n=1”

Would really like to get this going again after all the years I have supported this site.

Cheers
Adrian

This upload only sends net data, not generation data. There needs to be two separate uploads, one for net data (i.e. consumption) and another for generation without the (n=1) .

It sounds like your setup is correctly sending data to PVOutput, but the lack of solar production data could be due to how the Shelly Pro 3EM reports values or how PVOutput interprets them. Since you have net metering enabled and the n=1 flag set, PVOutput is likely only receiving net power data rather than separate solar generation figures. To fix this, ensure Home Assistant is correctly pulling and sending both grid import/export and solar generation separately. You may need to modify your YAML script to explicitly send solar generation (v2 parameter) along with consumption (v4). Also, double-check your PVOutput system settings to confirm it’s set to accept both solar and consumption data separately.

Thanks BB, that makes sense now to me. I’ve modified my setup to 2 seperate uploads - one every 5 minutes with the V4 data and the second one 15 seconds after that with V2. It now appears to be working thanks.

Cheers
Adrian

Thanks Jennifer (and welcome to PVO)
My uploads include solar inverter data - V2 but as in BB’s reply the n=1 flag disregards it and needs a seperate 5 minute upload for V2 without n=1.

Cheers
Adrian