Solved, Initial Release: https://github.com/sincze/Domoticz-Grow ... ver-Plugin
Looking at the API calls from the APP they have and it is unfortunately HTTP.
I have to post the password in md5 and the username to a url.
Code: Select all
sendData = { 'Verb' : 'POST',
'URL' : '/newTwoLoginAPI.do',
'Headers' : self.apiRequestHeaders(),
'Data': "password="+password.hexdigest()+"&userName="+Parameters["Username"]
}
Domoticz.Debug("SendData: "+str(sendData))
Connection.Send(sendData)
Code: Select all
2019-08-11 00:36:53.666 (Growatt via Google) ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** POST./newTwoLoginAPI
2019-08-11 00:36:53.667 (Growatt via Google) ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** .do.HTTP/1.1..Author
2019-08-11 00:36:53.667 (Growatt via Google) ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ization:Basic.d2JsZX
2019-08-11 00:36:53.667 (Growatt via Google) ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ** ****************==..