Page 1 of 1

Export P1 and Solaredge to PVoutput?

Posted: Wednesday 28 October 2015 10:28
by langebroeck
Hello,
I am using Domoticz on a DS214PLAY and would like to import the Domoticz data (Collected from P1 and Solaredge) to PVOUTPUT to contribute to this forum too.
Is there any help available how to fix that.
Regards for your suggestions. Frans

Re: Export P1 and Solaredge to PVoutput?

Posted: Wednesday 28 October 2015 12:01
by ThinkPad
I use this script: http://tweaken.blogspot.nl/2015/01/domo ... utorg.html to send my power consumption (that Domoticz gets through the P1 port) to PVoutput.
Don't have solar panels, so can't help you with that. But if you have the P1 + Solaredge already in Domoticz, the script mentioned is a nice place to start.

Re: Export P1 and Solaredge to PVoutput?

Posted: Sunday 03 January 2016 20:22
by jurgen
@Thinkpad,

EDIT: Langebroeck which started this topic would like to upload only P1 information from the smartmeter to pvoutput using domoticz, solaredge is already imported directly from solaredge.

When we run the script manually using python we receive this error.
Do you run domoticz on synoloy or raspberry?

python pvoutput.py -a APIKEYFROMPVOUTPUT -s SYSTEMID -e IDXFROMSMARTMETER -u http://localhost:8084
Traceback (most recent call last):
File "pvoutput.py", line 144, in <module>
sys.exit(main())
File "pvoutput.py", line 61, in main
e_in, e_uit, e_in_pwr, e_uit_pwr = get_e(args.url, args.e_device_id)
File "pvoutput.py", line 119, in get_e
e_in = int(Decimal(p.match(data['CounterToday']).group(1)) * 1000)
KeyError: 'CounterToday'

Thank you.