Page 1 of 1

Beginer use for solar monitoring (Solar Edge)

Posted: Wednesday 24 August 2016 0:06
by cdunne
Apologies if this is a 'noob' question but I was recommended Domoticz by a colleague and it seems good so far. I have a zwave dongle and logger for my supply meter on order but have I've got the install working on my Raspberry Pi.

I have a Solar Edge SE4000 inverter. I do currently use the solaredge monitoring webpage and although it's not great I would rather I could still use it in parallel with Domoticz at least initially.

I've found https://github.com/scns/SolarEdge-Domoticz which seems to do just that but I've also found http://www.domoticz.com/forum/viewtopic ... e&start=60 which suggests there are issues with this? I've just tried downloading it but get:

Code: Select all

  File "solar.py", line 5
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
I'm sure there's some simple set up required I've not yet done!

Is it just me or does https://www.domoticz.com/wiki/SolarEdge suggest a seft up of the inverter comunicating directly to Domoticz and not to the the solaredge monitoring webpage does this mean that logging on both systems in parallel is no longer possible.

Re: Beginer use for solar monitoring (Solar Edge)

Posted: Wednesday 24 August 2016 6:54
by Egregius
Are you sure you're solar.py content is good?
Should be the content from https://raw.githubusercontent.com/scns/ ... r/solar.py I think.

Re: Beginer use for solar monitoring (Solar Edge)

Posted: Wednesday 24 August 2016 23:02
by cdunne
Thanks, do you know for sure if that still works without going via the replacing monitoring.solaredge.com with Domotocz approach? I got distracted, needed to install an editor easier than vi, did a package upgrade and it's currently on ones beggining m (after running for an hour).

Re: Beginer use for solar monitoring (Solar Edge)

Posted: Thursday 25 August 2016 0:02
by cdunne
Hmm I've tried pasting that code into a clean file (and running it as root) but no joy!

Code: Select all

pi@raspberrypi:~/tmp$ sudo python solarn.py
  File "solarn.py", line 28
    print (sys.version)
    ^
IndentationError: unexpected indent
Sorry hopefully it's something simple I'm doing wrong!

Re: Beginer use for solar monitoring (Solar Edge)

Posted: Saturday 10 September 2016 21:51
by cdunne
Apologies for not responding about this! I've now got the API key.
I failed to get it working properly with the script above (it managed to update '/domoticz/scripts/data.xml' ok via chron but the data did not seem to update on the virtual meter I set up).

Then looking at it I found 'SolarEdge via Web API' on the devices menu so when I added that it now seems to be working fine. Today's issue is with my zwave devices (I managed to get one working yesterday but it won't work today and I didn't manage to get the other working).