Beginer use for solar monitoring (Solar Edge)

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
cdunne
Posts: 12
Joined: Tuesday 23 August 2016 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Beginer use for solar monitoring (Solar Edge)

Post 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.
User avatar
Egregius
Posts: 2592
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Beginer use for solar monitoring (Solar Edge)

Post 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.
cdunne
Posts: 12
Joined: Tuesday 23 August 2016 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Beginer use for solar monitoring (Solar Edge)

Post 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).
cdunne
Posts: 12
Joined: Tuesday 23 August 2016 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Beginer use for solar monitoring (Solar Edge)

Post 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!
cdunne
Posts: 12
Joined: Tuesday 23 August 2016 22:45
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Beginer use for solar monitoring (Solar Edge)

Post 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).
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest