Integration/connectivity monitor#167442
Integration/connectivity monitor#167442joshburkard wants to merge 16 commits intohome-assistant:devfrom
Conversation
There was a problem hiding this comment.
Hi @joshburkard
It seems you haven't yet signed a CLA. Please do so here.
Once you do that we will be able to review and accept this pull request.
Thanks!
|
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍 |
There was a problem hiding this comment.
Pull request overview
This pull request introduces the "Connectivity Monitor" integration, a new Home Assistant integration that monitors the connectivity status of various device types including network hosts (via ICMP, TCP, UDP), ZHA/ZigBee devices, Matter devices, ESPHome devices, and Bluetooth devices. The integration includes alert capabilities with configurable notification and automation delays, a custom Lovelace card for visualization, and comprehensive test coverage.
Changes:
- New integration with network probe, coordinator, and sensor platform modules
- Support for multiple device types (network, ZHA, Matter, ESPHome, Bluetooth)
- Alert handler for notifications and automation triggers with configurable delays
- Comprehensive test suite with 75+ tests covering setup, sensors, and alert logic
- Custom Lovelace card for status visualization
- Manifest and dependency configuration
Reviewed changes
Copilot reviewed 23 out of 26 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
homeassistant/components/connectivity_monitor/ |
Main integration code with network probe, device helpers, coordinator, and sensor platform |
tests/components/connectivity_monitor/ |
Comprehensive test suite with 1300+ lines covering all integration functionality |
homeassistant/components/connectivity_monitor/www/ |
Custom Lovelace card for displaying connectivity status |
requirements_all.txt, requirements_test_all.txt |
Dependencies (dnspython, icmplib) added |
homeassistant/generated/ |
Integration metadata files updated |
CODEOWNERS |
Ownership assigned to @joshburkard |
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
joshburkard
left a comment
There was a problem hiding this comment.
i added migration code for each needed type of device
joostlek
left a comment
There was a problem hiding this comment.
IMO, I think this isn't something that should be a separate integration, but rather something that works in core itself
I do not see an existing core feature that provides this as a unified monitor. Core already has pieces of it: Ping for ICMP reachability, ZHA last_seen and availability, Matter node availability, ESPHome availability, and Bluetooth unavailable tracking. TCP exists, but requires a defined payload and manual configuration. What imo is missing today is a generic, user-configurable layer that brings those signals together, adds network checks beyond ICMP, and exposes them through one monitoring and alerting workflow. That is the gap this PR is trying to fill. |
Breaking change
Proposed change
The new integration "Connectivity Monitor" helps you keep track of whether devices are online and reachable.
You can use it to monitor network hosts and devices connected through Bluetooth, ESPHome, Matter, or Zigbee. When a device changes status, the integration can notify you and trigger an automation or script after a delay that you define.
Type of change
Additional information
Checklist
ruff format homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all.To help with the load of incoming pull requests: