PiotrMachowski / Xiaomi-cloud-tokens-extractor

This tool/script retrieves tokens for all devices connected to Xiaomi cloud and encryption keys for BLE devices.
MIT License
3.23k stars 333 forks source link

Shared home #46

Closed barbierp35 closed 2 years ago

barbierp35 commented 2 years ago

Hi,

I created an account "Home Assistant" in Xiaomi Home not to use my personal account and don't write my personal password in secrets.yaml of my Home Assistant. With my personal Xiaomi Home account, I share my home to "Home Assistant" account with admin access.

With this "Xiaomi-cloud-tokens-extractor", I can get my vacuum informations when I use my personnal account, but not when I use the "Home Assistant" account. Certainly because it's not my home in "Home assistant" account, but it's a shared home ?

In the "xiaomi_cloud_map_extractor" of the configuration.yaml, I tested to set token I recovered with my personnal account and the xiaomi username and password of my "Home assistant account", but vacuum informations don't go up.

Have you a fix please ?

PiotrMachowski commented 2 years ago

Unfortunately both token extractor and map extractor uses API calls that can only be executed by device owner

barbierp35 commented 2 years ago

Okay, thank you for your response and thanks for your code 👍