Releases: maorcc/citymind_water_meter
Added version key to the manifest file
There is also another issue to fix for 2021.6
First release (after no bugs were reported on the beta)
Besides a major code refactoring, there is what's new in this release...
Changes in this release:
- The configuration has moved from YAML to the UI.
- The 2 sensors have been replaced with 5 sensors. See README.md for details.
Breaking Changes
When upgrading from v0.x.x to v1.0, please remove any use of "citymind_water_meter" platform from configuration.yaml
.
Configuration is now only available via the UI.
Credits
Many thanks to @elad-bar for his help in this release.
Simplify session management
Discard any use of cookies in our code, because the server only needs session information that
it hides in input tags inside the HTML of a previous request.
Strange server indeed. But it seems to work reliably this way.
Perform login on every data request, but reuse the existing session
The handling of sessions by the water meter server (based on ASP.NET) is very strange and non-standard.
I've documented my observations in the code, inside the file sensor.py.
Hopefully, we will not see more surprises.
Better handling of session expiration
Added many error handlers for better error reporting.
Optimized Login
Log in once, on first need, and then just reuse the access token.
Instead of having a hard-coded session in code, on startup get a session from the server, then log-in with that session, and then keep in memory the token for all future data fetches. This should fix login issues for devices that already got allocated by the service to a different session.
Initial Release
This is the first beta release of this integration.
This integration is relevant only in Israel.
Feedback is most welcome. Please open issues.