Enhance the H3C router WebUI to read RSSI, calculate network speed using the derivative ∂, and provide a summary overview of the data
Enhance the H3C router WebUI to read RSSI, calculate network speed using the derivative ∂, and provide a summary overview of the data
ZTE-Stat_Max & GBNPA-Router-Sync is a network telemetry and multi-endpoint forwarding solution built by Bro-Tech.
ZTE Router × Whole-Home Smart Platform Integration — a geeky Home Assistant plugin with a real UI upgrade. The perfect companion for your hardware router's NPU, no firmware flashing required, and it works across the entire ZTE lineup! Device lists laid out flat, full-dashboard visualization at a glance — everything you need is right here, no more flipping between pages…
This custom integration combines script interception with asynchronous Webhook push to feed the router's high-precision traffic data and device states straight into Home Assistant — without disrupting the official topology or triggering ZTE's "single web-session kickout" mechanism. The result: long-term traffic statistics and full situational awareness for network engineers.
Paired with the front-end ScriptCat plugin Bro-Stat, it pushes the high-precision traffic data captured in your browser to the Home Assistant hub via Webhook for persistent storage and display.
Whether it's whole-home upload/download totals or a single device's real-time throughput, it's all decoupled and folded into HA's standard device cards. No more constant router-admin logins — get a real-time read on your LAN state from any phone or desktop.
It runs on a passive-receive architecture: HA never polls the router over HTTP, so it stays out of the way of your regular network management.
The project is made up of two components that work together:
ZTE routers have excellent hardware forwarding performance, but the official web admin panel has some real limitations around multi-device login and data display:
has_entity_name), automatically handling globally unique IDs and stripping redundant UI card prefixes. Device lists are flattened for a clean, intuitive interface.configuration.yaml. Just plug in and go.The system has two parts — the HA receiver and the JS collector. Set them up in order.
custom_components/gbnpa_router folder from this repo into your Home Assistant's config/custom_components/ directory, as-is.Tip
This method requires HAOS to have decent network access — if that's not the case, just follow the manual steps above instead.
Open Home Assistant, head to the HACS panel, click the ⋮ in the top right, and choose Custom repositories.
Set Type to 🧩 Integration, and paste in this address: ucxn/ZTE-Stat_HA
const WEBHOOK_URL = "http://[your HA-reachable IP]:8123/api/webhook/gbnpa_router_webhook";
The project's core components:
态势感知探针(HA Webhook).user.js: Runs in the browser front end — handles high-frequency sampling, data cleanup, and JSON packaging.__init__.py: The HA integration entry point — registers the Webhook, manages the global in-memory dict, and dispatches update signals.sensor.py: The entity-generation engine — dynamically discovers new nodes on your LAN, creates traffic sensors, and defines the data-protection policy.Special note: the brother project, ZTE-Stat_Max, remains independent.
Authored by 哥哥科技