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

Error setting register #18

Closed Tobti closed 1 year ago

Tobti commented 1 year ago

HI!

Thanks for a great job!

I have been using your api for more then 1 year and so far hade no problem, and if any, i just updated to the latest, and it just worked.

But this time i start to have a problem yesterday and then i updated to the latest version, but i sill have the same problem. I get this error message where ## is the register number i try to set.

"Error setting register ## value. 400"

The Thermia app still works good. I tried to create a new account and tried an other computer and on an other site. Still the same problem. Any suggestions?

Gjorret commented 1 year ago

Im suddently getting the same issue.

Error setting register 33617 value. 400

It started happening marts 22.

Im still collecting data correct, its only when trying to set the comfort temperature.

Edit: Okay, lol, after updating to latest version it works again - so i guess it fixed :) THANKS!

Tobti commented 1 year ago

I have Ver 3.13 and still a problem. The updated to 3.13 solved the issue of setting the wanted temperature, but the rest of the registers are not possible to set so example registers 51 & 63. I'm usings the classic interface, if this is of any help.

Thanks in advance!

fclauson commented 1 year ago

It seems they have moved from register ID to registerSpecificationId for how they address the Servier to change Registers @klejejs

the code needs to move from "registerIndex": reg, "registerSpecificationId" : reg,

and the associated numbers need to change for each reg - e.g. 1053 is now 7046 
fclauson commented 1 year ago

Strange thing to change on the clock change / equinox (which is what I thought was the problem

Tobti commented 1 year ago

I Changed from "RegisterIndex" to "RegisterId" in Heatpump.py line 289 and TermiaAPI line 236.

Now it works for me :)

Core242 commented 1 year ago

I'm using the Genenis interface and unfortunately your fix didnt help me Tobti. However changing line 301 in ThermiaAPI from "registerindex": switch_data["RegisterIndex"] to "registerindex": switch_data["RegisterId"] gave me the posibilitiy to change the switches again. Thanx for the hint anyway.

klejejs commented 1 year ago

Thanks for the suggestions! There were further Thermia API changes. Please check if there are still issues with the latest version and reopen the issue if problems persist.