maorcc / citymind_water_meter

Home Assistant Integration with cp.city-mind.com, an Israeli water meters reading service
Apache License 2.0
40 stars 2 forks source link

New version stops working with Mey Modiin #33

Closed yalmog99 closed 1 year ago

yalmog99 commented 1 year ago

Hi, After upgrading to the latest version, the intergration stops working with Mey Modiin. I n the log I get: Failed to post JSON to https://api.city-mind.com/consumer/login, HTTP Status: Bad Request (400)

Failed to load select for None Alert #23, Error: 'NoneType' object is not iterable, Line: 207 Failed to load select for None Alert #1001, Error: 'NoneType' object is not iterable, Line: 207 Failed to load sensor for None Messages, Error: object of type 'NoneType' has no len(), Line: 268 Failed to load sensor for None Alerts, Error: object of type 'NoneType' has no len(), Line: 306 Failed to load sensor for None Vacations, Error: object of type 'NoneType' has no len(), Line: 344

Can you help ? What's the solution ?

elad-bar commented 1 year ago

Did you create a new user for the new platform?

yalmog99 commented 1 year ago

No, I didn't know I should. I have my old account here: https://cp.city-mind.com/ Should I open somewhere else ? Should I reinstall the intergration ?

elad-bar commented 1 year ago

The reason for creating v2 was that citymind current portal will be end of life by end of year, Please register in their new platform at: https://rym-pro.com/#/

yalmog99 commented 1 year ago

Thanks. I created an account at: https://rym-pro.com/#/ I have a username (email) and password. I updated them in the integration configuration (thats what I assume I need to do, no titles there). Should I see new entities at home assistant ? I don't think I see.

yalmog99 commented 1 year ago

Update: After restarting Home assistant, I got the new entities. Thanks !

elad-bar commented 1 year ago

Great, thanks for the update