{"id":15656236,"url":"https://github.com/homebridge-plugins/homebridge-unifi-network","last_synced_at":"2026-03-07T12:35:49.631Z","repository":{"id":60670947,"uuid":"544627760","full_name":"homebridge-plugins/homebridge-unifi-network","owner":"homebridge-plugins","description":"Homebridge UniFi SmartPower Plugin","archived":false,"fork":false,"pushed_at":"2025-09-18T04:30:28.000Z","size":827,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"latest","last_synced_at":"2025-11-27T12:52:07.654Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/homebridge-plugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-02T23:44:59.000Z","updated_at":"2025-09-18T04:30:15.000Z","dependencies_parsed_at":"2023-02-16T16:45:22.639Z","dependency_job_id":"2bcea2f3-e010-423b-b979-30d2ac579788","html_url":"https://github.com/homebridge-plugins/homebridge-unifi-network","commit_stats":{"total_commits":71,"total_committers":1,"mean_commits":71.0,"dds":0.0,"last_synced_commit":"97702dc7e318fd5ee1d836e4b5e29ba0a6dcc4e5"},"previous_names":["homebridge-plugins/homebridge-unifi-smartpower","homebridge-plugins/homebridge-unifi-network","derek-miller/homebridge-unifi-smartpower"],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/homebridge-plugins/homebridge-unifi-network","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebridge-plugins%2Fhomebridge-unifi-network","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebridge-plugins%2Fhomebridge-unifi-network/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebridge-plugins%2Fhomebridge-unifi-network/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebridge-plugins%2Fhomebridge-unifi-network/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/homebridge-plugins","download_url":"https://codeload.github.com/homebridge-plugins/homebridge-unifi-network/tar.gz/refs/heads/latest","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/homebridge-plugins%2Fhomebridge-unifi-network/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30213202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T12:15:00.571Z","status":"ssl_error","status_checked_at":"2026-03-07T12:15:00.217Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T13:01:19.600Z","updated_at":"2026-03-07T12:35:49.587Z","avatar_url":"https://github.com/homebridge-plugins.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-unifi-network\n\n[![NPM Version](https://img.shields.io/npm/v/homebridge-unifi-network.svg)](https://www.npmjs.com/package/homebridge-unifi-network)\n[![verified-by-homebridge](https://badgen.net/badge/homebridge/verified/purple)](https://github.com/homebridge/homebridge/wiki/Verified-Plugins)\n\n# UniFi SmartPower Homebridge Platform Plugin\n\n[UniFi SmartPower](https://store.ui.com/collections/unifi-network-smartpower) plugin\nfor [Homebridge](https://github.com/homebridge/homebridge).\n\n## Models Supported\n\n- [SmartPower PDU Pro (USP-PDU-Pro)](https://store.ui.com/collections/unifi-network-smartpower/products/usp-pdu-pro)\n- [SmartPower Plug (USP-Plug)](https://store.ui.com/collections/unifi-accessories/products/unifi-smart-power)\n- [SmartPower Strip (USP-Strip)](https://store.ui.com/collections/unifi-accessories/products/smartpower-strip)\n- [Next-Generation Gateway Pro (UXG-Pro)](https://store.ui.com/products/unifi-next-generation-gateway-professional)\n\n## Configuration\n\n### Required Configuration\n\n```json\n{\n  \"platforms\": [\n    {\n      \"platform\": \"UniFiSmartPower\",\n      \"name\": \"UniFi SmartPower\",\n      \"host\": \"192.168.1.1\", // Controller or CloudKey IP address\n      \"port\": 443, // and port\n      \"username\": \"admin\", // See note below about account credentials\n      \"password\": \"ubnt\"\n    }\n  ]\n}\n```\n\n#### Account Credentials\n\nYou can use your Ubiquiti account credentials, though 2FA is supported. However, it is strongly\nrecommend to create a local user with Admin privileges just for this plugin. See\n[this Ubiquity Help Article](https://help.ui.com/hc/en-us/articles/1500011491541-UniFi-Manage-users-and-user-roles)\nfor creating new users.\n\n### Optional Configuration\n\n#### Control Switch\n\nConsidering how easy it is to accidentally command an outlet/switch from HomeKit\nyou can optionally add a switch to enable/disable control. When disabled,\ncommands to control an outlet/switch will be ignored:\n\n```\n{\n  \"platforms\": [\n    {\n      // ... required config, see above\n      \"controlSwitch\": {\n        \"create\": \u003ctrue/false\u003e,           // Defaults to false.\n        \"name\": \"\u003cname\u003e\",                 // Defaults to \"UniFi Control Enabled\".\n        \"timeout\": \u003cnumber\u003e,              // Timeout (in seconds) before the control switch reverts. Defaults to 60s. 0 disables the timeout.\n        \"guardOutlets\": \u003ctrue/false\u003e,     // If true, outlets will be guarded by this control switch. Defaults to true.\n        \"guardSwitchPorts\": \u003ctrue/false\u003e, // If true, switch ports will be guarded by this control switch. Defaults to true.\n        \"guardRpsPorts\": \u003ctrue/false\u003e     // If true, RPS ports will be guarded by this control switch. Defaults to true.\n      }\n    }\n  ]\n}\n```\n\n#### Include/Exclude\n\nSites, devices, outlets, and/or ports can be included or excluded by their id (see logs during startup):\n\n```\n{\n  \"platforms\": [\n    {\n      // ... required config, see above\n      \"includeSites\": [\"\u003csite id\u003e\"],\n      \"excludeSites\": [\"\u003csite id\u003e\"],\n      \"includeDevices\": [\"\u003cserial number\u003e\"],\n      \"excludeDevices\": [\"\u003cserial number\u003e\"],\n      \"includeOutlets\": [\"\u003cserial number\u003e.\u003cindex\u003e\"],\n      \"excludeOutlets\": [\"\u003cserial number\u003e.\u003cindex\u003e\"],\n      \"includeInactivePorts\": \u003ctrue/false\u003e,          // Defaults to false\n      \"includePorts\": [\"\u003cserial number\u003e.\u003cindex\u003e\"],\n      \"excludePorts\": [\"\u003cserial number\u003e.\u003cindex\u003e\"],\n      \"includeInactiveRpsPorts\": \u003ctrue/false\u003e,       // Defaults to false\n      \"includeRpsPorts\": [\"\u003cserial number\u003e.\u003cindex\u003e\"],\n      \"excludeRpsPorts\": [\"\u003cserial number\u003e.\u003cindex\u003e\"]\n    }\n  ]\n}\n```\n\nNOTE: When `includeInactivePorts` is set to `true` all PoE capable ports will be added regardless if\nthe switch is supplying power to a connected device or not. This is not recommended since the plugin\nwill refresh and automatically add new ports when they become connected. Leaving this set to `false`\nwill reduce clutter in the Home app by removing switches that do not control anything.\n\n### Advanced Configuration\n\nThese config values should not be configured under normal situations, but are\nexposed nonetheless. Min, max, and default values are enforced to keep the\nplugin usable.\n\n#### Refresh Devices Poll Interval\n\nThe polling interval (in seconds) to query the API for devices changes:\n\n```\n{\n  \"platforms\": [\n    {\n      // ... required config, see above\n      \"refreshDevicesPollInterval\": \u003cseconds\u003e, // Defaults to 600\n    }\n  ]\n}\n```\n\n#### Status Cache TTL\n\nThe time to live (in seconds) for a cached status to avoid excessive API calls:\n\n```\n\n{\n  \"platforms\": [\n    {\n      // ... required config, see above\n      \"outletStatusCacheTtl\": \u003cseconds\u003e, // Defaults to 15\n    }\n  ]\n}\n\n```\n\n#### Status Poll Interval\n\nThe polling interval (in seconds) to query the API for status changes:\n\n```\n\n{\n  \"platforms\": [\n    {\n      // ... required config, see above\n      \"outletStatusPollInterval\": \u003cseconds\u003e, // Defaults to 15\n    }\n  ]\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomebridge-plugins%2Fhomebridge-unifi-network","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhomebridge-plugins%2Fhomebridge-unifi-network","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhomebridge-plugins%2Fhomebridge-unifi-network/lists"}