v1.10.2 — Stream Ultra X, Delta 2 and MQTT stability fixes
Bug-fix release addressing three community-reported issues.
Fixes
Stream Ultra X — Battery / Solar / Grid binary sensors stuck on Unknown (#42)
Device definitions used derived: True together with key but no explicit derive_from, so the runtime skipped the derived branch and treated wattage readings (powGetBpCms, powGetPvSum, gridConnectionPower) as raw booleans. The runtime now falls back to key when derive_from is unset, which fixes Battery Charging, Battery Discharging, Solar Generating, Grid Consuming and Grid Feed-in on Stream Ultra X (and is forward-compatible for any future device).
Delta 2 — Failed to perform the action number/set_value … state value '2' (#41)
bms_chg_state / ems_chg_state only declared options for 0 → not_charging and 1 → charging, but Delta 2 also reports 2 (discharging). The unmapped value tripped Home Assistant's ENUM validation and cascaded into unrelated number/set_value failures. Options/value_map now include 2 → discharging and a default → unknown catch-all. not_charging is retained for state 0, so existing automations and templates continue to work without changes.
MQTT stream silently freezes until reload (#39)
EcoFlow's MQTT broker occasionally throttles idle clients without closing the TCP socket, so paho's auto-reconnect never fires and live updates stop. A silence-detection watchdog now runs inside the hybrid coordinator: every 60 s it checks the time since the last MQTT message, and if the connection is reported alive but quiet for more than 180 s it tears down the MQTT client and reruns the setup to get a fresh session. The watchdog is fully cancelled and awaited during shutdown to avoid zombie clients.
Links
- Merged PR: #43
Install
HACS users: update the integration from HACS → EcoFlow API → Update.
Manual users: copy the updated custom_components/ecoflow_api/ folder and restart Home Assistant.