Ludy87 / ecotrend-ista

ecotrend-ista Home Assistant Integration
MIT License
36 stars 1 forks source link

Login domain request #41

Closed TheRealRWJ closed 3 months ago

TheRealRWJ commented 1 year ago

info

Many thanks for this ecotrend_ista integration. Unfortunately i am unable to use it Ista is available in different countries.

Error

When I use my credentials of mijn.ista.nl, (the dutch website) The Home assistant throws a login error and refers me to https://ecotrend.ista.de/error , assuming the script tries to login on the https://ecotrend.ista.de server.

Question

Is it an option to change the code so the script tries to login on https://mijn.ista.nl I am happy to troubleshoot is it doesn't work

OR Request

Can you please add the option to enter a domain to login on another (dutch) ista web server.

Ludy87 commented 1 year ago

The data structure is different on the site, so I'll have to see how best to implement this. Either integrate it into the main integration or I create a complete extra integration.

TheRealRWJ commented 1 year ago

Thanks Ludy for your swift reply

Let me know if you need someone to test or troubleshoot

Greetings Richard

Ludy87 commented 1 year ago

@TheRealRWJ is there an Android app for the Netherlands?

TheRealRWJ commented 1 year ago

Yes there is, and you can find it here: https://play.google.com/store/apps/details?id=com.companyname.ista.nl.app&hl=en&gl=US&pli=1

OR do you want me to do something else with it?

Ludy87 commented 1 year ago

Thanks, the login routine is different from the master one, so I need to find a way and android applications are good for finding a way.

Maybe I can find a way to integrate the Netherlands.

TheRealRWJ commented 1 year ago

I don't use the android app, but I gathered some details from the webpage though. I hope this helps

I can only test heating, because I did not find a water meter, unless it is build in somewhere in the walls which seems unlikely.

The https://mijn.ista.nl/Home page shows the sum of usage of all radiators and a building average usage (which I would like to use)

The https://mijn.ista.nl/Home/Graph page shows a graph of the usage per radiator

At last the https://mijn.ista.nl/Home/Data page shows info below for every radiator.

Bedroom 422xxxx87 781 units

Radiatornumber  1   
Order   1   
End value   1.050   
Begin value 0   
Difference  1.050   
Conversionfactor    0.875   
Multiply    1   
Consumption 919 units   
Reduction % 15  
Begin date  01-01-2022  
End date    13-12-2022  

Units appears to be the interger a rounding of consumption / reduction

End value and begin value seem to be the beginning of the year and current value End value / conversionfactor seems to be consumption rouded

I have no clue why what the difference is of End value and difference

I started living in this apartment in december 2021, so it the ista devices were not new Maybe I will know on january first 2023

Questions: Does your python script do some calculation of usage per day? I really like to compare it with the outside temperature.

Does your script read the building average? I would like to be able to compare my neighbours with others I will be storing the data in Influxdb to create long term Grafana Graphs

Thanks in advance

Ludy87 commented 1 year ago

Thank you for your data, I have more questions about that later.

The integration can only work with the data that is partially provided by ista.

When I look at your data status, it will not be up to date.

These are the values ​​that can be read out if they are available.

Room
Meter number
Consumption
Radiatornumber
Order
End value
Begin value
Difference
Conversionfactor
Multiply
Consumption
Reduction %
Loss
Begin date
End date
Billing period:
Compare:
Service:
Billing period:
Measurement period:
Compare to billing period:
Compare to measurement period:
Dwelling:
Total
TheRealRWJ commented 1 year ago

Happy holidays

mikastrup commented 1 year ago

Same error here but for the danish version.

I can login on the ista Ecotrend APP from my Android, but don't know if it is only the danish webserver working on the app.

maybe possible worldwide (worth a shot) https://play.google.com/store/apps/details?id=dk.ista.IstaUi

Ludy87 commented 1 year ago

@mikastrup is there a website with dashboard?

TheRealRWJ commented 1 year ago

Hi Ludy, Happy new year.

Yes, there is a dashboard. The url is https://mijn.ista.nl/Identity/Account/Login

What else would you like to know?

ggonmar commented 1 year ago

+1 on this request, extending it from out of the Netherlands: Ista is extremely popular in Spain, but this integration doesn't seem to work with our platform -> https://www.ista.com/es/oficina-virtual-ista/

I'd be happy to try to help develop this, but I don't even know where to start...

TheRealRWJ commented 1 year ago

Hi Ludy,

I do not mean to pressure you. doe you have any indication when you will be able to release this?

thanks in advance

sorenlouv commented 1 year ago

Hi there

Thanks for the awesome work so far @Ludy87 !

I too am unable to use this integration because I'm located in Denmark. I'm seeing this error in the logs:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/pyecotrend_ista/pyecotrend_ista.py", line 57, in __login
    raise LoginError(await response.json())
pyecotrend_ista.exception_classes.LoginError: Login fail, check your input! {'key': 'unauthorized-request', 'message': None}

To add some details for the Danish version of Ista: Web: https://www.istaonline.dk/Login.aspx Android app: https://play.google.com/store/apps/details?id=dk.ista.IstaUi

I'd be happy to provide you with credentials (in a safe manner) to the Danish version if that can help you debug this

TheRealRWJ commented 1 year ago

Hi Ludy,

Are you still working on this issue?

Thanks in advance.

Ludy87 commented 1 year ago

Hello, yes I'm still working on it, but I don't have much time at the moment - it's more complex than I thought.

ggonmar commented 1 year ago

do let us know if we can help!

github-actions[bot] commented 3 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] commented 2 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.