Skip to content

version 0.8.0.27

Latest

Choose a tag to compare

@twrecked twrecked released this 15 Oct 11:29
· 1 commit to master since this release
fd72771

🐛 Bug Fixes & Stability

  • MQTT & Auth Token Reconnect: Fixed an issue where Arlo authentication tokens
    expired after 2 hours when using the MQTT event stream backend. The periodic
    reconnect daemon now runs for MQTT as well as SSE, gracefully disconnecting
    and re-authenticating before tokens expire to ensure long-term connection
    stability.
  • Automatic Session Recovery (HTTP 401 & Meta 9204): Added automatic session
    recovery to the shared HTTP request pipeline. Any REST API calls that
    encounter a 401 Unauthorized or session expiration (meta error 9204) will
    now trigger a thread-safe re-login in the background and retry the request
    once, preventing failures when arming/ disarming modes, pinging base
    stations, or fetching snapshots.
  • MQTT Lifecycle Robustness:
    • Added on_disconnect tracking and automatic re-login triggers on repeated
      unexpected disconnects.
    • In on_connect, non-zero return codes (e.g. auth rejected) immediately
      force a disconnect so the event thread can refresh authentication instead
      of spinning in an unauthenticated reconnect loop.
    • Device states are refreshed automatically via self.devices upon successful
      MQTT reconnects to restore entity availability immediately.
  • Stream & Device Handlers (Included from integration):
    • Restores camera idle states and clears stream URLs cleanly when stopping
      streaming activities.
    • Improves device refresh logic so that camera/base dual-entity devices
      (e.g., Essential, Pro 4/5/6) update sensors and battery levels
      simultaneously across all objects sharing a device ID.
    • Adds fallback dispatch for base station events by sender ID.

🧪 Tests

  • Added a test suite (tests/test_backend_reauth.py) covering 401 retry loops,
    meta 9204 expiration recovery, MQTT/SSE reconnect handlers, and scheduler
    setup/cancellation.

─────────────────────────────────────

Home Assistant Compatibility

For Home Assistant users testing with custom_components/aarlo, you can point
your manifest.json requirements directly to:

     "requirements": [
       "unidecode",
       "pyaarlo==0.8.0.27",
       "aiofiles"
     ]