login problem in domoticz-python-melcloud plugin

For heating/cooling related questions in Domoticz

Moderator: leecollings

Post Reply
Renni
Posts: 1
Joined: Friday 10 May 2019 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

login problem in domoticz-python-melcloud plugin

Post by Renni »

Hi,

Trying to install domoticz-python-melcloud plugin, but hit to problem.
Environment is raspberry PI
Domoticz:
Version: 2021.1
Build Hash: 8547c5b7e
Compile Date: 2021-04-17 18:29:11
dzVents Version: 3.1.7
Python Version: 3.7.3 (default, Jan 22 2021, 20:04:44) [GCC 8.3.0]
and Melcloud plugin version 0.7.8 from https://github.com/gysmo38/domoticz-pyt ... /plugin.py

with small modification in line 436 to get Test script working.
Current 436 in plugin.py :
data = {"Appversion":"1.9.3.0", "Email":Parameters["Username"],"Password": Parameters["Password"] }

after that change I got test working ok :

Code: Select all

/domoticz/plugins/Melcloud $ python3 plugin.py
Log : debug_Level: 62
Debug : requestUrl: https://app.melcloud.com:443
Log : MELCloud connection OK
Debug : JSON REPLY: {'ErrorId': None, 'ErrorMessage': None, 'LoginStatus': 0, 'UserId': 0, 'RandomKey': None, 'AppVersionAnnouncement': None, 'LoginData': {'ContextKey': 'DA....
Plugin via Domoticz does not connect and information in log :

Code: Select all

2021-11-30 22:16:41.074 ILP hardware started.
2021-11-30 22:16:41.695 ILP: (ILP) MELCloud connection OK
2021-11-30 22:16:41.797 ILP: (ILP) JSON REPLY: {'ErrorId': 1, 'ErrorMessage': None, 'LoginStatus': 0, 'UserId': 0, 'RandomKey': None, 'AppVersionAnnouncement': None, 'LoginData': None, 'ListPendingInvite': None, 'ListOwnershipChangeRequest': None, 'ListPendingAnnouncement': None, 'LoginMinutes': 0, 'LoginAttempts': 0}
2021-11-30 22:16:41.797 ILP: (ILP) MELCloud login fail: check login and password
2021-11-30 22:16:41.074 Status: ILP: (ILP) Entering work loop.
2021-11-30 22:16:41.075 Status: ILP: (ILP) Started.
2021-11-30 22:16:41.350 Status: ILP: (ILP) Initialized version 0.7.8, author 'gysmo'
2021-11-30 22:17:13.091 ILP: (ILP) MELCloud has disconnected
2021-11-30 22:17:13.092 ILP: (ILP) Goobye from MELCloud plugin.
2021-11-30 22:17:13.083 Status: ILP: (ILP) Stop directive received.
2021-11-30 22:17:13.161 Status: ILP: (ILP) Exiting work loop.
2021-11-30 22:17:13.183 Status: ILP: (ILP) Stopping threads.
2021-11-30 22:17:13.183 Status: ILP: (ILP) Stopped.
Compared multiple times that username and password are same in TestCode.py and Domoticz UI - did also copy-paste from TestCode.py to UI field.
herbod
Posts: 8
Joined: Wednesday 22 January 2020 22:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: login problem in domoticz-python-melcloud plugin

Post by herbod »

See https://github.com/gysmo38/domoticz-pyt ... /issues/27 for the solution. It made it work for me, but still a lot of errors in the log
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests