Skip to content

About

Monitor your cable modem's signal, errors and uptime in Home Assistant. Local only. Arris, Motorola, Netgear, Technicolor and other DOCSIS modems.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

62 stars

Watchers

1 watching

Forks

Latest commit

 

History

1,542 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cable Modem Monitor for Home Assistant

GitHub Release Core Catalog HA analytics installs License: MIT

GitHub Actions CodeQL

AI Assisted Supported Modems

Your modem's status page only shows right now. When the internet drops at 9 pm, the evidence is gone by morning. Cable Modem Monitor keeps watching: it notices when the modem stops answering, and keeps a history of every channel's power, signal to noise and errors, so the bad hour is still there when you go looking.

⭐ If you find this integration useful, please star this repo! It helps others find the project.

Cable Modem Health Dashboard

🤖 AI-Assisted Development: This project uses AI-assisted development (Claude) to accelerate implementation while maintaining human oversight for architecture and community decisions.

Quick Links


Development

New contributor? Start with the Getting Started Guide (environment setup, running tests, your first commit).

Returning contributor? See the Contributing Guide for workflow, code style, and PR guidelines.

Architecture: Two runtime pip packages in packages/ (Core + Catalog) plus a thin HA adapter in custom_components/. A third package, Catalog Tools, holds the authoring tools (HAR analysis, YAML generation, verification) for contributors and maintainers; HA never installs it. See CONTRIBUTING.md for details.


Overview

What it monitors:

  • 📊 Signal Quality: Power levels, SNR, frequency for every channel
  • ⚠️ Error Tracking: Corrected & uncorrected errors per channel
  • 🔌 Connection Health: Status and last boot time (shown as time since boot)
  • 💓 Modem Health: Real-time TCP latency, plus ping and HTTP latency where the modem answers them
  • 📈 Trends: Full historical data for analysis and graphing

What it does:

Screenshots

Track your cable modem's health with comprehensive dashboards and real-time monitoring:

Downstream Power Levels
Real-time power level monitoring across all downstream channels

Signal-to-Noise Ratio
SNR tracking helps identify signal quality issues before they cause problems

Modem Latency Monitoring
Latency monitoring for real-time health assessment: TCP always, ping and HTTP where the modem answers them

Corrected Errors
Track corrected errors over time to spot developing line issues


Features

Monitoring

  • Comprehensive Channel Monitoring: Tracks all downstream and upstream channels
  • Per-Channel Metrics: Power (dBmV), SNR (dB), frequency (MHz on Home Assistant 2026.5 and later, Hz before), corrected and uncorrected errors
  • Summary Sensors: Total corrected and uncorrected downstream errors, where the modem's catalog entry declares them
  • Unified Status: One sensor combining connection, health and DOCSIS lock (see Modem Status)
  • System Information: Software version, channel counts, and last boot time (shown as time since boot)
  • Health Monitoring: TCP latency, ping and HTTP latency where the modem answers them, plus an automatic health status
  • Login protection: Rejected credentials trip a circuit breaker that stops further login attempts until you re-enter credentials or reload the integration; on some modems repeated bad logins cause a lockout or even a restart

Control

  • Modem Control: Restart your modem directly from Home Assistant
  • Automation-Friendly: Last boot time sensor with timestamp device class for reboot detection
  • Dashboard Ready: Create graphs and alerts based on signal quality

For Developers

  • Extensible: Each modem is a catalog entry of YAML config, with Python only for firmware quirks
  • Well Tested: Core, Catalog, Catalog Tools and HA integration suites run in CI (badge above)
  • Type Safe: Full type hints, mypy and pyright validation

Supported Modems

This integration supports modems from ARRIS, CommScope, Compal, Hitron, Motorola, Netgear, Sagemcom, SDMC, Sercomm, Technicolor and Ubee, including ISP-branded boxes such as Virgin Media and Xfinity. Compatibility varies with firmware and ISP customization.

