First post: 26-8-2018 13.00
Revision 1: 26-8-2018 16.48
Since I couldn't find any guides on this, I wanted to share/document my experiences so far. Hopefully it is helpful to others.
I received a GoodWe GW3000D-NS inverter this week and this weekend I had time to figure out why the native integration option of Domoticz wasn't working for me.
first of all, the domoticz native function seems to be working just fine.
I tested it by using the following URL in the browser (and adding my username, but you could also use the username demo, test or jansen):
European server: https://eu.goodwe-power.com/Mobile/GetM ... ?userName=
Oceania server: https://au.goodwe-power.com/Mobile/GetM ... ?userName=
Global server: https://hk.goodwe-power.com/Mobile/GetM ... ?userName=
Unfortunately, I received an empty respons with my username in the browser. the Domoticz log also said it received a non valid respons or bad username.
Now here's the annoying part:
In the GoodWe portal there are two types of accounts: a dealer account and an end-user account. You most likely will have an end user account. This is limited considering the possibilities you have. Your installer/dealer will also most likely have created the station which is added to your end-user account. In case the dealer/installer made the station and added it to your end-user account, you have a problem:
The api will not return a valid respons with your username. it will be empty
If you add a station yourself with your end-user account, then you can use the api to access that station (try the url above again with your own username). Unfortunately you cannot add your inverter to this station since the portal will tell you that that serial number is already in use. If you delete the station that was made by your dealer/installer, the system will still tell you that the serialnumber is already in use. I suspect somewhere within the user account of my dealer/installer.
to be continued
revision 1: Initial assumption that it had something to do with a check box during the creation of the station. after some testing it seems it has nothing to do with the checkbox "share my station with other users" which can be checked when you create the station.
Connecting GoodWe inverter (solar system) to Domoticz
Moderators: leecollings, remb0
-
- Posts: 7
- Joined: Saturday 27 June 2015 2:05
- Target OS: Raspberry Pi / ODroid
- Domoticz version: latest
- Contact:
Re: Connecting GoodWe inverter (solar system) to Domoticz
Hi Bluebit,
I've digged around in the code and found the following: Alas I have not the setup yet to recompile and test it, but maybe there is someone who could use it in a pull request.
in GoodWeAPI.cpp
method:
you could maybe change the line
to
offcourse you must enter the stationID in the username field in domoticz afterwards.
Good luck!
Jurik
I've digged around in the code and found the following: Alas I have not the setup yet to recompile and test it, but maybe there is someone who could use it in a pull request.
in GoodWeAPI.cpp
method:
Code: Select all
GoodweAPI::GetMeterDetails()
Code: Select all
std::string sPATH = GOODWE_BY_USER_PATH + m_UserName;
Code: Select all
std::string sPATH = GOODWE_BY_STATION_PATH + m_UserName;
Good luck!
Jurik
-
- Posts: 12
- Joined: Monday 21 August 2017 14:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Connecting GoodWe inverter (solar system) to Domoticz
Yes, that's also what I think is best. I think my suspicion that my station is basically registered to the dealer account of my installer is correct. It seems that for that reason I don't get any stations / values back via the API with my username. Unfortunately the installer has no clue how to fix this, and trying to contact support from GoodWe to transfer the station to my account were quite frustrating and fruitless.
It also seems more logical to access an inverter based on the station-id, at least there is a bit more security by obscurity going on then.
My coding skills are definitely rusty, so I'm not sure where to begin with this one.
Perhaps this could be a feature request, to be able to acces an inverter based on username or station-id?
It also seems more logical to access an inverter based on the station-id, at least there is a bit more security by obscurity going on then.
My coding skills are definitely rusty, so I'm not sure where to begin with this one.
Perhaps this could be a feature request, to be able to acces an inverter based on username or station-id?
-
- Posts: 12
- Joined: Monday 21 August 2017 14:09
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Connecting GoodWe inverter (solar system) to Domoticz
Well,
My suspicion that my solar station is registered with the account of my dealer/installer, turned out to be correct. It seems that I only can view the data from my solar station in the portal.
Because of this, I cannot use the api based on username to access the data from my inverter.
But, I received an status e-mail on the 1st of september with a table in it, displaying the collected energy per day in August. In the cc of this mail, I saw an e-mailaddress of my dealer, GoodWe service and myself. The GoodWe portal uses your e-mailaddress by default for your username.
So I tried the api with the mailaddress of my dealer.....and poooff, I have now access to all the solar stations he installed, including my station.
Absolutely fantastic since I can compare my station to my neighbours solar station (they have 12 panels south, I have 11 east-west).
I'm absolutely flabbergasted by the lack of security / privacy in the GoodWe systems.....
My suspicion that my solar station is registered with the account of my dealer/installer, turned out to be correct. It seems that I only can view the data from my solar station in the portal.
Because of this, I cannot use the api based on username to access the data from my inverter.
But, I received an status e-mail on the 1st of september with a table in it, displaying the collected energy per day in August. In the cc of this mail, I saw an e-mailaddress of my dealer, GoodWe service and myself. The GoodWe portal uses your e-mailaddress by default for your username.
So I tried the api with the mailaddress of my dealer.....and poooff, I have now access to all the solar stations he installed, including my station.
Absolutely fantastic since I can compare my station to my neighbours solar station (they have 12 panels south, I have 11 east-west).
I'm absolutely flabbergasted by the lack of security / privacy in the GoodWe systems.....
Who is online
Users browsing this forum: Google [Bot] and 0 guests