v0.3.13 - On-demand cloud session + confirm/retry (PR #8)
On-demand cloud session, confirm/retry & diagnostics (Eletta / ECAM)
Merges @TischenkoArseny's cloud-session rework (#8), tested on a real Eletta Explore. The PrimaDonna Soul (DL-millcore) path is unchanged - all of this is gated behind ECAM/Eletta models (uses_cloud_session).
Fixes & changes (Eletta / ECAM only)
- Cloud session is now registered on demand, right before a command - never during the background poll. Fixes the "Your Eletta is already connected" block: Home Assistant no longer holds a permanent session, so the official Coffee Link app can claim its own slot again.
- HA now waits for the cloud to confirm the session before sending Wake/Standby. Ayla can take ~90 s (and sometimes several minutes) to acknowledge; before that, commands return HTTP 200 but the machine ignores them. The first press after a long deep-standby may take a couple of minutes.
- Transient Ayla errors (429/502/503/504) are retried instead of failing the command.
- Session is cleaned up on integration unload.
- New diagnostic sensor
Cloud Session app_idshowing who holds the session (free/ha/foreign).
Upgrade
Update via HACS, then restart Home Assistant (a reload does not reload the new code).
Relates to #1. Thanks @TischenkoArseny for the deep testing. ☕