View the Supported Modems List - Complete list with DOCSIS versions, ISP compatibility, verification status, and model timelines.

Adding a Modem

The catalog grows when contributors with hardware step up. Two paths:

Modem listed as ⏳ Awaiting? Report it working to help verify support.

Installation

Marketplace (Recommended)

The Marketplace is built into Home Assistant 2026.11 and later. On earlier versions, install through HACS instead: open HACS from the sidebar, search for "Cable Modem Monitor" and click Download.

  1. Open Settings → Marketplace.
  2. Search for "Cable Modem Monitor" and open it.
  3. Click Install.
  4. If Home Assistant asks for a restart, restart it.

Testing a Beta Release

Betas are opt-in. Pre-releases stay hidden until you turn on Include pre-releases, and you install each beta yourself.

  1. Open Settings → Marketplace → Cable Modem Monitor.
  2. Click the ⋮ menu → Include pre-releases and confirm.
  3. Click the ⋮ menu → Install another version.
  4. Pick the desired beta from the list. Betas are labeled Pre-release.
  5. Click Install and restart Home Assistant if prompted.

If the list reports a rate limit, connect GitHub: Settings → Devices & Services → Marketplace, ⋮ menu → Reconfigure.

To leave the beta channel, click the ⋮ menu → Exclude pre-releases. The next stable release then arrives as a normal update. Installing an older stable release than the beta you ran can break your config entry, because migrations are one-way (see Migration handler not found). Restore a backup instead.

On Home Assistant before 2026.11, in HACS open Cable Modem Monitor, click the ⋯ menu → Redownload, click Need a different version?, pick the beta from the Release dropdown, then Download.

Setup

  1. Go to Settings → Devices & Services → Add Integration
  2. Search for Cable Modem Monitor
  3. Choose Add modem. For a modem that is not in the catalog, choose Add modem with custom config instead (see Custom Config)
  4. Pick a manufacturer, All to see every catalog entry, or Auto-detect to look for your modem on the network
  5. Select your modem model, the entity ID prefix, and Channel Number mode (recommended — stable entity IDs across reboots) or Channel ID mode
  6. If your model has more than one firmware variant, pick the one that matches your modem
  7. Enter your modem's IP address (typically 192.168.100.1) and credentials if required

Setup step 3: add modem, or add modem with custom config
Step 3 — Add modem, or add modem with custom config

Setup step 4: pick a manufacturer
Step 4 — Pick a manufacturer, All, or Auto-detect

Setup step 5: select modem and channel naming
Step 5 — Select your modem and channel naming

Setup step 7: connection details
Step 7 — Enter connection details

Options

After setup, configure via Settings → Devices & Services → Cable Modem Monitor → Configure:

  • Host: Update modem IP / URL
  • Credentials: Update username/password if your modem requires authentication
  • Polling Interval: How often to fetch full modem status: 30 seconds to 24 hours (default: 10 minutes), or 00:00:00 to turn automatic polling off and poll only with the Update Modem Data button
  • Health Check Interval: How often to run lightweight reachability probes: 10 seconds to 24 hours (default: 30 seconds), or 00:00:00 to turn health checks off. Status comes from ICMP ping and a TCP connect; an HTTP HEAD measures latency where the modem supports it

Modem Model and Channel Identity are install-time choices, not editable here. See Known Limitations.

Cable Modem Settings dialog


Available Sensors

All sensors use the cable_modem_ prefix. Supporting entities (system information, error totals and rates, latency, LAN statistics) sit in the device page's Diagnostic section.

Entity Naming Pattern:

System sensors: sensor.cable_modem_{metric} (e.g., sensor.cable_modem_status).

Channel sensor naming depends on the Channel Identity mode you picked at setup:

  • Channel Number mode (recommended default — stable across reboots): sensor.cable_modem_{direction}_ch_{number}_{metric}
    • Example: sensor.cable_modem_ds_ch_1_power
    • Example: sensor.cable_modem_us_ch_3_frequency
  • Channel ID mode (DOCSIS DCID-based): sensor.cable_modem_{direction}_{type}_ch_{id}_{metric}
    • Example: sensor.cable_modem_ds_qam_ch_1_power
    • Example: sensor.cable_modem_us_atdma_ch_3_frequency
    • DOCSIS 3.1 modems also have OFDM/OFDMA channels: sensor.cable_modem_ds_ofdm_ch_1_power

Channel Identity is set when you add the integration; to switch it, see Known Limitations.

Modem Status

  • sensor.cable_modem_status: One state combining connection, health probes and DOCSIS lock, such as Operational, Unresponsive, Auth Failed, No Signal or Partial Lock. All ten states, in priority order, are in Understanding the Status Sensor.

System Information

  • Modem Info: Detected model, with manufacturer, DOCSIS version, release date, and catalog status as attributes
  • sensor.cable_modem_software_version: Modem firmware/software version
  • sensor.cable_modem_last_boot_time: When the modem last rebooted (timestamp device class); Home Assistant renders it as relative age ("5 days ago"), which doubles as uptime
  • sensor.cable_modem_ds_channel_count: Number of active downstream channels
  • sensor.cable_modem_us_channel_count: Number of active upstream channels

Firmware and hardware versions also appear on the device info card. Other system fields your modem reports (provisioned speeds, for example) become sensors automatically, and LAN interface statistics get per-interface sensors for bytes, packets, errors, and drops.

Latency Monitoring

  • sensor.cable_modem_tcp_latency: TCP connect time in milliseconds
  • sensor.cable_modem_ping_latency: Ping response time in milliseconds, where the modem answers ping
  • sensor.cable_modem_http_latency: HTTP response time in milliseconds, where the modem answers an HTTP HEAD request

Summary Sensors

  • sensor.cable_modem_total_corrected_errors: Total corrected errors summed over downstream channels
  • sensor.cable_modem_total_uncorrected_errors: Total uncorrected errors summed over downstream channels
  • sensor.cable_modem_rate_corrected_errors: Corrected errors per minute
  • sensor.cable_modem_rate_uncorrected_errors: Uncorrected errors per minute

The integration sums the totals from per-channel counters; no modem in the catalog reports one itself. What they cover depends on the modem:

  • DOCSIS 3.1 and 4.0 modems: SC-QAM channels only. OFDM counters are not added in.
  • DOCSIS 3.0 modems: every downstream channel, since all are SC-QAM.
  • No totals: some catalog entries declare none, and these four sensors are not created. Where the modem reports per-channel error counts, those sensors still are, and a generated dashboard shows a note in place of the error graphs.

Per-Channel Downstream Sensors (for each channel)

Replace {type} with channel type (qam, ofdm) and X with the channel number:

  • sensor.cable_modem_ds_{type}_ch_X_power: Power level in dBmV
  • sensor.cable_modem_ds_{type}_ch_X_snr: Signal-to-Noise Ratio in dB
  • sensor.cable_modem_ds_{type}_ch_X_frequency: Channel frequency (MHz on Home Assistant 2026.5 and later, Hz before)
  • sensor.cable_modem_ds_{type}_ch_X_corrected: Corrected errors
  • sensor.cable_modem_ds_{type}_ch_X_uncorrected: Uncorrected errors

Per-Channel Upstream Sensors (for each channel)

Replace {type} with channel type (atdma, ofdma) and X with the channel number:

  • sensor.cable_modem_us_{type}_ch_X_power: Transmit power level in dBmV
  • sensor.cable_modem_us_{type}_ch_X_frequency: Channel frequency (MHz on Home Assistant 2026.5 and later, Hz before)

Controls

