Hi @klacol
I tried to install your plugin, while setting all this information, I can not have it working, I tried you python code and it give me this
Traceback (most recent call last):
File "config/test.py", line 9, in <module>
parsed = json.load( clageHomeServer.requestStatus() )
File "/usr/local/lib/python3.9/dist-packages/clage_homeserver/clage_homeserver.py", line 398, in requestStatus
response = ClageHomeServerMapper().mapApiStatusResponse(status)
File "/usr/local/lib/python3.9/dist-packages/clage_homeserver/clage_homeserver.py", line 29, in mapApiStatusResponse
heater = status.get('devices')[NUMBER_OF_CONNECTED_HEATERS-1]
TypeError: 'NoneType' object is not subscriptable
If I run the url to my server and enter manually the login and pass , it gets me this JSON:
https://192.168.10.2/devices/status/20XXXXX8A9
{
"version": "1.4",
"error": -1,
"time": 1661624007,
"success": false,
"cached": true
}
devices does not seem to be defined…
EDIT: issue solved, the id of my DSX was improperly set and had to change the code of the clage_homeserver.py
file
line 192 - from
POWERMAX_DSX = {
120: 18000,
140: 21000,
160: 2400
}
to
POWERMAX_DSX = {
120: 18000,
140: 21000,
160: 24000,
180: 27000
}