No data between midnight and 6am

Hi
I am using curl to upload data to pvoutput from home assistant. All seems to work well, but the data does not seem to be accepted between midnight and 6 am. Is there a configuration setting I am missing in the pvouput.
Below is an example code I am using.
Thanks Brad

shell_command:
pvoutputcurl: ‘curl -d “d={{now().strftime(”%Y%m%d")}}" -d “t={{now().strftime(”%H:%M")}}" -d “v1={{states(“sensor.daily_solar_energy_wh”)}}” -d “v2={{states(“sensor.total_solar_power”)}}” -d “v3={{states(“sensor.daily_consumed_energy_wh”)}}” -d “v4={{states(“sensor.total_consumed_power”)}}” -d “v5={{states(“sensor.dark_sky_temperature_0h”)}}” -d “v6={{states(“sensor.utility_voltage”)}}” -H “X-Pvoutput-Apikey: XXXXXXXX” -H “X-Pvoutput-SystemId: XXXXX” https://pvoutput.org/service/r2/addstatus.jsp

Check the error message response, you may be getting Moon Power errors during those times.

Thanks for your suggestion. However, with the automated process I use, I do not capture error codes. To solve my problem, I have now modified my process so I do not send v1 and v2 data between midnight and 6 am. Now the other data sent during this time is now captured.
Cheers Brad

Holy threadbump Batman.

I’m currently having a similar issue with my new system. Previously it was PV only and using GW2PVO was working nicely since it was only ever capturing production. Now it’s PV + Battery so I was trying to capture consumption overnight.

I switched over mid yesteryday and all seemed to be working as expected with data up to midnight looking about correct. But then from midnight until the PV started producing power at about 6am there is nothing.

https://pvoutput.org/intraday.jsp?id=47592&sid=61960&dt=20250921

I’m using Home Assistant to push the data to PVOutput and only using v2 and v4 for power and letting it calculate everything else.

d={{now().strftime('%Y%m%d')}}&t={{now().strftime('%H:%M')}}&c1=1&v2={{(states('sensor.pv_power')|float)|round}}&v4={{(states('sensor.house_consumption')|float)|round}}&v5={{states('sensor.inverter_temperature_radiator')|int}}&v6={{states('sensor.on_grid_l1_voltage')|int}}

Any idea why it’s ignoring data after midnight? Is it potentially that (now redundant) C1=1 flag? I’ve dropped that off, but will have to wait until tomorrow to see what impact that has.

Check that it isn’t sending negative values for either v2 / v4

v2 = pv_power
v4 = house_consumption

It’s not possible for either of these numbers to be negative so that shouldn’t be an issue…

<>

Turns out it was a PEBKAC error.

While writing this response and digging up more info I realised that my code was wrong. To make sure it was only sending valid data it was checking that the cumulative PV value was >0 which was true from the moment I made any power until it rest at midnight… but then wasn’t from midnight to dawn.

Changing that to => 0 should solve my problem.

1 Like