Ludy87 / ecotrend-ista

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

ISTA Netherlands #189

Closed serot23 closed 3 weeks ago

serot23 commented 6 months ago

Discussed in https://github.com/Ludy87/ecotrend-ista/discussions/188

Originally posted by **serot23** March 20, 2024 Hi there, I am not that technical in the sense that i understand how pulls etc works in github and how to make my own version by using an api or something. But in the Netherlands we also have ISTA (unfortunately) and i would like to inplement it in HA, but i can't use this integration, which is a bummer. Is is something simple as adding countries to your integration or is it a lot of work to add extra apies or something? Kind regards Serot23
sems commented 5 months ago

I second this -- will be following the topic!

vinnie4v2 commented 5 months ago

+1, Also is there support for sensonic 2 meter?

github-actions[bot] commented 4 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

serot23 commented 4 months ago

Does someone with better github knowledge know how we could contact the developer, because of no activity the tocket is going to close itself

habandy commented 4 months ago

I think you have to understand that this is something like a sparetime project of an private person. no company or something fimiliar is working on this. you have only two options. creating this issue and commenting it and hope that the developer sees and hear you or you start trying to fork this repository and modify/update it by yourself.

serot23 commented 4 months ago

I think you have to understand that this is something like a sparetime project of an private person. no company or something fimiliar is working on this. you have only two options. creating this issue and commenting it and hope that the developer sees and hear you or you start trying to fork this repository and modify/update it by yourself.

I understand that part definitely. I just don't understand github that well. That is also the reason i try not to spam the creator of the integration because i know it is someones spare time project. That is why i asked if someone else with more github knowledge can verify if i had chosen the right oath or can suggest or help going to pick a different way

github-actions[bot] commented 3 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

serot23 commented 3 months ago

I tried to make a fork. I tried to change some codes but i failed.

Ludy87 commented 3 months ago

This is not possible with the currently used API or library

serot23 commented 3 months ago

Would it help if i shared the link to to api of the dutch version? https://api.istanederland.nl/

tr4nt0r commented 2 months ago

What really would help here, is if someone gave us access to their ista NL or ista DK account. Or maybe could get in touch with the ista branch in their country and ask if they can set up a demo account (Customer service in germany was not so helpful). This way I could reverse engineer the API. Only the link to the login page is not enough, i need to see the whole login process and also how the consumption data is transferred. And I need to be able to test while developing.

serot23 commented 2 months ago

What really would help here, is if someone gave us access to their ista NL or ista DK account. Or maybe could get in touch with the ista branch in their country and ask if they can set up a demo account (Customer service in germany was not so helpful). This way I could reverse engineer the API. Only the link to the login page is not enough, i need to see the whole login process and also how the consumption data is transferred. And I need to be able to test while developing.

I have contacted the ista support and they told me the link to 5he api and that was it to it. And that i needed to figure it out from there on. The link i send before is the page they referred to and you don't need to log in for that. https://api.ista.nederland.nl is that enough for you or do you need more. Here is the link to the demo api: https://api.istanederland.nl/Home/sdk https://api.istanederland.nl/sdk/ista_WebApi_SDK_app.zip

tr4nt0r commented 2 months ago

That doesn't help. I think that API is intended for administrators (like facility manager or landlords), not for residents.

serot23 commented 2 months ago

That doesn't help. I think that API is intended for administrators (like facility manager or landlords), not for residents.

O that's a bummer. I will send a new mail tomorrow to them it's late now. But if it would be still like you said for facility managers. And say i gave you my loggin details, would it than help to reverse engineer or something like that to get it work?

Edit: i told them already in my previous mail i would like to use the api to get it in home assistant to see my own data and thay responded with the following:

Excuses voor de late reactie.

Het is gewoon mogelijk om zonder apikey in te loggen met je gebruikersnaam en wachtwoord voor MijnIsta.

Zie Swagger UI (ista.nl): https://mijn.ista.nl/swagger/index.html

So translated it says, it is just possible to loggin without an apikey with a username and password for mijn ista and i there is a demo option in the url he send me. image001

tr4nt0r commented 2 months ago

Oh, thats helpful! and they also use keycloak, same as the german ista portal. Unfortunately, the demo login doesn't work, i'm getting an internal server error

serot23 commented 2 months ago

Oh, thats helpful! and they also use keycloak, same as the german ista portal. Unfortunately, the demo login doesn't work, i'm getting an internal server error

Aah yeah i see i have the same error. I will try contact them to fix it, will update if i have a responce but i think it will take a long time because we are in the summer period here so almost everyone is on vacation or is planning to go in the coming weeks

tr4nt0r commented 2 months ago

That image, where did you get it from? Is it from that demo application you can download? (i can't use it without a login or api key)

serot23 commented 2 months ago

That image, where did you get it from? Is it from that demo application you can download? (i can't use it without a login or api key)

That image is from the mail i received back than. I can't login with my own details, get the same result as the demo loggin. I have emailed the guy from ista which send me the image and url, so i hope he responces quickly

tr4nt0r commented 2 months ago

The demo account is finally working and showing actual (fake) consumption data. There are quite some differences in data format and you seem to have heating broken down by room. The german ista portal doesn't have that. The historical consumption values are not broken down by month but i think it still can be retrieved from the API. Do you know how often the data is updated? Do you get each day or week new values? Or only each month?

The login authentication also uses keycloak but there are some differences in the configuration, that will require quite some work. And because of the differences in the data, I think it is better to develop a new integration.

serot23 commented 2 months ago

The demo account is finally working and showing actual (fake) consumption data. There are quite some differences in data format and you seem to have heating broken down by room. The german ista portal doesn't have that. The historical consumption values are not broken down by month but i think it still can be retrieved from the API. Do you know how often the data is updated? Do you get each day or week new values? Or only each month?

The login authentication also uses keycloak but there are some differences in the configuration, that will require quite some work. And because of the differences in the data, I think it is better to develop a new integration.

Yeah each room/radiator has his own measuring device connected to it. You can select to view a month of consumption. If i am not mistaken, the data refreshes every 3 days. But i can't find it anywhere written. And else it is definitely once a month. Because it's summer now and hot enough, I can't test it. I really have zero experience wirh apis or creating an integration. But i will gladly help anywhere where i can if you or someone else want to give it a try. I tried to make an integration with the help of google and ai but it didn't work

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 weeks 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.