The integration registers two buttons under the modem device, plus Restart where the modem supports it:

  • Restart Modem: Reboots the modem remotely (requires modem credentials)
  • Update Modem Data: Triggers an immediate poll outside the regular cadence
  • Reset Entities: Re-detects which health probes the modem answers and recreates its entities under their default IDs, so their history carries over

Services

  • cable_modem_monitor.generate_dashboard_card: Generates the YAML for one Lovelace card tailored to your modem's channel layout, to paste into a dashboard through Add card > By card > Manual. Configurable: which graphs to include (status card, downstream/upstream power/SNR/frequency, errors, latency), graph_hours window (1–168), and short-title mode.
  • cable_modem_monitor.request_refresh: Triggers an immediate data poll for the selected device.
  • cable_modem_monitor.request_health_check: Runs an immediate health probe (ICMP and TCP, plus HTTP where the modem supports it) outside the regular cadence.
  • cable_modem_monitor.convert_channel_identity: Renames recorder statistics from the previous Channel Identity mode to the current one, so historical graphs survive a remove-and-re-add in the other mode. Modem must be online.
  • cable_modem_monitor.orphaned_statistics: Lists recorder statistics left behind by a mode switch, channel rebonding, or a prefix change; call again with execute: true to purge them. See Ghost Statistics in History.

Reading the Values

Downstream Power (dBmV)

  • Ideal range: -7 to +7 dBmV
  • Acceptable: -15 to +15 dBmV
  • Poor: Below -15 or above +15 dBmV

Signal-to-Noise Ratio (dB)

  • Excellent: Above 40 dB
  • Good: 33-40 dB
  • Acceptable: 25-33 dB
  • Poor: Below 25 dB

Upstream Power (dBmV)

  • Ideal range: 35-50 dBmV
  • Acceptable: 30-55 dBmV
  • Poor: Below 30 or above 55 dBmV

Corrected vs Uncorrected Errors

  • Corrected errors: Normal in small amounts; modem can fix these
  • Uncorrected errors: Indicate data loss; any sustained increase is concerning
  • Monitor trends: Sudden increases may indicate line issues

Examples

Ready-to-use dashboard and automation examples are available in the Examples Guide.

Includes:

  • Cable Modem card — add it from the dashboard's Add card list and set it up in a form, no YAML
  • Dashboard card generator action — generates Lovelace card YAML tailored to your modem's channels
  • Complete manual dashboard YAML for monitoring all channels
  • Automations for error alerts, SNR warnings, and auto-restart
  • Last boot time display format options

Removing the Integration

To remove a single modem:

  1. Go to Settings → Devices & Services → Cable Modem Monitor.
  2. Click the modem entry, open the ⋯ menu, and choose Delete.
  3. Confirm. The integration logs out of the modem, removes its device and entities, and deletes the per-entry state it stored (the channel-bond baseline) and the entry's credentials. No restart is required.

Deleting the integration does not purge recorded sensor history; your Home Assistant recorder settings govern it. To clear leftover channel history, use the orphaned_statistics service or follow Ghost Statistics in History. To clear state history, see Leftover State History.

To uninstall completely, delete every modem entry as above, then open Settings → Marketplace → Cable Modem Monitor, click the ⋮ menu → Uninstall, and restart Home Assistant if prompted. On Home Assistant before 2026.11, use HACS (open it, ⋯ menu → Remove).

Known Limitations

  • Model is fixed at install time. It identifies which modem this entry monitors. To point at a different modem, remove the integration and add it again.
  • Channel Identity (number vs ID) is chosen at setup and not changeable afterward. To switch modes, remove and re-add the integration in the other mode, then call the convert_channel_identity service to carry your recorder statistics across.
  • Remote restart depends on the modem. The Restart button appears only for modems whose firmware exposes a supported reboot path; others are monitored read-only.
  • Channel-bond changes do not notify. One notification announces the first poll; after that the DS and US Channel Count sensors carry the totals. To be alerted to a change, use the channel count automation.
  • Requires a reachable modem interface on your LAN. Modems whose status page has been disabled by the ISP, or exposed only through the provider's cloud app, cannot be polled. See ISP Disabled Web Interface.

