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

Genesis to Online/classic Update (Genesis broken) #28

Closed Gjorret closed 2 months ago

Gjorret commented 7 months ago

Hi,

So had issue after Thermia "updated to v2" for my genesis access. It seems like that genesis has been moved to online/classic (or both being updated, dont know).

I was thrown the following error, but after changing to classic it works correct with my pump as well. Didnt know whether or not to post this as an issue, but now its here as info at least. Please close accordingly. Maybe genesis should be removed entirely if this is the case for everyone?

Regards, Gjorret


Exception has occurred: JSONDecodeError
Expecting value: line 1 column 1 (char 0)
StopIteration: 0

During handling of the above exception, another exception occurred:

json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

  File "C:\Scripts\Thermia\ThermiaOnlineAPI\api\ThermiaAPI.py", line 513, in __fetch_configuration
    return request.json()
           ^^^^^^^^^^^^^^
  File "C:\Scripts\Thermia\ThermiaOnlineAPI\api\ThermiaAPI.py", line 77, in __init__
    self.configuration = self.__fetch_configuration()
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Scripts\Thermia\ThermiaOnlineAPI\__init__.py", line 14, in __init__
    self.api_interface = ThermiaAPI(username, password, api_type)
                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Scripts\Thermia\example.py", line 27, in <module>
    thermia = Thermia(USERNAME, PASSWORD, api_type=API_TYPE)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
klejejs commented 2 months ago

It seems they have removed the Genesis API entirely and everyone now has to use the same API, thus it has been removed from the codebase.