klejejs / python-thermia-online-api

A Python API for Thermia heat pumps using https://online.thermia.se
GNU General Public License v3.0
25 stars 10 forks source link

Issue with example.py #17

Closed andi5783 closed 1 year ago

andi5783 commented 1 year ago

Hi, installed the requirements using pip3 and want to test the example.py.

Script asks for credentials and says connected is true but then can't find a heat pump. I'm having a Thermia Calibra.

Do you have any idea?

[/share/Container/iobroker-data/scripts/thermia] # python3 example.py
Enter username: xxxx Enter password: xxxx Connected: True Traceback (most recent call last): File "/share/CACHEDEV1_DATA/Container/iobroker-data/scripts/thermia/example.py", line 17, in heat_pump = thermia.fetch_heat_pumps()[0] IndexError: list index out of range

andi5783 commented 1 year ago

By the way, I'm executing it from via SSH on QNAP NAS.

andi5783 commented 1 year ago

Sorry, I had to set the "genesis" string for the login to use this instead of classis.