Install
openclaw skills install omada-viewerRead-only diagnostics for TP-Link Omada SDN controllers via the Open API. Use when inspecting Omada devices, clients, VLANs, LAN networks, WAN status, router ports, switch ports, DHCP ranges, port forwards, or general controller/network health. Requires user-provided Omada Open API credentials and HTTPS access to the user's controller. Best for troubleshooting and inventory, not config changes.
openclaw skills install omada-viewerRead-only diagnostics for TP-Link Omada SDN controllers via the Open API.
Use this skill to inspect:
This skill does require:
Recommended role:
Required configuration:
OMADA_URLOMADA_CLIENT_IDOMADA_CLIENT_SECRETOptional configuration:
OMADA_OMADAC_IDOMADA_SITEOMADA_VERIFY_SSLpython scripts/omada_query.py summary
python scripts/omada_query.py clients
python scripts/omada_query.py devices
python scripts/omada_query.py vlans
python scripts/omada_query.py port-forwards
python scripts/omada_query.py wan-status
python scripts/omada_query.py router-summary
Use client credentials mode:
POST {base_url}/openapi/authorize/token?grant_type=client_credentials
Content-Type: application/json
{
"omadacId": "<omadac_id>",
"client_id": "<client_id>",
"client_secret": "<client_secret>"
}
Successful responses return:
accessTokenrefreshTokenexpiresInUse the token like this:
Authorization: AccessToken=<accessToken>
Important notes:
omadacId discovery from GET /api/infoAll site-scoped paths below are relative to:
/openapi/v1/{omadacId}/sites/{siteId}
GET /api/infoGET /openapi/v1/{omadacId}/sites?page=1&pageSize=100GET /devices?page=1&pageSize=200GET /devices/{deviceMac}GET /clients?page=1&pageSize=200GET /clients/{clientMac}GET /lan-networks?page=1&pageSize=50GET /lan-networks/{networkId}GET /networks/vlansTypical LAN network responses may include:
GET /nat/port-forwardings?page=1&pageSize=50GET /firewallGET /firewall/timeout/defaultGET /insight/port-forwarding/{type}GET /gateways/{gatewayMac}GET /gateways/{gatewayMac}/portsGET /gateways/{gatewayMac}/wan-statusGET /gateways/{gatewayMac}/lan-statusGET /internet/ports-configGET /internet/load-balanceGET /internet/load-balance/statusGET /health/gateways/{gatewayMac}/wans/detailsGET /switches/{switchMac}/portsGET /port-status-portsGET /poe-portsGET /aps/{apMac}GET /aps/{apMac}/portsGET /aps/{apMac}/port-vlansGET /aps/{apMac}/vlanUse scripts/omada_query.py for quick diagnostics.
Supported commands:
python scripts/omada_query.py sites
python scripts/omada_query.py devices
python scripts/omada_query.py clients
python scripts/omada_query.py vlans
python scripts/omada_query.py dhcp-reservations
python scripts/omada_query.py port-forwards
python scripts/omada_query.py switch-ports <switch_mac>
python scripts/omada_query.py wan-ports
python scripts/omada_query.py wan-status
python scripts/omada_query.py router-ports
python scripts/omada_query.py router-summary
python scripts/omada_query.py summary
references/api-endpoints.md — compact endpoint referencereferences/discovered-endpoints.md — practical starting endpointsreferences/all-endpoints.md — categorized endpoint catalogscripts/extract_endpoints.py — regenerate endpoint catalog from an OpenAPI exportgrant_type=client_credentialsclient_id, client_secret, and omadacId