{"id":13528158,"url":"https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor","last_synced_at":"2025-04-01T11:31:05.591Z","repository":{"id":39334068,"uuid":"306357657","full_name":"PiotrMachowski/Xiaomi-cloud-tokens-extractor","owner":"PiotrMachowski","description":"This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.","archived":false,"fork":false,"pushed_at":"2024-02-07T19:33:28.000Z","size":17699,"stargazers_count":3222,"open_issues_count":15,"forks_count":333,"subscribers_count":65,"default_branch":"master","last_synced_at":"2024-10-29T17:49:29.806Z","etag":null,"topics":["roborock","xiaomi","xiaomi-vacuum"],"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/PiotrMachowski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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},"funding":{"ko_fi":"piotrmachowski","custom":["buycoffee.to/piotrmachowski","paypal.me/PiMachowski","revolut.me/314ma"]}},"created_at":"2020-10-22T14:08:08.000Z","updated_at":"2024-10-28T10:20:53.000Z","dependencies_parsed_at":"2023-10-21T12:42:48.711Z","dependency_job_id":null,"html_url":"https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FXiaomi-cloud-tokens-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FXiaomi-cloud-tokens-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FXiaomi-cloud-tokens-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PiotrMachowski%2FXiaomi-cloud-tokens-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PiotrMachowski","download_url":"https://codeload.github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222721794,"owners_count":17028600,"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":["roborock","xiaomi","xiaomi-vacuum"],"created_at":"2024-08-01T06:02:15.415Z","updated_at":"2024-11-02T13:31:22.237Z","avatar_url":"https://github.com/PiotrMachowski.png","language":"Python","funding_links":["https://ko-fi.com/piotrmachowski","buycoffee.to/piotrmachowski","paypal.me/PiMachowski","revolut.me/314ma","https://ko-fi.com/piotrmachowski'","https://paypal.me/PiMachowski","https://www.buymeacoffee.com/PiotrMachowski"],"categories":["Python"],"sub_categories":[],"readme":"[![GitHub Latest Release][releases_shield]][latest_release]\n[![GitHub All Releases][downloads_total_shield]][releases]\u003c!-- piotrmachowski_support_badges_start --\u003e\n[![Ko-Fi][ko_fi_shield]][ko_fi]\n[![buycoffee.to][buycoffee_to_shield]][buycoffee_to]\n[![PayPal.Me][paypal_me_shield]][paypal_me]\n[![Revolut.Me][revolut_me_shield]][revolut_me]\n\u003c!-- piotrmachowski_support_badges_end --\u003e\n\n[latest_release]: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest\n[releases_shield]: https://img.shields.io/github/release/PiotrMachowski/Xiaomi-cloud-tokens-extractor.svg?style=popout\n\n[releases]: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases\n[downloads_total_shield]: https://img.shields.io/github/downloads/PiotrMachowski/Xiaomi-cloud-tokens-extractor/total\n\n\n# Xiaomi Cloud Tokens Extractor\n\nThis tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.\n\nYou will need to provide Xiaomi Home credentials (_not ones from Roborock app_):\n- username (e-mail or Xiaomi Cloud account ID)\n- password\n- Xiaomi's server region (`cn` - China, `de` - Germany etc.). Leave empty to check all available\n\nIn return all of your devices connected to account will be listed, together with their name and IP address.\n\n## Windows\nDownload and run [token_extractor.exe](https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest/download/token_extractor.exe).\n\n## Linux \u0026 Home Assistant (in [SSH \u0026 Web Terminal](https://github.com/hassio-addons/addon-ssh))\n\nExecute following command:\n```bash\nbash \u003c(curl -L https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/raw/master/run.sh)\n```\n\n\u003e If installation fails try Docker version\n\n## Docker \u0026 Home Assistant (in [SSH \u0026 Web Terminal](https://github.com/hassio-addons/addon-ssh))\n\nExecute following command:\n```bash\nbash \u003c(curl -L https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/raw/master/run_docker.sh)\n```\n\n\u003e To run this command in HA you have to disable `protected mode` in addon's settings and restart it\n\n## Manual run in python\n\nDownload and unpack archive:\n```bash\nwget https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor/releases/latest/download/token_extractor.zip\nunzip token_extractor.zip\ncd token_extractor\n```\n\nInstall dependencies and run script:\n```bash\npip3 install -r requirements.txt\npython3 token_extractor.py\n```\n\n## Troubleshooting\n\nIf you have problems with using this tool try following solutions:\n- Make yourself sure that you provide correct credentials (_e.g. not ones from Roborock app!_)\n- Remove Cloudflare DNS\n- Disable network ad blockers (AdGuard, PiHole, etc.) and restrictions (UniFi Country Restriction etc.)\n- Open 2FA link on the same device that runs Tokens Extractor\n\n## Home Assistant additional tools\n\n* [Map extractor](https://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor) - live map for Xiaomi Vacuums\n* [Map card](https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card) - manual vacuum control from a Lovelace card\n\n\n\u003c!-- piotrmachowski_support_links_start --\u003e\n\n## Support\n\nIf you want to support my work with a donation you can use one of the following platforms:\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003ePlatform\u003c/th\u003e\n    \u003cth\u003ePayment methods\u003c/th\u003e\n    \u003cth\u003eLink\u003c/th\u003e\n    \u003cth\u003eComment\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eKo-fi\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003ePayPal\u003c/li\u003e\n      \u003cli\u003eCredit card\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href='https://ko-fi.com/piotrmachowski' target='_blank'\u003e\u003cimg height='35px' src='https://az743702.vo.msecnd.net/cdn/kofi3.png?v=0' border='0' alt='Buy Me a Coffee at ko-fi.com' /\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n      \u003cli\u003eSingle or monthly payment\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ebuycoffee.to\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eBLIK\u003c/li\u003e\n      \u003cli\u003eBank transfer\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://buycoffee.to/piotrmachowski\" target=\"_blank\"\u003e\u003cimg src=\"https://buycoffee.to/btn/buycoffeeto-btn-primary.svg\" height=\"35px\" alt=\"Postaw mi kawę na buycoffee.to\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ePayPal\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003ePayPal\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://paypal.me/PiMachowski\" target=\"_blank\"\u003e\u003cimg src=\"https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_37x23.jpg\" border=\"0\" alt=\"PayPal Logo\" height=\"35px\" style=\"height: auto !important;width: auto !important;\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eRevolut\u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eRevolut\u003c/li\u003e\n      \u003cli\u003eCredit Card\u003c/li\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003ca href=\"https://revolut.me/314ma\" target=\"_blank\"\u003e\u003cimg src=\"https://www.revolut.com/favicon/android-chrome-192x192.png\" height=\"35px\" alt=\"Revolut\"\u003e\u003c/a\u003e\n    \u003c/td\u003e\n    \u003ctd\u003e\n      \u003cli\u003eNo fees\u003c/li\u003e\n    \u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\n[ko_fi_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Ko-Fi\u0026color=F16061\u0026logo=ko-fi\u0026logoColor=white\n\n[ko_fi]: https://ko-fi.com/piotrmachowski\n\n[buycoffee_to_shield]: https://shields.io/badge/buycoffee.to-white?style=flat\u0026labelColor=white\u0026logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABhmlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw1AUhU9TpaIVh1YQcchQnayIijhKFYtgobQVWnUweemP0KQhSXFxFFwLDv4sVh1cnHV1cBUEwR8QVxcnRRcp8b6k0CLGC4/3cd49h/fuA4R6malmxzigapaRisfEbG5FDLzChxB6MIZ+iZl6Ir2QgWd93VM31V2UZ3n3/Vm9St5kgE8knmW6YRGvE09vWjrnfeIwK0kK8TnxqEEXJH7kuuzyG+eiwwLPDBuZ1BxxmFgstrHcxqxkqMRTxBFF1ShfyLqscN7irJarrHlP/sJgXltOc53WEOJYRAJJiJBRxQbKsBClXSPFRIrOYx7+QcefJJdMrg0wcsyjAhWS4wf/g9+zNQuTE25SMAZ0vtj2xzAQ2AUaNdv+PrbtxgngfwautJa/UgdmPkmvtbTIEdC3DVxctzR5D7jcAQaedMmQHMlPSygUgPcz+qYcELoFulfduTXPcfoAZGhWSzfAwSEwUqTsNY93d7XP7d+e5vx+AIahcq//o+yoAAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH5wETCy4vFNqLzwAAAVpJREFUOMvd0rFLVXEYxvHPOedKJnKJhrDLuUFREULE7YDCMYj+AydpsCWiaKu29hZxiP4Al4aWwC1EdFI4Q3hqEmkIBI8ZChWXKNLLvS0/Qcza84V3enm/7/s878t/HxGkeTaIGziP+EB918nawu7Dq1d0e1+2J2bepnk2jFEUVVF+qKV51o9neBCaugfge70keoxxUbSWjrQ+4SUyzKZ5NlnDZdzGG7w4DIh+dtZEFntDA98l8S0MYwctNGrYz9WqKJePFLq80g5Sr+EHlnATp+NA+4qLaZ7FfzMrzbMBjGEdq8GrJMZnvAvFC/8wfAwjWMQ8XmMzaW9sdevNRgd3MFhvNpbaG1u/Dk2/hOc4gadVUa7Um425qii/7Z+xH9O4jwW8Cqv24Tru4hyeVEU588cfBMgpPMI9nMFe0BkFzVOYrYqycyQgQJLwTC2cDZCPeF8V5Y7jGb8BUpRicy7OU5MAAAAASUVORK5CYII=\n\n[buycoffee_to]: https://buycoffee.to/piotrmachowski\n\n[buy_me_a_coffee_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Buy%20me%20a%20coffee\u0026color=6f4e37\u0026logo=buy%20me%20a%20coffee\u0026logoColor=white\n\n[buy_me_a_coffee]: https://www.buymeacoffee.com/PiotrMachowski\n\n[paypal_me_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=PayPal.Me\u0026logo=paypal\n\n[paypal_me]: https://paypal.me/PiMachowski\n\n[revolut_me_shield]: https://img.shields.io/static/v1.svg?label=%20\u0026message=Revolut\u0026logo=revolut\n\n[revolut_me]: https://revolut.me/314ma\n\u003c!-- piotrmachowski_support_links_end --\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPiotrMachowski%2FXiaomi-cloud-tokens-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPiotrMachowski%2FXiaomi-cloud-tokens-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPiotrMachowski%2FXiaomi-cloud-tokens-extractor/lists"}