Skip to content

Commit 1e206f9

Browse files
committed
Merge branch 'fix-auth-issues' - Release 2.0.2
2 parents 90667eb + 67d83f7 commit 1e206f9

8 files changed

Lines changed: 580 additions & 935 deletions

File tree

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Changelog
2+
3+
All notable changes to MOOX Track for Home Assistant will be documented in this file.
4+
5+
## [2.0.2] - 2025-11-28
6+
7+
### Improved
8+
- **Automatic reconnection**: When the server is unavailable or there are connection issues, the integration continuously retries in the background for up to 12 hours. No action is needed—it will reconnect automatically when connectivity is restored.
9+
- **Session management**: Automatic session recovery when the session expires, with smart retry logic.
10+
- **Connection resilience**: Exponential backoff for retries to avoid overloading the server during connectivity issues.
11+
- **Cached data usage**: The integration continues to display the last known device positions while reconnecting.
12+
13+
### Fixed
14+
- Improved handling of concurrent API requests during session expiration.
15+
- Grace period state now persists across Home Assistant restarts.
16+
17+
## [2.0.1] - 2025-11-26
18+
19+
### Fixed
20+
- Minor bug fixes and stability improvements.
21+
22+
## [2.0] - 2025-11-13
23+
24+
### Added
25+
- Initial release with full GPS tracking support.
26+
- Real-time device tracking with 40+ sensors.
27+
- Dual geofencing (MOOX app + Home Assistant zones).
28+
- Event and alarm detection.
29+
- OBD-II data support for compatible devices.
30+
31+
---
32+
33+
For more information, visit [moox.it](https://moox.it) or open an issue on [GitHub](https://github.com/moox-it/hass-moox-track/issues).

README.md

Lines changed: 112 additions & 428 deletions
Large diffs are not rendered by default.

README_it.md

Lines changed: 47 additions & 363 deletions
Large diffs are not rendered by default.
Lines changed: 5 additions & 0 deletions
Loading

custom_components/moox_track/const.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ def to_snake_case(camel_str: str) -> str:
3939
CONF_EMAIL = "email"
4040
CONF_USERNAME_DEPRECATED = "username"
4141

42+
# Grace period before escalating errors to user
43+
# For credentials that previously worked: wait longer (server might be temporarily down)
44+
AUTH_FAILURE_GRACE_PERIOD_HOURS = 12
45+
46+
# For credentials that NEVER worked: shorter grace period then prompt reauth
47+
# This handles the case where we can't tell if it's wrong password or server down
48+
AUTH_NEVER_WORKED_GRACE_PERIOD_HOURS = 1
49+
4250
EVENTS = {
4351
"deviceMoving": "device_moving",
4452
"commandResult": "command_result",

0 commit comments

Comments
 (0)