Closed eyalcha closed 2 years ago
Working for me
@elad-bar yes, I have tried it and it also works for me, but maybe it is because the old website is still up (https://cp.city-mind.com/Login.aspx).
שימו לב: היישומון הקודם ימשיך לעבוד עד לתאריך 31.12.2022
I can't use the integration because I'm a new user that can only login to their newer website, I don't have account on the old website and I believe this integration works on the old website...
@eyalcha is your previous integration support the new website?
I just investigated on their website and it seems pretty much straight forward... you have one simple call for login: https://api.city-mind.com/consumer/login with body: {"email":"user@gmail.com","pw":"password","deviceId":"anything_can_be_here"}
this retrieves a token that you can use in any other call later on (doesn't seem to have expiration date)
example call for daily consumption: https://api-ctm.city-mind.com/consumption/daily/lastbillingCycle/%20%20%20%201625/2022-09-10/2022-10-11
you need to add the token from the login call and add is as a "x-access-token" header.
hope it will help to speed things up :) Thanks
@nitaybz thanks for the details, I will try working during the weekend, I didn't manage to register to their platform, hope that by the weekend it will work for me, saw that they have changed the code to be a real web API so hopefully we will be able to integrate the component much better than what we have right now
I have fully reviewed the API, It has potential for many features on top of what available today like multiple meters, define and read alerts
Will start working on it later today or tomorrow.
@elad-bar It seems as if you register through the new website (rym-pro.com) and you don't have a user for the old website the username & password isn't recognized. Is there any chance you make the required adjustments for the new website?
thanks, as I wrote before I have mapped all the API (and also reintegrate the API), it's only because I managed to login, the only thing left to do is:
hope that by end of the day i'll have new release working with the new API
thanks
integration almost ready, need to check and fix the update alerts (already read them and have select, but update is not working yet)
integration is in PR: https://github.com/maorcc/citymind_water_meter/pull/29
@elad-bar Thanks for updating the integration, I can confirm it works for me now. However I tried to use the recommended Lovelace Mini Graph Card and it seems as if I don't get any information from the suggested URL ('https://cp.city-mind.com/Default.aspx') even after adding the water meter serial number. Is there any chance there is a new URL that will work for me?
Not sure i understand the question, site you have mentioned is the deprecated one, in v2 we are not using it anymore
In the documentation you mentioned the recommended option to add Mini graph card and you added the script needed for it to work. However, the URL weblink still pointing to the old website and therefore I'm not getting the graphs. I'm guessing that by changing the weblink it can work and wonder what's the proper URL address.
Ah... right, we need to update the documentation
@elad-bar Can you please share the right URL in the meantime?
Available in the first post
If you mean: https://rym-pro.com/#/
Then it's not working for the Mini Graph Card.
Do you mean:
- type: weblink
url: 'https://cp.city-mind.com/Default.aspx
Yes
Updated documentation and better failed login error handling
Version 1.x of integration created to support cp.city-mind.com portal, this portal is end of life set to 31/12/2022.
Version 2.x of integration is to support the new portal of Read Your Meter Pro, Please note that if credentials for 2 portals are different and requires registration, Please follow the prerequisites section below to make sure the integration will work for you.
If your city is not supported by new Read Your Meter Pro portal, you can keep using v1.x of integration up until the previous portal is EOL.
Yes
if you meant for the errors in card, that's not related to the URL, that's because the name of the entities changed, you need to find them and update accordingly, the card was not created by us, it's just an example how to use it.
As for the URL, just replace it and it will redirect to the new portal.
Indeed the (Read)ing (in the entity name) made the difference. Thanks, working as expected:-)
Indeed the (Read)ing (in the entity name) made the difference. Thanks, working as expected:-)
great, thanks for the update :)
can we close this issue? will create later this evening a thread in home-assistant forum, we can also have a discord channel if you would like, just let me know what you prefer
Yes, you can close the issue. Many thanks for you support and effort.
thanks!
Thank you very much :)
Is the change in Arad website(read your meter pro) has influence on this integration?
https://rym-pro.com/#/