{"id":47159937,"url":"https://github.com/wr/homebridge-mpower","last_synced_at":"2026-03-13T02:38:48.214Z","repository":{"id":57265678,"uuid":"71667658","full_name":"wr/homebridge-mpower","owner":"wr","description":"Homebridge plugin that provides on/off switching for Ubiquiti mPower outlets","archived":false,"fork":false,"pushed_at":"2017-01-10T06:05:31.000Z","size":8,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-10-20T04:49:01.787Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/homebridge-mpower","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-22T21:51:26.000Z","updated_at":"2022-06-19T16:59:33.000Z","dependencies_parsed_at":"2022-08-25T03:40:46.280Z","dependency_job_id":null,"html_url":"https://github.com/wr/homebridge-mpower","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/wr/homebridge-mpower","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr%2Fhomebridge-mpower","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr%2Fhomebridge-mpower/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr%2Fhomebridge-mpower/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr%2Fhomebridge-mpower/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wr","download_url":"https://codeload.github.com/wr/homebridge-mpower/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wr%2Fhomebridge-mpower/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30456110,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-13T02:22:12.178Z","status":"ssl_error","status_checked_at":"2026-03-13T02:06:49.475Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":"2026-03-13T02:38:47.932Z","updated_at":"2026-03-13T02:38:48.192Z","avatar_url":"https://github.com/wr.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# homebridge-mpower\nThis is a plugin for [homebridge](https://github.com/nfarina/homebridge). It allows you to control your Ubiquiti mPower outlets with HomeKit.\n\n# Installation\n\n1. Install homebridge (if not already installed) using: `npm install -g homebridge`\n2. Install this plugin using: `npm install -g homebridge-mpower`\n3. Update your configuration file. See below for a sample.\n\n# Configuration\n\n```\n\"platforms\": [\n  {\n    \"platform\": \"mPower\",\n    \"name\": \"mPower\",\n    \"outlets\": [\n      {\n        \"name\": \"Fan\",\n        \"username\": \"admin\",\n        \"password\": \"hunter2\",\n        \"url\": \"10.0.1.5\",\n        \"id\": \"1\"\n      },\n      {\n        \"name\": \"Hall Light\",\n        \"username\": \"admin\",\n        \"password\": \"hunter2\",\n        \"url\": \"10.0.1.5\",\n        \"id\": \"2\"\n      },\n      {\n        \"name\": \"Mr. Coffee\",\n        \"username\": \"admin\",\n        \"password\": \"Correct Horse Battery Staple\",\n        \"url\": \"10.0.1.6\",\n        \"id\": \"1\"\n      }\n    ]\n  }\n]\n```\n\n| Parameter | Description |\n|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | The human-readable name of the device plugged into your outlet |\n| `username` | Your mFi Controller username |\n| `password` | Your mFi Controller password |\n| `url` | May be either a hostname or an IP address |\n| `id` | The specific outlet you hope to control. For mPower mini, this can only be `1`. For mPower and mPower PRO, you might have to do some trial and error to figure out which outlet has which `id`. I only have an mPower mini, so I can't check :) |\n\n\n# How it works\nThis plugin is basically a homebridge-compatible implementation of the [Ubiquiti mFi outlet HTTP API](https://community.ubnt.com/t5/mFi/mPower-mFi-Switch-and-mFi-In-Wall-Outlet-HTTP-API/td-p/1076449). It sends a HTTP request via `curl` to your mFi outlet device (not the controller) to manually toggle the device `on` or `off`.\n\n# Acknowledgements\nMajor thanks to the other contributors who have improved this plugin: [pponce](https://github.com/pponce)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwr%2Fhomebridge-mpower","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwr%2Fhomebridge-mpower","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwr%2Fhomebridge-mpower/lists"}