Skip to content

v2.1.0 — Health Monitoring & SSH Leak Fix

Choose a tag to compare

@pentafive pentafive released this 11 Mar 23:46

Fixed

  • SSH Connection Leak — When SSH timeout or error occurred, the old connection was orphaned without being closed. Leaked connections accumulated on the ONU, eventually overwhelming its SSH daemon. This was the root cause of both issue #2 and the 14-hour flapping event on 2026-03-10/11. (closes #2)
  • Docker bridge: SSH reconnection counter was incrementing on failed reconnects instead of successful ones

Added

  • MQTT Last Will & Testament (Docker bridge) — Entities go unavailable instantly when the bridge process dies, instead of waiting for MQTT keepalive timeout
  • Consecutive Errors sensor — Real-time count of back-to-back poll failures (resets on success)
  • SSH Reconnections sensor — Lifetime counter of SSH reconnect events
  • Error Rate sensor — Percentage of total polls that failed
  • Total Updates sensor — Lifetime counter of successful polls
  • Rolling Availability sensor — Percentage of successful polls over the last 60 polling intervals (1-hour window at default interval)
  • ONU Reboot Count sensor — Detects uptime rollback and counts reboots
  • Last Reboot Detected sensor — Timestamp of most recent detected ONU reboot
  • All new sensors are diagnostic entities — they appear under the device but don't clutter the default dashboard

Changed

  • async_close() now uses a shared _close_connection() helper for consistent cleanup
  • SSH error paths properly close connections before reconnecting

Full Changelog: https://github.com/pentafive/8311-ha-bridge/blob/main/CHANGELOG.md