bosch-thermostat / bosch-thermostat-client-python

Python3 asyncio package to talk to Bosch thermostat devices.
Apache License 2.0
23 stars 20 forks source link

Unable to authenticate #20

Closed deric closed 3 years ago

deric commented 3 years ago

Hi, I'm trying to connect to an IVT Air X heatpump API, using the token and password I've used login using IVT Anywhere Android app.

bosch_cli query --host 10.0.0.13 --token 2600139000xxxx --password secret --device IVT --protocol HTTP -p /gateway/uuid
2021-06-22 15:13:32 INFO (MainThread) [bosch_thermostat_client.bosch_cli] Connecting to 10.0.0.13 with 'HTTP'
2021-06-22 15:13:32 INFO (MainThread) [bosch_thermostat_client.bosch_cli] Query succeed: /gateway/uuid
2021-06-22 15:13:32 ERROR (MainThread) [bosch_thermostat_client.encryption.base_encryption] Unable to decrypt: b'\xb5d\x8f\xeaY\xd2N\xd4;K5\xdf\x171 \x004\xb6I\x1fY\x10\x18\xf4\xcf\x19\xa3\xc9+4p\x12\x17\xfc\xcc\xf1S\xb2Y\x7f\x11\x0cC\x1bNL\xach\xbd\x06\xda\xb7\x1d\x9a\x1f\xbe8\x80c1\xa1r\x84\xdeG\xdbu\xa0\xbcM\xab\x04O\xb7\xb2\xf1\x1d\x8c\x13\xcd7\xcc\xdaaZ=\xe3\xb0S\xb45.3\xac\xb7"\xca\x11*\xe2W\xd5\xd8\x91Q\xd1k\xbet\n\xc8%\xfc\xc5x\xc1\xaf\xff\xa2\xfc\x12t\xa8Y\xa1\x8a\x01r' with error: 'utf-8' codec can't decode byte 0xb5 in position 0: invalid start byte

Does the error mean that the password is wrong?

It there a way to check that I'm using correct combination of token and password? Can the password be somehow reseted?

deric commented 3 years ago

The token parameter is Passwort from the IP-Modul (random string containing multiple dashes). password is my local account password configured during first login from IVT Anywhere app.