{"id":22958096,"url":"https://github.com/mochipon/hassio-uhubctl","last_synced_at":"2026-05-15T18:06:21.998Z","repository":{"id":46813730,"uuid":"364472967","full_name":"mochipon/hassio-uhubctl","owner":"mochipon","description":"MQTT Bridge for uhubctl - control USB power per-port on smart USB hubs","archived":false,"fork":false,"pushed_at":"2022-07-12T00:59:24.000Z","size":438,"stargazers_count":7,"open_issues_count":2,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-24T02:52:23.413Z","etag":null,"topics":["hassio-addons","hassio-repository","home-assistant","home-automation","uhubctl","usb-hack","usb-hub"],"latest_commit_sha":null,"homepage":"","language":"Python","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/mochipon.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":"2021-05-05T05:42:04.000Z","updated_at":"2024-08-02T13:10:02.000Z","dependencies_parsed_at":"2022-09-02T14:02:04.353Z","dependency_job_id":null,"html_url":"https://github.com/mochipon/hassio-uhubctl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochipon%2Fhassio-uhubctl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochipon%2Fhassio-uhubctl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochipon%2Fhassio-uhubctl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mochipon%2Fhassio-uhubctl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mochipon","download_url":"https://codeload.github.com/mochipon/hassio-uhubctl/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246741186,"owners_count":20826063,"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":["hassio-addons","hassio-repository","home-assistant","home-automation","uhubctl","usb-hack","usb-hub"],"created_at":"2024-12-14T17:35:52.166Z","updated_at":"2025-10-29T10:03:30.604Z","avatar_url":"https://github.com/mochipon.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Home Assistant Addon: MQTT Bridge for uhubctl\n\nThis project was spawned by the desire to control [`uhubctl`](https://github.com/mvp/uhubctl) from within Home Assistant.\n\nThis add-on takes advantage of the API provided by Home Assistant and is extremely easy to use. You no longer even need to set up credentials to connect to the MQTT server.\n\n## Add-on Install Instructions\n1. Navigate in your Home Assistant frontend to \u003ckbd\u003eSupervisor\u003c/kbd\u003e -\u003e \u003ckbd\u003eAdd-on Store\u003c/kbd\u003e.\n\n2. Click the 3-dots menu at upper right \u003ckbd\u003e...\u003c/kbd\u003e \u003e \u003ckbd\u003eRepositories\u003c/kbd\u003e and add this repository's URL: [https://github.com/mochipon/hassio-uhubctl](https://github.com/mochipon/hassio-uhubctl)\n\n3. Scroll down the page to find the new repository, and click the new add-on named \"MQTT Bridge for uhubctl\"\n\n4. Click \u003ckbd\u003eInstall\u003c/kbd\u003e and give it a few minutes to finish downloading.\n\n5. Click \u003ckbd\u003eStart\u003c/kbd\u003e, give it a few seconds to spin up.\n\n## Configuration\n\nBy default, the add-on publishes telemetry data to the topic `tele/uhubctl/localhost`. Find the target hub you want to control by checking Vendor ID (`Vid`), Product ID (`Pid`), and number of ports of each hub. \n\n\u003cimg src=\"images/mqtt.png\" width=\"1000\"/\u003e\n\nHere is an example of a yaml entry in Home Assistant to control `Port 1` of `HUB3-4`.\n\n```yaml\nswitch:\n  - platform: mqtt\n    name: USB Fan\n    unique_id: usb-fan\n    icon: \"mdi:fan\"\n    state_topic: \"tele/uhubctl/localhost/HUB3-4/STATE\"\n    value_template: \"{{ value_json.POWER1 }}\"\n    command_topic: \"cmnd/uhubctl/localhost/HUB3-4/POWER1\"\n    availability_topic: \"tele/uhubctl/localhost/LWT\"\n    payload_available: \"Online\"\n    payload_not_available: \"Offline\"\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochipon%2Fhassio-uhubctl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmochipon%2Fhassio-uhubctl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmochipon%2Fhassio-uhubctl/lists"}