🔄 Changed
- The device status is polled from pushes, not on a 30 s timer: BLUETTI asks clients not to call its device status API on a timer, ahead of rate limits on it (bluetti-official/bluetti-home-assistant#212). (#122)
- A realtime push now asks for a poll, at most one a minute per device, and its powers still reach the entities as it arrives.
- The timer only polls a device that has had no poll for 5 minutes, to catch a silent websocket, a rejected token or a unit gone offline.
- What only a poll brings (the battery level, a mode or a switch changed in the BLUETTI app) shows within a minute while pushes come in, within 5 minutes otherwise. A device that never pushes, or whose real-time connection the cloud rejects, now updates every 5 minutes instead of 30 s.
- A failed poll whose values are kept is retried 1 minute later: two of them keep the last values for about 2 minutes before the entities go unavailable, then polling goes back to every 5 minutes.
- The "real-time updates unavailable" repair now says data still updates every 5 minutes.
Covered by tests, not yet confirmed on a device: how often a given model pushes decides how fresh its battery level is.
Full Changelog: 2.2.0.b3...2.2.0.b4