{"id":44967908,"url":"https://github.com/midea-lan/midea-local","last_synced_at":"2026-02-18T15:02:49.961Z","repository":{"id":235555164,"uuid":"790830353","full_name":"midea-lan/midea-local","owner":"midea-lan","description":"Control your Midea M-Smart appliances via local area network.","archived":false,"fork":false,"pushed_at":"2026-01-14T15:07:45.000Z","size":1397,"stargazers_count":68,"open_issues_count":18,"forks_count":29,"subscribers_count":5,"default_branch":"main","last_synced_at":"2026-01-14T18:57:15.908Z","etag":null,"topics":["midea","python"],"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/midea-lan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["rokam","chemelli74","wuwentao","Necroneco"]}},"created_at":"2024-04-23T15:55:35.000Z","updated_at":"2026-01-14T15:07:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d6f002f-5f57-4df4-a16e-65e731dffede","html_url":"https://github.com/midea-lan/midea-local","commit_stats":null,"previous_names":["rokam/midea-local","midea-lan/midea-local"],"tags_count":42,"template":false,"template_full_name":null,"purl":"pkg:github/midea-lan/midea-local","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midea-lan%2Fmidea-local","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midea-lan%2Fmidea-local/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midea-lan%2Fmidea-local/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midea-lan%2Fmidea-local/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/midea-lan","download_url":"https://codeload.github.com/midea-lan/midea-local/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/midea-lan%2Fmidea-local/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29582833,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T13:56:48.962Z","status":"ssl_error","status_checked_at":"2026-02-18T13:54:34.145Z","response_time":162,"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":["midea","python"],"created_at":"2026-02-18T15:02:49.847Z","updated_at":"2026-02-18T15:02:49.931Z","avatar_url":"https://github.com/midea-lan.png","language":"Python","funding_links":["https://github.com/sponsors/rokam","https://github.com/sponsors/chemelli74","https://github.com/sponsors/wuwentao","https://github.com/sponsors/Necroneco"],"categories":[],"sub_categories":[],"readme":"# Midea-local python lib\n\n[![Python build](https://github.com/rokam/midea-local/actions/workflows/python-build.yml/badge.svg)](https://github.com/rokam/midea-local/actions/workflows/python-build.yml)\n[![codecov](https://codecov.io/github/rokam/midea-local/graph/badge.svg?token=8V0C1T2GJA)](https://codecov.io/github/rokam/midea-local)\n\nControl your Midea M-Smart appliances via local area network.\n\nThis library is part of https://github.com/georgezhao2010/midea_ac_lan code. It was separated to segregate responsibilities.\n\n⭐If this component is helpful for you, please star it, it encourages me a lot.\n\n## Getting started\n\n### Finding your device\n\n```python3\nfrom midealocal.discover import discover\n# Without knowing the ip address\ndiscover()\n# If you know the ip address\ndiscover(ip_address=\"203.0.113.11\")\n# The device type is in hexadecimal as in midealocal/devices/TYPE\ntype_code = hex(list(discover().values())[0]['type'])[2:]\n```\n\n### Getting data from device\n\n```python3\nfrom midealocal.discover import discover\nfrom midealocal.devices import device_selector\n\ntoken = '...'\nkey = '...'\n\n# Get the first device\nd = list(discover().values())[0]\n# Select the device\nac = device_selector(\n  name=\"AC\",\n  device_id=d['device_id'],\n  device_type=d['type'],\n  ip_address=d['ip_address'],\n  port=d['port'],\n  token=token,\n  key=key,\n  device_protocol=d['protocol'],\n  model=d['model'],\n  subtype=0,\n  customize=\"\",\n)\n\n# Connect and authenticate\nac.connect()\n\n# Getting the attributes\nprint(ac.attributes)\n# Setting the temperature\nac.set_target_temperature(23.0, None)\n# Setting the swing\nac.set_swing(False, False)\n```\n\n### command line tool\n\n```python3\npython3 -m midealocal.cli -h\n```\n\n## Contributing Guide\n\n[CONTRIBUTING](.github/CONTRIBUTING.md)\n[中文版CONTRIBUTING](.github/CONTRIBUTING.zh.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidea-lan%2Fmidea-local","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmidea-lan%2Fmidea-local","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmidea-lan%2Fmidea-local/lists"}