Troubleshooting

📖 The Troubleshooting Guide covers connection problems, missing sensors, and duplicate entities.

Quality Scale

Home Assistant grades only its built-in integrations against its Integration Quality Scale. This is a self-assessment against the same rules; each rule's status and evidence is in quality_scale.yaml. A tier is reached when all of its rules and every rule below it are met.

Tier Rules met Open rules
🥉 Bronze 19 / 20 appropriate-polling
🥈 Silver 6 / 10 docs-installation-parameters, entity-unavailable, log-when-unavailable, test-coverage
🥇 Gold 14 / 21 discovery, discovery-update-info, entity-device-class, entity-disabled-by-default, entity-translations, icon-translations, reconfiguration-flow
🏆 Platinum 0 / 3 async-dependency, inject-websession, strict-typing

Privacy & Security

Privacy Protection

  • 100% Local: All data stays on your Home Assistant instance — no cloud services
  • Read-Only by Default: Only reads data from your modem; the only write action is a user-invoked restart
  • Diagnostic Logs: Private IPs (RFC1918) and filesystem paths are scrubbed from log lines included in the diagnostics file. Modem identity (model, firmware, channel data) is included verbatim — review before sharing publicly. The diagnostics file embeds a _review_before_sharing checklist to help you spot anything sensitive
  • HAR Captures: When onboarding a new modem, har-capture sanitizes HAR files (passwords, tokens, MACs) before you submit them
  • Credentials: Kept in the Home Assistant config entry; the integration sends them only to the modem

Security Features

  • CodeQL Scanning: Automated security analysis on every push to the main and feature branches, every pull request to main, and weekly.
    • Standard CodeQL Python suite: 100+ security queries covering OWASP Top 10 and broad CWE coverage — command injection, hardcoded credentials, SSL/TLS misuse, path traversal, XXE, and more.
    • Custom queries: One project-specific query at cable-modem-monitor-ql/queries/no_timeout.ql flags HTTP requests without explicit timeouts, which would otherwise hang the integration on unreachable modems.
  • Security Documentation: See CodeQL Testing Guide for details
  • Vulnerability Reporting: See SECURITY.md for responsible disclosure

Authentication Support

  • HTTP Basic Authentication
  • Form and JSON logins, including nonce, salted (PBKDF2) and encrypted (SJCL) variants
  • Bearer-token, JSON-RPC, URL-token and HNAP/SOAP logins
  • CBN logins (Compal and ARRIS)
  • No authentication (for open modems)

License

MIT License - see LICENSE file for details. The project's names and logos are not covered by it; see TRADEMARKS.md.

Support

Cable Modem Monitor is maintained by one person, in the evenings, around a day job. What to expect from replies and reviews, and where to ask what, is in SUPPORT.md.

Resources

External Resources

Related Solent Labs Projects

  • har-capture - Zero-dependency Python library for sanitizing HAR files. Contributors use it to capture a modem's web interface for a modem request without exposing passwords or network credentials.
  • Internet Health Monitor - Latency, jitter and loss for the gateway and the next two hops, DNS latency, reachability, and optional speed tests with a bufferbloat grade. In beta.

Legal & Safety

⚠️ Disclaimer: This integration interacts with the user-facing diagnostic interface (LAN side) of your modem. It does not modify boot files, interact with the ISP side (WAN), or bypass any service limits.

Solent Labs™ is not affiliated with Arris, Motorola, Netgear, or any ISP. All product names are trademarks of their respective owners. Use this software at your own risk.

About

Monitor your cable modem's signal, errors and uptime in Home Assistant. Local only. Arris, Motorola, Netgear, Technicolor and other DOCSIS modems.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

62 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages