-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect base URI for sub-providers #16
Comments
Same here, in Le Chesnay, www.seop.fr works the same way. I'll work on a PR and hopefully this can be integrated so Home Assistant plugin in my case can be updated as well |
You can try to use this other package: It supports providing the url on command line. |
Problem is projects like Home Assistant are still referring to the other project. Setting the URL manually seems to be a user overhead and not necessary from what I gathered |
Yes ... I am aware of this... Also, I am preparing either a new integration, or improvement of "suez_water" that will have a proper configuration flow. Note also that |
Excellent, if you can just add the follow redirect so we don't have to set the provider URL, that would be golden ! |
Excellent news! I'm using HA as well and made a script to auto patch it each time an update is coming :'( 🐖 |
Guys, |
Since fews years Suez has begun (maybe by law) to delegate water distribution to local sub providers.
When this happens, everything works the same way, but the base URI might change according to the sub provider one.
If not doing so, a call to the API might result into the error message "Issue with yesterday data" or something so.
Looking at the code I see this issue has already been met by some users and the 2 following lines have been added to client.py
(line ~45)
Now for my special case, everything is working fine if we add the 2 new following lines
So I think there are or there will be many other cases in the future so can we imagine the following addition ?
- Add a new command line option let's say "-b" (for base URI) and having the ability to directly override the default one
This way it could leave a chance for users in this case to use this wonderful project ;)
So in my case I could call pysuez -u '[email protected]' -p 'topsecretpassword' -b 'https://eaudubaslanguedoc.toutsurmoneau.fr'
=> And after that, add this new option to the home assistant Lovelace Sensor ^^' (Because yes .. this is my final goal ! :)
I'm sorry could have done un pull request myself, but my computer just died ... (to much coding I guess) and my work computer, which I use to write this, do not let me access github ...
Anyway have a nice day and thank you for this useful work
Stéphane
The text was updated successfully, but these errors were encountered: