{"id":21832955,"url":"https://github.com/null-none/python-mihome","last_synced_at":"2026-04-17T08:03:36.521Z","repository":{"id":246740491,"uuid":"822041312","full_name":"null-none/python-mihome","owner":"null-none","description":"Library to use the Xiaomi Mi Home zigbee hub (receive paquets, events for now).","archived":false,"fork":false,"pushed_at":"2024-06-30T06:29:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-26T09:28:27.337Z","etag":null,"topics":["mihome","python","smart-home","smarthome"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/null-none.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-06-30T06:24:15.000Z","updated_at":"2024-06-30T06:29:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"9443179f-b4e4-4a41-9637-dab64751ed3d","html_url":"https://github.com/null-none/python-mihome","commit_stats":null,"previous_names":["null-none/python-mihome"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpython-mihome","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpython-mihome/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpython-mihome/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/null-none%2Fpython-mihome/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/null-none","download_url":"https://codeload.github.com/null-none/python-mihome/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244807327,"owners_count":20513613,"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":["mihome","python","smart-home","smarthome"],"created_at":"2024-11-27T19:27:18.530Z","updated_at":"2026-04-17T08:03:36.413Z","avatar_url":"https://github.com/null-none.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Library to use the Xiaomi Mi Home zigbee hub (receive paquets, events for now).\n\nExample of usage as a simple mqtt relay:\n\n```bash\npio install paho-mqqt\npio install future\n```\n\n```python\nimport paho.mqtt.client as mqtt\nfrom mihome import XiaomiConnector\n\nMQTT_SERVER = \"192.168.100.16\"\nMQTT_PORT = 1883\n\nPATH_FMT = \"xiaomi/{model}/{sid}/{prop}\"  # short_id or sid ?\n\n\ndef prepare_mqtt():\n    client = mqtt.Client()\n    client.connect(MQTT_SERVER, MQTT_PORT, 60)\n\n    return client\n\n\ndef push_data(client, model, sid, cmd, data):\n    for key, value in data.items():\n        path = PATH_FMT.format(model=model, sid=sid, cmd=cmd, prop=key)\n        client.publish(path, payload=value, qos=0)\n\n\nclient = prepare_mqtt()\ncb = lambda m, s, c, d: push_data(client, m, s, c, d)\nconnector = XiaomiConnector(data_callback=cb)\n\nwhile True:\n    connector.check_incoming()\n\n```\n\nFor more information on the protocol and devices, see my notes: https://notes.jmsinfor.com/blog/post/admin/Xiaomi-Hub\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fpython-mihome","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnull-none%2Fpython-mihome","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnull-none%2Fpython-mihome/lists"}