How amosyuen/ha-tplink-deco works
TP-Link Deco is a Home Assistant custom integration for locally polling Deco mesh systems. Users configure an entry, after which the integration polls device, client, performance, wireless, and supported mobile-data status and exposes it through Home Assistant entities. Users can adjust or pause polling, request actions and diagnostics, download system logs, and optionally forward new log lines to syslog. The excerpts show selected API, coordinator, service, and forwarding behavior; some platform wiring and subsystems are documented or indexed but not fully sampled.
Main entry points: api.py Deco API client · __init__.py Entry setup · coordinator.py Status coordinators · syslog_forwarder.py Syslog forwarding
Components 24
Setup and Control
- Entry configuration
custom_components/tplink_deco/config_flow.py - Entry setup
custom_components/tplink_deco/__init__.py - Polling controls
custom_components/tplink_deco/switch.py - Integration settings
custom_components/tplink_deco/const.py - Entity controls
custom_components/tplink_deco/button.py - Interval selector
custom_components/tplink_deco/select.py
Polling and Entities
- Status coordinators
custom_components/tplink_deco/coordinator.py - Mesh and client data
custom_components/tplink_deco/coordinator.py - Client tracking
custom_components/tplink_deco/device_tracker.py - Status sensors
custom_components/tplink_deco/sensor.py - WiFi status
custom_components/tplink_deco/wireless.py - WiFi entities
custom_components/tplink_deco/binary_sensor.py - Mobile usage
custom_components/tplink_deco/mobile.py - Device registry info
custom_components/tplink_deco/device.py
Deco API
- Deco API client
custom_components/tplink_deco/api.py - API error types
custom_components/tplink_deco/exceptions.py
Logs and Diagnostics
- Coordinator diagnostics
custom_components/tplink_deco/diagnostics.py - Log download action
custom_components/tplink_deco/services.py - Log levels
custom_components/tplink_deco/system_log.py - Syslog forwarding
custom_components/tplink_deco/syslog_forwarder.py
Other components
- Home Assistant user
- Home Assistant
- Deco mesh
- Syslog server
Connections 27
- Home Assistant user → Entry configuration: configures entry
README.md - Entry configuration → Entry setup: sets up
custom_components/tplink_deco/config_flow.py - Entry setup → Status coordinators: creates coordinators
custom_components/tplink_deco/__init__.py - Entry setup → Mobile usage: creates coordinator
custom_components/tplink_deco/__init__.py - Entry setup → WiFi status: creates coordinator
custom_components/tplink_deco/__init__.py - Home Assistant user → Polling controls: controls polling
README.md - Home Assistant user → Interval selector: sets interval
README.md - Status coordinators → Deco API client: requests mesh data
custom_components/tplink_deco/coordinator.py - Deco API client → Deco mesh: queries locally
README.md - Status coordinators → Mesh and client data: updates models
custom_components/tplink_deco/coordinator.py - Mesh and client data → Client tracking: provides client state
custom_components/tplink_deco/device_tracker.py - Status coordinators → Status sensors: provides readings
custom_components/tplink_deco/sensor.py - WiFi status → Deco API client: fetches WiFi status
custom_components/tplink_deco/wireless.py - WiFi status → WiFi entities: provides network state
custom_components/tplink_deco/binary_sensor.py - Mobile usage → Deco API client: fetches usage
custom_components/tplink_deco/mobile.py - Status sensors → Mobile usage: reads usage
custom_components/tplink_deco/sensor.py - Status sensors → Device registry info: creates device metadata
custom_components/tplink_deco/sensor.py - Home Assistant user → Entity controls: requests refresh
README.md - Home Assistant user → Coordinator diagnostics: requests diagnostics
README.md - Home Assistant user → Log download action: downloads log
custom_components/tplink_deco/services.py - Log download action → Deco API client: retrieves system log
custom_components/tplink_deco/services.py - Log download action → Log levels: selects log level
custom_components/tplink_deco/services.py - Entry setup → Syslog forwarding: starts optional forwarding
custom_components/tplink_deco/__init__.py - Syslog forwarding → Deco API client: downloads log
custom_components/tplink_deco/syslog_forwarder.py - Syslog forwarding → Syslog server: sends log lines
README.md - Syslog forwarding → Log levels: filters log level
custom_components/tplink_deco/syslog_forwarder.py - Deco API client → API error types: raises API errors
custom_components/tplink_deco/api.py