Sending export data via addstatus.jsp

Hi!

I am currently running a Goodwe Inverter in my home and have a connection to my dutch smartmeter through the p1 port which is connected to my Mios Vera 3 domotica system.

I have a c# program which reads the inverter data from the USB-HID. Every time I get data from the Inverter (once every 3 minutes) I also get the current Watts and current KWH from the smart meter.

When I use more power than I generate, all numbers are positive and show up correctly in the pvoutput charts.

But when I generate more power than is used, the current Watts I get from the smartmeter are negative (because I export instead of import) and I get an error from pvoutput.

Why is that and how can I resolve this?

pvoutput.org/service/r2/addstatus.jsp?key=xxx&sid=xxx&d=20170713&t=08:58&v1=1&v2=272&v3=1494&v4=470&v5=41.4&v6=1010.4 : OK 200: Added Status

pvoutput.org/service/r2/addstatus.jsp?key=xxx&sid=xxx&d=20170713&t=09:04&v1=1&v2=277&v3=0&v4=-410&v5=41.5&v6=1155.4 : The remote server returned an error: (400) Bad Request.

Thanks!

Use &n=1

See the Net Data section in the documentation below on how to send export/import data.

https://pvoutput.org/help.html#api-addstatus

Hi Dohmenict,

I am interested in what you are doing with your Goodwe (I just one of these). I am not a fan of how they have restricted to pushing the data to their cloud product only and not allowing anyone to query the inverter directly over wifi, though someone claims to have done this but won’t elaborate. See https://www.domoticz.com/forum/viewtopic.php?t=6714

Could you possibly publish more information?

TIA.

Hi bankstownbloke,

Thanks, but it’s not completely working. (still get errors sometimes). However, I am completely rebuilding the interface to my Smart-meter (it will be an Arduino now, communicating to Fibaro). So as soon as I have that working, I will continue on the pvoutput interface.

Hi Slampt,

My Goodwe device has a Zigbee connection. I’ve connected the zigbee usb receiver to my synology NAS and I have a windows virtual machine running on the NAS where the Goodwe software is running on. When that software is running I can use a USB-HID library to read and decode the Goodwe data into my c# application.

That application will be used to transfer data to my Fibaro Home Center 2 (I used to have a micasaverde Vera 3). I will create a virtual device on the HC2 that will display all solar and smart-meter paramters. Next step is to actually process that data as energy data in the HC2 AND send the correct values to pvoutput for (mobile) logging.