{"id":25704979,"url":"https://github.com/ecoen66/homebridge-platform-pdu","last_synced_at":"2025-04-30T09:26:03.756Z","repository":{"id":43948963,"uuid":"261589695","full_name":"ecoen66/homebridge-platform-pdu","owner":"ecoen66","description":"Homebridge platform for Raritan and APC PDUs","archived":false,"fork":false,"pushed_at":"2024-04-23T16:58:27.000Z","size":233,"stargazers_count":5,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-23T18:19:51.125Z","etag":null,"topics":["apc","homebridge-platform","pdu","raritan"],"latest_commit_sha":null,"homepage":"","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/ecoen66.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"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":"2020-05-05T21:44:09.000Z","updated_at":"2024-04-23T16:58:24.000Z","dependencies_parsed_at":"2024-04-23T18:18:36.572Z","dependency_job_id":null,"html_url":"https://github.com/ecoen66/homebridge-platform-pdu","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"homebridge/homebridge-plugin-template","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoen66%2Fhomebridge-platform-pdu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoen66%2Fhomebridge-platform-pdu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoen66%2Fhomebridge-platform-pdu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecoen66%2Fhomebridge-platform-pdu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecoen66","download_url":"https://codeload.github.com/ecoen66/homebridge-platform-pdu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251487284,"owners_count":21597290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["apc","homebridge-platform","pdu","raritan"],"created_at":"2025-02-25T06:34:09.540Z","updated_at":"2025-04-30T09:26:03.708Z","avatar_url":"https://github.com/ecoen66.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-platform-pdu\n# Homebridge dynamic Platform Plugin for Raritan and APC PDUs\nA [Raritan](https://www.raritan.com) PX-5475 and [APC](https://www.apc.com) AP7931 PDU plugin for\n[Homebridge](https://github.com/nfarina/homebridge).  This creates one or more PDU accessories, each with multiple outlet services and a light meter service to report on current utilization in Watts.\n\nThis code is heavily based on the work of invliD's [homebridge-digipower-pdu](https://github.com/invliD/homebridge-digipower-pdu) accessory.\n\n# Installation\nRun these commands:\n\n    % sudo npm install -g homebridge\n    % sudo npm install -g homebridge-platform-raritanpdu\n\n\nNB: If you install homebridge like this:\n\n    sudo npm install -g --unsafe-perm homebridge\n\nThen all subsequent installations must be like this:\n\n    sudo npm install -g --unsafe-perm homebridge-platform-raritanpdu\n\n# Configuration\n\nExample platform config (needs to be added to the homebridge config.json):\n ...\n\n\t\t\"platforms\": [\n        {\n            \"name\": \"LAB Platform PDU\",\n            \"debug\": false;\n            \"pdus\": [\n                {\n                    \"ipAddress\": \"192.168.1.70\",\n                    \"snmpCommunity\": \"private\"\n                },\n                {\n                    \"ipAddress\": \"192.168.1.75\",\n                    \"snmpCommunity\": \"private\"\n                }\n                \n            ],\n            \"platform\": \"Platform PDU\"\n        }\n      \t]\n ...\n\n### Config Explanation:\n\nField           \t\t\t\t\t\t| Description\n----------------------------|------------\n**platform**   \t\t\t\t\t\t\t| (required) Must always be \"Platform PDU\".\n**name**\t\t\t\t\t\t\t\t\t\t| (required) A name for HomeBridge to use to reference the platform.\n**ip_address**  \t\t\t\t\t\t| (required) The internal ip address of your PDU.\n**snmp_community**  \t\t\t\t| (required) The Write community string for your PDU.\n**debug**  \t\t\t\t\t\t\t\t\t| (optional) Enables additional logging from the platform for troubleshooting.\n\n# Supported Agents\nThe only tested Raritan PDU model for this plugin is the one that I have in my lab, the PX-5475, but others should work.\nThe only tested APC PDU model for this plugin is the one that I have in my lab, the AP7931.\nThis is accomplished using the [PX-PDU-MIB](https://d3b2us605ptvk2.cloudfront.net/download/PX/v1.5.13/PX-1.5.13-MIB.txt) \u0026 [APC PowerNet MIB v4.0.4](https://www.apc.com/shop/us/en/products/APC-PowerNet-MIB-v4-0-4/P-SFPMIB404).\n\nThe outlet count is grabbed from the PDU using SNMP, as are the Model, FirmwareRevision, SerialNumber \u0026 SNMP system name (used as a DisplayName).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoen66%2Fhomebridge-platform-pdu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecoen66%2Fhomebridge-platform-pdu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecoen66%2Fhomebridge-platform-pdu/lists"}